CVE-2021-31196: ProxyOracle padding oracle in Microsoft Exchange Server
- Vendor
- Microsoft Corporation
CVE-2021-31196 is a padding-oracle vulnerability in Microsoft Exchange Server Outlook Web Access Form-Based Authentication cookie parsing and a component of the ProxyOracle exploit chain. Exchange stores encrypted username and password data in authentication cookies using AES-CBC. Cookie processing produces distinguishable redirects for cryptographic padding errors and successfully decrypted but invalid credentials, exposing an oracle that permits recovery of encrypted credentials. When chained with the reflected cross-site scripting vulnerability CVE-2021-31195, an attacker can capture a victim's protected authentication cookies and recover the victim's password in plaintext. Microsoft also classifies CVE-2021-31196 as a remote code execution vulnerability, although the described padding-oracle mechanism directly demonstrates credential disclosure rather than code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Exploitation of the padding oracle exposes credentials encrypted in Exchange authentication cookies, including a victim's plaintext password. The ProxyOracle chain bypasses HttpOnly cookie protections to obtain the encrypted data, after which credential recovery can continue without further victim interaction, even after the browser is closed. Remote code execution on affected Exchange Server systems is also identified as an impact, but the available technical details do not establish how the padding oracle alone produces that outcome.
Mitigation
If you can’t patch tonight, do this now.
Until the security update is deployed, limit exposure of Outlook Web Access and Exchange HTTPS services to trusted networks and users, and monitor for anomalous or repeated malformed FBA-cookie requests and redirect-response probing. These measures reduce exposure but do not eliminate the underlying cryptographic oracle.
Remediation
Patch, then assume compromise.
Apply the Microsoft Exchange Server security update addressing CVE-2021-31196, released on July 13, 2021, or a superseding update appropriate for the installed Exchange version. Address CVE-2021-31195 as well to eliminate the companion reflected cross-site scripting vulnerability used in the ProxyOracle chain.
Exploits
1 exploit validated by Mallory's analysis.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-31196 exploited in the wild?
- Yes. As of Oct 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Aug 21, 2024.
- Is there a public exploit for CVE-2021-31196?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-31196, the earliest disclosed Apr 14, 2021.
- Is there a patch for CVE-2021-31196?
- Apply the Microsoft Exchange Server security update addressing CVE-2021-31196, released on July 13, 2021, or a superseding update appropriate for the installed Exchange version. Address CVE-2021-31195 as well to eliminate the companion reflected cross-site scripting vulnerability used in the ProxyOracle chain.
- What products are affected by CVE-2021-31196?
- Microsoft Corporation Exchange Server.
- How severe is CVE-2021-31196?
- CVE-2021-31196 has a CVSS v3.1 score of 7.2 (High) and an EPSS score of 54.1% (99th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.