Stack buffer overflow in CMS (Auth)EnvelopedData parsing
Summary
| CVE | CVE-2025-15467 |
|---|---|
| State | PUBLISHED |
| Assigner | openssl |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-01-27 16:16:14 UTC |
| Updated | 2026-05-07 18:12:43 UTC |
| Description | 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. |
Risk And Classification
Primary CVSS: v3.1 8.8 HIGH from ADP
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Problem Types: CWE-787 | CWE-787 CWE-787 Out-of-bounds Write
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | ADP | DECLARED | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | Secondary | 8.8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
NoneUser Interaction
RequiredScope
UnchangedConfidentiality
HighIntegrity
HighAvailability
HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD Known Affected Configurations (CPE 2.3)
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | OpenSSL | OpenSSL | affected 3.6.0 3.6.1 semver | Not specified |
| CNA | OpenSSL | OpenSSL | affected 3.5.0 3.5.5 semver | Not specified |
| CNA | OpenSSL | OpenSSL | affected 3.4.0 3.4.4 semver | Not specified |
| CNA | OpenSSL | OpenSSL | affected 3.3.0 3.3.6 semver | Not specified |
| CNA | OpenSSL | OpenSSL | affected 3.0.0 3.0.19 semver | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/guiimoraes/CVE-2025-15467 | 134c704f-9b21-4f2e-91b3-4a467353bcc0 | github.com | Exploit, Third Party Advisory |
| github.com/openssl/openssl/commit/6ced0fe6b10faa560e410e3ee8d6c82f06c65ea3 | [email protected] | github.com | Patch |
| github.com/openssl/openssl/commit/ce39170276daec87f55c39dad1f629b56344429e | [email protected] | github.com | Patch |
| github.com/openssl/openssl/commit/5f26d4202f5b89664c5c3f3c62086276026ba9a9 | [email protected] | github.com | Patch |
| openssl-library.org/news/secadv/20260127.txt | [email protected] | openssl-library.org | Vendor Advisory |
| github.com/openssl/openssl/commit/d0071a0799f20cc8101730145349ed4487c268dc | [email protected] | github.com | Patch |
| www.openwall.com/lists/oss-security/2026/01/27/10 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List |
| www.openwall.com/lists/oss-security/2026/02/25/6 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | Mailing List |
| github.com/openssl/openssl/commit/2c8f0e5fa9b6ee5508a0349e4572ddb74db5a703 | [email protected] | github.com | Patch |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Stanislav Fort (Aisle Research) (en)
CNA: Igor Ustinov (en)
There are currently no legacy QID mappings associated with this CVE.