CVE-2025-15467
PoC massStack Buffer Overflow in OpenSSL 3.x CMS AEAD Parsing Enables DoS/RCE
OpenSSL 3.0, 3.3, 3.4, 3.5 and 3.6 contain a stack-based out-of-bounds write (CWE-787/CWE-120) in their CMS parser: when decoding CMS AuthEnvelopedData or EnvelopedData parameters for AEAD ciphers such as AES-GCM, the ASN.1-encoded IV is copied into a fixed-size stack buffer without checking its length. An attacker triggers it by sending a crafted CMS/PKCS#7 message (e.g., an S/MIME enveloped message) with an oversized IV to any application that parses it; the overflow occurs before authentication or tag verification, so no valid key material is required, though the target must process attacker-supplied content (CVSS UI:R). Successful exploitation causes a crash (denial of service) and, depending on platform and toolchain mitigations, potentially remote code execution. Only applications and services parsing untrusted CMS content with the listed OpenSSL 3.x series are affected; OpenSSL 1.1.1, 1.0.2 and the FIPS modules in 3.0/3.3/3.4/3.5/3.6 are not affected, since the CMS implementation lies outside the FIPS module boundary. There is no confirmed in-the-wild exploitation or KEV listing yet, but a public proof-of-concept exists and EPSS assigns a 48.2% (99th-percentile) probability of exploitation within 30 days.
What to do: Upgrade all OpenSSL 3.0/3.3/3.4/3.5/3.6 deployments to the patched releases referenced in the OpenSSL security advisory, and rebuild or update products, distributions and appliances that bundle affected 3.x libraries. Until patched, mitigate by avoiding or restricting parsing of untrusted CMS/PKCS#7 (Auth)EnvelopedData with AEAD ciphers (e.g., disable or filter S/MIME enveloped-mail processing for external senders) and inventory which services accept CMS content. Note that FIPS-module-only deployments are unaffected because CMS parsing is outside the module boundary.
| OpenSSL | 3.0, 3.3, 3.4, 3.5 and 3.6 (all patch levels prior to the fix); 1.1.1, 1.0.2 and the FIPS modules are not affected |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
Issue summary: Parsing CMS AuthEnvelopedData or EnvelopedData message with maliciously crafted AEAD parameters can trigger a stack buffer overflow. Impact summary: A stack buffer overflow may lead to a crash, causing Denial of Service, or potentially remote code execution. When parsing CMS (Auth)EnvelopedData structures that use AEAD ciphers such as AES-GCM, the IV (Initialization Vector) encoded in the ASN.1 parameters is copied into a fixed-size stack buffer without verifying that its length fits the destination. An attacker can supply a crafted CMS message with an oversized IV, causing a stack-based out-of-bounds write before any authentication or tag verification occurs. Applications and services that parse untrusted CMS or PKCS#7 content using AEAD ciphers (e.g., S/MIME (Auth)EnvelopedData with AES-GCM) are vulnerable. Because the overflow occurs prior to authentication, no valid key material is required to trigger it. While exploitability to remote code execution depends on platform and toolchain mitigations, the stack-based write primitive represents a severe risk. The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the CMS implementation is outside the OpenSSL FIPS module boundary. OpenSSL 3.6, 3.5, 3.4, 3.3 and 3.0 are vulnerable to this issue. OpenSSL 1.1.1 and 1.0.2 are not affected by this issue.
- Vendors
- openssl
- Products
- openssl
- Weakness
- CWE-787, CWE-120
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H