Azure APIM CVE-2026-139934 Exploited: Rotate Secrets Now
Security

Azure APIM CVE-2026-139934 Exploited: Rotate Secrets Now

CISA added Azure API Management flaw CVE-2026-139934 to KEV after secret theft hit Norwegian energy firms. No patch to install: rotate every APIM credential.

azureapi managementcisa kevcredential theftcloud security

CISA added CVE-2026-139934, an incorrect authorization flaw in Azure API Management (APIM) Classic tiers, to its Known Exploited Vulnerabilities catalog on December 4, 2026, with a December 7 due date. Microsoft rates it CVSS 9.8, confirms exploitation, and fixed the platform on November 19. There is nothing to install. If you run a Developer, Basic, Standard or Premium instance, open Azure Service Health, read notification MZK9-GH0, and rotate every credential the instance holds.

What happened

Microsoft published CVE-2026-139934 in its Security Update Guide on December 3, 2026, titled "Azure API Management Elevation of Privilege Vulnerability." The one-line description reads: incorrect authorization in Azure API Management allows an unauthorized attacker to elevate privileges over a network. The weakness is CWE-863, the CVSS 3.1 vector is AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, and Microsoft's exploitability assessment is "Exploitation Detected." The temporal score is 9.1 because an official fix exists.

The public CVE arrived two weeks after the incident. According to the Azure Service Health advisory that Microsoft sent to customers and that BleepingComputer obtained, Microsoft identified the issue on November 18 and closed the access path on November 19. The advisory states that customers were exposed and that an unauthorized party could have used the issue to access secrets stored in APIM Classic instances before Microsoft found it. Microsoft notified customers through Service Health on November 21 and again on November 24, both under tracking ID MZK9-GH0.

Microsoft's FAQ explains why there is no download: the platform remediation of November 19 does not invalidate credentials that were already exposed, so the remaining work is on the customer side.

Who is affected

The affected product is Azure API Management on the Classic tiers: Developer, Basic, Standard and Premium. Microsoft told BleepingComputer that the Classic Consumption tier and all APIM v2 tiers are not affected, and the MSRC FAQ repeats that v2 and Consumption are out of scope.

Microsoft's advisory, as quoted by The Hacker News, adds a condition: the flaw allowed unauthorized access to certain management functionality "if the service was not configured according to documented security best practices." Microsoft has not published those exposure criteria publicly. They are in the Service Health notification, which only subscription owners, contributors, Service Health Security readers and tenant-level security or global admins can open. Until you have read it, treat every Classic instance as exposed.

Microsoft listed five classes of information that may have been accessed:

  • Secrets stored in named values
  • Client secrets associated with identity providers
  • Client secrets associated with OpenID Connect providers
  • Subscription keys
  • Tokens used to call direct management APIs

Norway's National Security Authority (NSM) linked the flaw to attacks on Norwegian energy companies. Per CSO Online's account of NSM's advisory of November 20 (updated November 23), an unidentified actor targeted access tokens, secrets and named values stored in APIM, the energy sector discovered the vulnerability first, and organizations in other countries and sectors were also affected. NSM named Equinor and Skagerak Energi. Equinor disclosed a cyberattack on November 17, one day before Microsoft's identification date, and later said production was normal with no sign of data theft or alteration. Skagerak Energi reported an attempted attack with no operational impact.

Technical analysis

Microsoft has not published a root cause, an endpoint or indicators of compromise. What the record establishes is the shape of the bug: an unauthenticated network request to an APIM Classic instance reached administrative operations, including secrets management, that should have required an authenticated administrator. That is a CWE-863 incorrect authorization failure in the service's own management plane, not in the policies you write for your APIs.

Two secondary accounts point at the same component. A Reddit administrator quoted by BleepingComputer said attackers used an authentication bypass in a deprecated legacy API to obtain a privileged system account, and that the API produced no customer-visible logs. BleepingComputer did not verify the claim. Cloud security researcher Anders Kristiansen described the candidate in his November 21 write-up: each Classic instance has its own direct management API at a management.azure-api.net hostname that predates Azure Resource Manager, authenticates with a SharedAccessSignature signed by the instance's tenant access key rather than Entra ID, and does not write to the ARM Activity log. Microsoft retired that API on March 15, 2025 and tells customers to disable it if it is still enabled. Microsoft has not confirmed that this was the path, but "tokens used to call direct management APIs" is on its own list of exposed secret types.

Why this matters more than a typical cloud bug: an API gateway exists to hold the keys to everything behind it. APIM named values store backend keys, connection strings and model provider keys, and a stolen backend credential works directly against the backend, outside APIM, until its issuer revokes it. The Cloud Security Alliance notes that Microsoft markets APIM as its AI gateway and documents storing Azure OpenAI keys as named values, so AI deployments that chose API keys over managed identity put billing exposure and prompt data in the same store.

What to do now about CVE-2026-139934

The platform fix closes the door for new requests. It does nothing about secrets copied out before November 19. Microsoft's required actions, which CISA's KEV notes repeat, are:

  1. Open Azure Service Health, find notification MZK9-GH0, and check the Impacted Resources tab under Security Advisories with an account that has one of the authorized roles. Record which instances Microsoft lists and what the exposure criteria say.
  2. Inventory every Classic instance across every subscription, including dev and test. The SKU name on the Microsoft.ApiManagement/service resource tells you the tier.
  3. Rotate credentials and secrets stored in APIM, and rotate the Azure Key Vault secrets that APIM references. Microsoft's rotation guide stresses that updating the value inside API Management does not revoke the old credential at its issuer. Create the replacement at the backend, identity provider or Key Vault first, update APIM, test, then revoke the old one. The full sequence is in how to rotate Azure API Management credentials.
  4. Investigate unexpected activity on every system and service those credentials reach. Microsoft published no indicators, so hunt downstream: service principal sign-ins from new addresses for apps whose secrets lived in APIM, Key Vault audit events for the vaults APIM references, and new subscription identifiers in gateway logs. A quiet Activity log proves nothing if the legacy API was the path.
  5. Disable the direct management API on every instance (Management API, Enable Management REST API set to No in the portal) and remove developer portal sign-up and identity providers you no longer need.

Microsoft says credentials already rotated after the November 21 or November 24 notifications do not need to be rotated again. Keep the evidence of when each rotation happened; CISA's KEV entry marks this CVE "Forensics Triage: Yes" under BOD 26-04.

NSM's advisory also gave a runtime check: per CSO Online, instances on the 0.52.x branch are patched from build 31936 and 0.53.x from build 31938. Microsoft told BleepingComputer the fix was fully deployed with no customer action, and did not explain the discrepancy. If your instance reports a lower build, open a support case rather than assume.

What to watch next

Three things are still missing from the public record. Microsoft has not said what "documented security best practices" the exposed instances lacked, so the scope of "exposed" is unknown outside the private notification. No indicators of compromise or actor attribution have been published. And the CVE arrived 15 days after the fix, which means teams that track exposure only through CVE feeds or scanner findings saw nothing until December 3. Azure Service Health alerts need a named owner precisely because platform incidents like this one reach customers there first, and sometimes only there.

Also on December 4, CISA added two Ping Identity PingIDM flaws (CVE-2026-80325 and CVE-2026-80326) to KEV with the same December 7 deadline. Those are authenticated script execution and permission bypass issues; they are not related to the APIM flaw.

Sources