Home/ Blog/ Security news/ Article
Blog · Security news

Azure API Management CVE-2026-139934 Exploited: Rotate Secrets

Azure API Management CVE-2026-139934 is exploited and in CISA KEV. Microsoft fixed the platform, but stolen secrets stay valid. What to rotate and check.

Dark title card reading Azure API Management fixed, stolen secrets still valid

Microsoft closed the hole in Azure API Management Classic on November 19. Anything an attacker read through it before then is still valid today. That is why CVE-2026-139934, published by Microsoft on December 3 and added to CISA's Known Exploited Vulnerabilities (KEV) catalog on December 4, has no download attached and still carries a customer-action flag. The patch is done. The cleanup is yours, and US federal agencies have until December 7 to finish it.

The flaw is an incorrect-authorization bug (CWE-863) rated 9.8 on the Common Vulnerability Scoring System (CVSS). According to Microsoft, someone with no account at all could hit a vulnerable instance over the network and perform admin-level actions on it, including reading and managing its secrets. API Management (APIM) is the gateway many teams put in front of their backends, so it tends to hold exactly the credentials an intruder wants: keys for downstream services, identity-provider client secrets, and references into Azure Key Vault.

Which Azure API Management tiers are exposed?

Only the Classic tiers: Developer, Basic, Standard and Premium. Microsoft's advisory states that the v2 tiers and the Consumption tier are not affected. If you run any Classic instance, look for Azure Service Health notices under tracking ID MZK9-GH0, sent November 21 and updated November 24. They carry Microsoft's exposure criteria for your subscription.

Exploitation is confirmed from two directions. Microsoft's own advisory marks the CVE as exploited. Norway's National Security Authority (NSM) said in a November 20 notice that an unidentified actor was hunting for the tokens, secrets and named values kept inside APIM instances, that Norway's energy sector first spotted the problem, and that Equinor and Skagerak Energi were among the organizations hit. Equinor later said it stopped the attack and found no sign that data was stolen or altered, and Skagerak Energi described an attempted attack with no impact on operations and no evidence of compromised information, according to BleepingComputer. NSM added that the full scale of exploitation is still unclear, and no public source has tied the activity to a named threat group.

Azure API Management Classic: from exploitation to KEV deadlineNov 18: Microsoft finds flaw. Nov 19: Platform fix. Nov 20: NSM warning. Nov 21: First customer notice. Dec 3: CVE published. Dec 4: Added to KEV.Azure API Management Classic: from exploitation to KEV deadlineNov 18Microsoft findsflawNov 19Platform fixNov 20NSM warningNov 21First customernoticeDec 3CVE publishedDec 4Added to KEV
Sources: Microsoft Security Update Guide, Norway's NSM, CISA KEV. All dates 2026.

The timeline matters for planning. Microsoft identified the issue on November 18 and remediated the platform the next day. NSM warned on November 20, and customer notices went out on November 21 and November 24. The CVE record arrived on December 3, CISA listed it on December 4, and the federal due date is December 7. Two weeks separate the fix from the CVE, so anyone who waited for a CVE before acting has lost that time already.

Why the November 19 fix does not protect your credentials

A server-side fix in a managed service stops new abuse. It cannot reach out to Entra ID, a payment processor, or an Event Hubs namespace and void a secret that was already copied. Microsoft says this plainly in its FAQ: the remediation does not invalidate previously exposed credentials. CISA's KEV entry repeats it as a condition of full remediation.

This is the same failure mode we covered when Puppet and vCenter patches left stolen signing keys working. The vendor patches the door, and every key that walked out while it was open still fits a lock somewhere else. With APIM the blast radius is wider than the gateway, because a stolen backend key lets an attacker skip the gateway entirely and call the backend directly. Revoking those keys at the gateway alone changes nothing.

Early coverage in November read as a problem Microsoft had already solved for customers. The CVE record tells a different story: it sets "customer action required" to true, and that flag is the line to hand anyone who decided this was Microsoft's problem.

Rotate at the issuer, in Microsoft's order

Microsoft's rotation guide lists what to replace on an exposed instance. Work through all of it, not only the subscription keys people think of first:

  • Subscription keys, swapping callers to the secondary key, regenerating the primary, then repeating the other way.

  • Secret-bearing named values, and every Key Vault entry they point to.

  • Anything APIM presents to a backend to prove who it is, in a header, a query string or a client certificate.

  • Client secrets your identity provider issued for OAuth 2.0 or OpenID Connect sign-in flows.

  • Logger connection strings, for example the Event Hubs ones.

  • Management API access keys and any credential pasted directly into policy XML.

The order is the part teams get wrong. Create the replacement at the issuer first, update APIM, test, and only then revoke the old secret at the issuer. Updating a value inside APIM does nothing to the credential where it was minted. Microsoft also says secrets you already rotated after the November notices do not need a second rotation.

Confirm the runtime build and hunt where the secrets lead

NSM published a quick way to confirm an instance picked up the fix: an internal status page on the gateway that reports its runtime version. Pair that with a log review on the APIM resource itself and, more importantly, on every system its secrets open.

APIM Classic exposure checks (NSM notice and CSA research note)
Runtime build (per NSM): open on each gateway
  https://<your-gateway-hostname>/internal-status-0123456789abcdef
  read RuntimeVersion
  0.52 builds: fixed when the last number is 31936 or higher
  0.53 builds: fixed when the last number is 31938 or higher
  other patterns (v2 or Consumption): not affected
Azure Activity log operations to review on the APIM resource (per CSA)
  namedValues/listValue
  subscriptions/listSecrets
  note: reads through the legacy direct management API do not appear here
Downstream (per CSA)
  AADServicePrincipalSignInLogs: apps whose secrets APIM held, new source IPs
  Key Vault audit logs: secret reads referenced by APIM
  developer portal audit log: new subscriptions you did not create

Treat the Activity log as a partial view. The Cloud Security Alliance research note points out that access through the legacy direct management API leaves no trace there, and Microsoft has not published the root cause. The downstream logs are where a stolen secret shows up when someone uses it: a service principal signing in from an address it has never used, or a backend accepting a key from outside your gateway's egress range. If you run Entra-backed APIs, the same sign-in review we walked through for the Azure CLI password spray applies here.

Treat December 7 as your deadline too

The KEV due date binds US federal civilian agencies, but it is a sensible deadline for everyone running a Classic tier. Rotate first, because rotation closes the window whether or not you were hit. Then read back through the logs for activity from before November 19 onward, since that is when a stolen secret would have been used.

Longer term, this incident is an argument for keeping fewer long-lived secrets in the gateway at all. Microsoft's own guide recommends managed identities in place of keys and connection strings wherever the backend supports them. A credential that does not exist cannot be copied out of a vulnerable control plane.

Topics

Frequently asked questions

What is CVE-2026-139934?

CVE-2026-139934 is an incorrect-authorization flaw in Azure API Management Classic tiers, rated CVSS 9.8. Microsoft says an unauthenticated attacker could send crafted network requests to an affected instance and perform administrative operations, including secrets management. Microsoft marks it as exploited, and CISA added it to its Known Exploited Vulnerabilities catalog on December 4, 2026.

Which Azure API Management tiers are affected by CVE-2026-139934?

The Classic Developer, Basic, Standard and Premium tiers are affected. Microsoft states that Azure API Management v2 tiers and the Consumption tier are not affected. Classic customers should check Azure Service Health notices under tracking ID MZK9-GH0, sent November 21 and 24, 2026, for Microsoft's exposure criteria.

Is there a patch to install for CVE-2026-139934?

No. Microsoft remediated the service on November 19, 2026, so there is no package to download. That fix does not invalidate credentials exposed before it, so Microsoft still lists customer action as required: rotate secrets stored in API Management and Key Vault secrets it references, then investigate their use.

Is there a public exploit for CVE-2026-139934?

Microsoft lists the flaw as exploited but not publicly disclosed, and it has not published a root cause. Because the fix runs on Microsoft's side, the urgent question for customers is whether secrets were read before November 19, not whether exploit code circulates. Rotation answers that risk either way.

Which secrets should I rotate after CVE-2026-139934?

Rotate subscription keys, named values holding secrets, Key Vault secrets referenced by APIM, backend credentials, OAuth and OpenID Connect client secrets, connection strings such as Event Hubs loggers, management API keys, and any credential written into policies. Create each replacement at its issuer before revoking the old one.

How do I check if my APIM instance has the CVE-2026-139934 fix?

Norway's NSM says to open the gateway's internal status page and read RuntimeVersion. Builds on 0.52 are fixed when the last number is 31936 or higher, and builds on 0.53 when it is 31938 or higher. Other version patterns belong to v2 or Consumption tiers, which are not affected.

See what Suriq finds on your own servers.

Agentless checks for uptime and your cloud, a lightweight agent for detection on each server, and one console that ranks and explains what it finds.