Skip to main content

wolfSSL CVE-2026-6094

| EUVDEUVD-2026-39480 MEDIUM
Out-of-bounds Read (CWE-125)
2026-06-25 wolfSSL GHSA-h6gc-rmv2-74g6
6.3
CVSS 4.0 · Vendor: wolfSSL
Share

Severity by source

Vendor (wolfSSL) PRIMARY
6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
4.8 MEDIUM

AC:H reflects vendor's AT:P and 'theoretical' qualifier; C:L added because heap overread (CWE-125) can expose adjacent memory despite vendor VC:N.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
X

Lifecycle Timeline

2
Source Code Evidence Fetched
Jun 25, 2026 - 18:16 vuln.today
Analysis Generated
Jun 25, 2026 - 18:16 vuln.today

DescriptionCVE.org

Heap buffer overread in wc_PKCS7_DecodeEnvelopedData when parsing crafted PKCS7 EnvelopedData. This could theoretically be triggered by attacker-supplied data delivered via S/MIME or CMS.

AnalysisAI

Heap buffer overread in wolfSSL's PKCS7 EnvelopedData parser allows network-reachable attackers to trigger a low-impact availability disruption or potential memory disclosure by supplying a crafted S/MIME or CMS message. The root cause is a missing integer-overflow-safe bounds check before XMEMCPY calls in wc_PKCS7_DecodeEnvelopedData, wc_PKCS7_DecodeAuthEnvelopedData, and wc_PKCS7_DecodeEncryptedData - all three paths lacked validation that idx + encryptedContentSz does not exceed the input buffer. No public exploit code has been identified at time of analysis, and wolfSSL's own CVSS 4.0 vector classifies attack requirements as present (AT:P), meaning exploitation is not straightforwardly reliable.

Technical ContextAI

wolfSSL (cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:*) is a lightweight TLS/SSL and cryptographic library targeting embedded and constrained environments. The vulnerability resides in wolfcrypt/src/pkcs7.c within the PKCS#7/CMS (Cryptographic Message Syntax) parsing subsystem, specifically in the EnvelopedData, AuthEnvelopedData, and EncryptedData decode paths. CWE-125 (Out-of-bounds Read) is the root cause class: the code used an attacker-controlled encryptedContentSz value directly in an XMEMCPY without first confirming that idx + encryptedContentSz falls within the bounds of the pkiMsg buffer. The fix introduces WC_SAFE_SUM_WORD32 to perform overflow-safe addition and compare the result against pkiMsgSz before any copy. A secondary fix in wc_PKCS7_BuildSignedAttributes replaces the static cannedAttribsCount with the actual runtime idx counter to avoid a related count mismatch. S/MIME email processing and any CMS-based data pipeline using this library are the primary attack surfaces.

RemediationAI

The upstream fix is available as GitHub PR #10128 at https://github.com/wolfSSL/wolfssl/pull/10128; however, a tagged release version incorporating this fix has not been independently confirmed from the available references - users should monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for an official advisory citing an exact fix version and update to that release when available. As an interim compensating control, applications processing untrusted S/MIME or CMS EnvelopedData should validate the outer message size before invoking wc_PKCS7_DecodeEnvelopedData and reject inputs exceeding a defined maximum - this reduces the attack surface without disabling the feature entirely. If wolfSSL is used exclusively for TLS and not for PKCS7/CMS/S/MIME processing, the affected code paths are not reachable and no immediate action is required. Disabling S/MIME processing at the application layer entirely removes exposure with no cryptographic side effects on TLS sessions.

CVE-2017-13099 HIGH POC
7.5 Dec 13

wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i

CVE-2017-2800 CRITICAL POC
9.8 May 24

A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting

CVE-2015-6925 HIGH POC
7.5 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra

CVE-2022-39173 HIGH POC
7.5 Sep 29

In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (

CVE-2022-38152 HIGH POC
7.5 Aug 31

An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita

CVE-2020-11713 HIGH POC
7.5 Apr 12

wolfSSL 4.3.0 has mulmod code in wc_ecc_mulmod_ex in ecc.c that does not properly resist timing side-channel attacks. Ra

CVE-2019-18840 HIGH POC
7.5 Nov 09

In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh

CVE-2020-15309 HIGH POC
7.0 Aug 21

An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).

CVE-2020-24613 MEDIUM POC
6.8 Aug 24

wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t

CVE-2015-7744 MEDIUM POC
5.9 Jan 22

wolfSSL (formerly CyaSSL) before 3.6.8 does not properly handle faults associated with the Chinese Remainder Theorem (CR

CVE-2022-38153 MEDIUM POC
5.9 Aug 31

An issue was discovered in wolfSSL before 5.5.0 (when --enable-session-ticket is used); however, only version 5.3.0 is e

CVE-2021-37155 CRITICAL
9.8 Jul 21

wolfSSL 4.6.x through 4.7.x before 4.8.0 does not produce a failure outcome when the serial number in an OCSP request di

Share

CVE-2026-6094 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy