Buffer overflow in OpenSSL

CVE-2025-15467

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.

Vulnerability class: Buffer Overflow

Published · last modified .

CVSS v3 metric

CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.

EPSS exploit prediction

EPSS 0.748, 99.5th percentile (scored ); up from 0.524 30 days earlier. About EPSS.

EPSS trend (30 days)EPSS over the last 30 days for CVE-2025-15467: rose from 0.524 to 0.748.

EPSS over last 30 days · oldest: 0.524 · newest: 0.748 · change: +0.223

Affected products

  • OpenSSL — versions 3.6.0, 3.5.0, 3.4.0

Weakness classification (CWE)

Public exploits and proof-of-concept code

6 public repositories with exploit or proof-of-concept code for this CVE:

  • guiimoraes/CVE-2025-15467 (15 stars, last pushed 2026-02-25): Command Execution PoC for OpenSSL Stack buffer overflow CVE-2025-15467
  • balgan/CVE-2025-15467 (8 stars, last pushed 2026-01-28): Working DoS for CVE-2025-15467 and a docker container to test against
  • mr-r3b00t/CVE-2025-15467 (1 star, last pushed 2026-02-03): discovery tool (powershell)
  • googlesky/CVE-2026-128027 (last pushed 2026-11-14): GHSA-x9p2-77v6-6vhf PoC: a FrankenPHP image baked on a stale base snapshot ships libcrypto3 3.3.5, exposed to CVE-2025-15467 (pre-auth stack overflow in CMS parsing); the refreshed base ships 3.3.6 a…
  • WostGit/cve-2025-15467-crash (last pushed 2026-04-07)
  • materaj2/cve-2025-15467 (last pushed 2026-03-14): Exploit script for cve-2025-15467

References