You can now sign in with a passkey, no password needed, or protect your account with a second factor. Learn more
OpenSSL: Heap Buffer Overflow in CMS Key Unwrapping
Download as CSAF file (VEX, JSON)Machine-readable version of this assessment in the OASIS CSAF 2.0 standard, for example for your vulnerability scanner. You may pass the file on.
Issue summary: OpenSSL CMS decryption sizes the key-unwrap output buffer based on querying the unwrapped key size, but the AES-WRAP-PAD unwrap primitive can write and cleanse more bytes than that query reports, causing an 8-byte out-of-bounds heap write. Impact summary: An attacker who supplies a crafted CMS message can trigger a deterministic 8-byte out-of-bounds heap write when the victim decrypts it with CMS_decrypt(), corrupting the heap and typically resulting in a Denial of Service. CWE: CWE-787: Out-of-bounds Write Description: The key-wrap OID is potentially attacker-controlled on the wire. CMS unwrapping allows both id-aesNNN-wrap-pad and id-aesNNN-wrap ciphers. An attacker can take a legitimate message and change a single OID byte to select the padded variant while leaving the message otherwise valid. Since the unwrap key is derived from the recipient's private operation (ECDH key agreement or ML-KEM decapsulation), the RFC 5649 integrity check cannot pass, and the decryption fails with integrity failure. The write is a fixed-size (8-byte), fixed-value (zero) heap overflow immediately past the allocation, requires no special configuration, and is reachable from the public CMS_decrypt() function. The consequence is a heap corruption leading to a Denial of Service. The fix in the CMS code sizes the unwrap output buffer for the worst case so a failed unwrap cannot write past the allocation. FIPS impact: no As the CMS code lives outside the FIPS module boundary, no FIPS modules are affected by this CVE.
The newest version of each supported line. Older versions are under “All versions”.
| Version | Status | Fixed from |
|---|---|---|
| EventReporter 26.11Current | Fixed | 26.10 |
| EventReporter 19.4aExtended maintenance | Fixed | 19.4a |
| MonitorWare Agent 26.11Current | Fixed | 26.10 |
| MonitorWare Agent 15.4aExtended maintenance | Fixed | 15.4a |
| rsyslog Windows Agent 26.11Current | Fixed | 26.10 |
| rsyslog Windows Agent 8.4aExtended maintenance | Fixed | 8.4a |
| WinSyslog 26.11 |
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 19.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 19.4a ship OpenSSL 3.2.1, which is affected; fixed from 19.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 18.3 ship OpenSSL 1.1.1g, 18.3 and later ship OpenSSL 1.1.1q; both are affected. Line 18 is end of life; please update to a supported version (19.4a or 26.11).
| Fixed |
| 26.10 |
| WinSyslog 18.4aExtended maintenance | Fixed | 18.4a |
|---|
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 18.3, 1.1.1q from 18.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 17.2) and 1.0.2u (from 17.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 17.2, 1.0.2u from 17.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 15.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 15.4a ship OpenSSL 3.2.1, which is affected; fixed from 15.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 14.3 ship OpenSSL 1.1.1g, 14.3 and later ship OpenSSL 1.1.1q; both are affected. Line 14 is end of life; please update to a supported version (15.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 14.3, 1.1.1q from 14.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 13.2) and 1.0.2u (from 13.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 13.2, 1.0.2u from 13.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 8.4a
Fixed by OpenSSL 3.2.1 → 3.5.9
Releases before 8.4a ship OpenSSL 3.2.1, which is affected; fixed from 8.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 7.3 ship OpenSSL 1.1.1g, 7.3 and later ship OpenSSL 1.1.1q; both are affected. Line 7 is end of life; please update to a supported version (8.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 7.3, 1.1.1q from 7.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 6.2) and 1.0.2u (from 6.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 6.2, 1.0.2u from 6.2
Fixed from 26.10
Fixed by OpenSSL 3.5.6 → 3.5.9
26.07 to 26.09 ship OpenSSL 3.5.6; fixed from 26.10, which ships OpenSSL 3.5.9.
Fixed from 18.4a
Fixed by OpenSSL 1.0.2e, 3.2.1 → 1.0.2e, 3.5.9
Releases before 18.4a ship OpenSSL 3.2.1, which is affected; fixed from 18.4a, which ships OpenSSL 3.5.9. OpenSSL no longer assesses 3.2 (end of life), but lists the older 3.0 or 1.1.1 and the newer 3.5 as affected.
Releases before 17.3 ship OpenSSL 1.1.1g, 17.3 and later ship OpenSSL 1.1.1q; both are affected. Line 17 is end of life; please update to a supported version (18.4a or 26.11).
Checked: Bundled OpenSSL per himalaya tag: 1.1.1g before 17.3, 1.1.1q from 17.3
The vulnerable code is not included.
This line ships OpenSSL 1.0.2k (before 16.2) and 1.0.2u (from 16.2); OpenSSL does not list either as affected.
Checked: Bundled OpenSSL per himalaya tag: 1.0.2k before 16.2, 1.0.2u from 16.2
Products and versions not listed here have not been checked.