{
  "id": "azure-apim-classic-secrets",
  "url": "https://ohshit.app/incidents/azure-apim-classic-secrets/",
  "title": "Exploited Azure API Management Classic flaw requires secret rotation after platform remediation",
  "level": 4,
  "level_name": "septic-tank-blew",
  "date": "2026-12-03",
  "date_is_approximate": false,
  "updated": null,
  "tags": [
    "Microsoft",
    "Azure API Management",
    "credentials",
    "cloud"
  ],
  "ecosystems": [],
  "summary": "Microsoft confirms exploitation of CVE-2026-139934 in APIM Classic. Exposed customers must rotate APIM and referenced Key Vault secrets and investigate downstream access; the November 19 platform remediation does not invalidate exposed credentials. v2 and Consumption are unaffected.",
  "splash": "APIM Classic Developer, Basic, Standard and Premium instances meeting MZK9-GH0 exposure criteria; v2 and Consumption are excluded.",
  "wipe": "Check MZK9-GH0, rotate affected credentials at their issuers and in APIM, revoke old values after testing, and investigate downstream access.",
  "in_the_wild": "yes",
  "source_exception": null,
  "cves": [
    {
      "id": "CVE-2026-139934",
      "score": 9.8,
      "name": "APIM incorrect authorization",
      "description": "An unauthenticated network attacker can perform unauthorized administrative operations, including secrets management."
    }
  ],
  "fixed": [],
  "checklist": [
    {
      "title": "Identify affected Classic resources and read your notification",
      "hint": "In Azure portal, open Service Health > Security Advisories, find MZK9-GH0 and read the November 24 update and Impacted Resources tab for each relevant subscription/tenant. Have an authorized Service Health Security reader, subscription administrator or security administrator check sensitive details. The public advisory does not reproduce the customer-specific exposure criteria; being a Classic customer alone does not prove that your credentials were accessed. v2 and Consumption are unaffected."
    },
    {
      "title": "Inventory every affected credential and its consumers",
      "hint": "Use the Microsoft rotation guide to inspect APIM subscription keys, secret named values, backend headers/query credentials/client certificates, OAuth2/OIDC client secrets, connection strings such as Event Hubs loggers, hard-coded policy credentials and legacy Direct Management API keys. Include secrets held in Key Vault that APIM references. Find instances across subscriptions and map each credential to its issuer and downstream consumers; do not print secrets into shell history, logs or tickets."
    },
    {
      "title": "Replace, test and revoke at the issuer",
      "hint": "Where overlap is supported, create a replacement at the backend/identity provider, update APIM, test API access and dependent consumers, then revoke the old secret at its issuer. Changing an APIM value alone does not revoke it elsewhere. For subscription or legacy management key pairs, move consumers to the secondary before regenerating the primary, test and switch before regenerating the secondary. Update version-pinned Key Vault references to the new version and refresh named values. Update OAuth/OIDC configuration and republish the developer portal when it uses that configuration; obtain a fresh test token before removing the old secret. For backend client certificates, coordinate replacement with the backend owner and verify the new certificate before retiring the old one."
    },
    {
      "title": "Verify previous rotations and investigate downstream use",
      "hint": "Microsoft says credentials rotated after the first or second MZK9-GH0 notification need not be rotated again for this advisory; verify completion records and revocation rather than assuming a configured new value was sufficient. Preserve relevant APIM/configuration and destination-service authentication/activity records, investigate unexpected subscriptions, users, policies, backends or downstream access, and follow the notice's forensic instructions. A successful platform remediation or a clean current configuration does not prove old credentials were never used. CISA's December 7 due date applies to its federal directive, not every customer's contractual deadline."
    }
  ],
  "sources": [
    {
      "name": "Microsoft original CVE advisory through its public Security Update Guide API",
      "url": "https://api.msrc.microsoft.com/sug/v2.0/en-US/vulnerability/CVE-2026-139934",
      "says": "Full public advisory and FAQs read through Microsoft's ordinary unauthenticated API after the browser page returned a JavaScript shell. Gives exploitation detected, Classic tiers, unaffected tiers, November 19 remediation, November 21/24 MZK9-GH0 notices, secret rotation and downstream investigation, plus no-repeat-rotation exception. Public release December 3 at 08:00 UTC-08:00.",
      "primary": true
    },
    {
      "name": "CISA original Known Exploited Vulnerabilities catalog",
      "url": "https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json",
      "says": "December 4 entry for CVE-2026-139934 confirms known exploitation, unauthenticated administrative/secrets operations, vendor follow-up including credential rotation and downstream investigation, forensic triage and December 7 federal due date. Ransomware use is unknown.",
      "primary": true
    },
    {
      "name": "Microsoft original APIM credential-rotation guide",
      "url": "https://techcommunity.microsoft.com/blog/integrationsonazureblog/rotating-credentials-in-azure-api-management/4575478",
      "says": "November 21 guide updated November 22, read in full. Covers credential inventory and issuer-side replacement/revocation, paired-key sequencing, Key Vault references, OAuth/OIDC, loggers and policy secrets. It is an operational guide, not evidence that every instance was compromised.",
      "primary": true
    },
    {
      "name": "Microsoft Service Health impacted-resource documentation",
      "url": "https://learn.microsoft.com/en-us/azure/service-health/impacted-resources-security",
      "says": "Public documentation explains Service Health Security Advisories Impacted Resources and role-limited access to sensitive details. Customer-specific notices and affected-resource lists were not accessed for this report.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": null,
  "in_the_wild_note": "Microsoft confirms exploitation; CISA added CVE-2026-139934 to KEV on December 4.",
  "mitigation": null,
  "timeline": [
    {
      "date": "Nov 19, 2026",
      "title": "Microsoft remediates the platform issue",
      "body": "The later public advisory dates the platform remediation to this day. Microsoft says it does not invalidate previously exposed credentials and that customer actions do not require a downloadable security update."
    },
    {
      "date": "Nov 21, 2026",
      "title": "First Service Health notification sent",
      "body": "Microsoft's later advisory identifies Important security information about Azure API Management Classic tiers, tracking ID MZK9-GH0. This was a customer notification; the public CVE advisory was released later."
    },
    {
      "date": "Nov 24, 2026",
      "title": "Updated exposure and action notice sent",
      "body": "Microsoft directs Classic-tier customers to the updated MZK9-GH0 Service Health notice for exposure criteria and immediate actions. Credentials rotated after either the first or second notification do not need another rotation under this advisory."
    },
    {
      "date": "Dec 3, 16:00 UTC",
      "title": "Microsoft publishes the public CVE advisory",
      "body": "The advisory release is 08:00 at UTC-08:00. It marks exploitation detected and describes network requests allowing unauthorized administrative operations, including secrets management. It excludes APIM v2 and Consumption and requires exposed customers to rotate secrets and investigate downstream activity."
    },
    {
      "date": "Dec 4, 2026",
      "title": "CISA adds the flaw to KEV",
      "body": "CISA confirms known exploitation, requires vendor remediation and forensic triage under its applicable directive, and sets December 7 as the federal due date. Ransomware-campaign use is unknown; that is not evidence that no exploitation occurred."
    }
  ],
  "body_markdown": "**Microsoft confirms exploitation in the wild** of an authorization flaw in Azure API Management. An unauthenticated network attacker could perform unauthorized administrative operations, including secrets management. The affected service family is **Classic Developer, Basic, Standard and Premium**, subject to the exposure criteria in each customer's **MZK9-GH0** Service Health notice. APIM **v2 and Consumption are unaffected**. No public victim count, attacker attribution or per-customer secret-access total was verified.\n\nMicrosoft remediated the platform on **November 19**, notified customers on **November 21** and sent an updated notice on **November 24**. Its public CVE advisory was released on **December 3**. The earlier notification dates are preserved; the public report is not dated from the later KEV addition. This is separate from the October ConnectWise cloud-backup incident, whose article mentions a precautionary APIM rotation notice; that mention does not establish a shared cause.\n\nPlatform remediation does not invalidate a credential already exposed. Exposed customers must rotate **both secrets stored in APIM and referenced Azure Key Vault secrets**, and investigate the systems those secrets can access. There is no client package to download for this service-side fix. Updating an APIM configuration value is only one step: consumers must be tested and old credentials revoked at their issuers. Credentials already rotated after either MZK9-GH0 notice do not require another rotation under Microsoft's advice.\n\nCISA added the flaw to KEV on **December 4**, with forensic triage and a **December 7 federal due date**. No public attack indicators were provided in the advisory or catalog entry read. Use the authorized customer notice and your own authentication/configuration evidence; do not interpret an unavailable sensitive notice, an unaffected tier or a completed rotation as a universal forensic clearance."
}