Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft PKCS7 EnvelopedData with inflated content size
-
DeliveryDeliver via S/MIME message or CMS input to wolfSSL application
-
ExploitTrigger missing bounds check in wc_PKCS7_DecodeEnvelopedData
-
ExecutionRead past heap buffer boundary
-
ImpactCrash process or expose adjacent heap memory
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK
1 technique across 1 tactic: Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires that the target application invokes wc_PKCS7_DecodeEnvelopedData, wc_PKCS7_DecodeAuthEnvelopedData, or wc_PKCS7_DecodeEncryptedData with attacker-supplied data - meaning the application must be actively processing untrusted PKCS7 EnvelopedData structures, as occurs in S/MIME email clients/servers or CMS-based data pipelines. wolfSSL deployments that use the library solely for TLS are not affected because these PKCS7 decode functions are not called in the TLS handshake path. The CVSS 4.0 AT:P designation indicates a pre-existing condition or non-trivial setup is required for reliable exploitation; the vendor's own description qualifies impact as 'theoretical', suggesting consistent triggering depends on heap layout. Authentication level is not a limiting factor - PR:N in the vector confirms the crafted message can be delivered without credentials. The primary limiting factors are: the application must consume the PKCS7/CMS/S/MIME data path, and reliable exploitation depends on heap state at parse time. |
| Impact | The vendor-supplied CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N, score 6.3) rates impact as availability-only and low. AT:P (Attack Requirements: Present) indicates exploitation is not trivially reliable against default configurations, which is consistent with the description's 'could theoretically be triggered' qualifier - a notable hedge from the library vendor itself. The 'Information Disclosure' tag in the intelligence data conflicts with the CVSS VC:N rating: heap overreads can expose adjacent memory content (potentially including cryptographic keying material or plaintext), but this has not been confirmed exploitable for data exfiltration. This discrepancy should be verified against the vendor advisory at https://www.wolfssl.com/docs/security-vulnerabilities/. No CISA KEV listing and no public exploit code are present, and EPSS data was not provided. Real-world exploitation risk is limited by the AT:P requirement and low impact rating, making this a moderate-priority patch for teams processing untrusted S/MIME or CMS data with wolfSSL, not an emergency response item. |
| Exploit ScenarioDerived | An attacker sends a crafted S/MIME email or CMS-encoded message to an application that uses wolfSSL to decrypt or verify EnvelopedData. The message contains an inflated encryptedContentSz field that exceeds the actual remaining buffer, causing wolfSSL to read past the end of the heap-allocated pkiMsg buffer during XMEMCPY. Depending on heap layout and what follows the buffer, this may crash the parsing thread or expose adjacent heap contents including potentially sensitive cryptographic material. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 25, 2026
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.
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.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
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.
Know when Wolfssl gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
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.
Primary rating from Vendor (wolfSSL).
CVSS VectorVendor: wolfSSL
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.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
wolfSSL prior to version 3.12.2 provides a weak Bleichenbacher oracle when any TLS cipher suite using RSA key exchange i
A specially crafted x509 certificate can cause a single out of bounds byte overwrite in wolfSSL through 3.10.2 resulting
Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve
wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C
Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce
wolfSSL (formerly CyaSSL) before 3.6.8 allows remote attackers to cause a denial of service (resource consumption or tra
In wolfSSL before 5.5.1, malicious clients can cause a buffer overflow during a TLS 1.3 handshake. Rated high severity (
An issue was discovered in wolfSSL before 5.5.0. Rated high severity (CVSS 7.5), this vulnerability is remotely exploita
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
In wolfSSL 4.1.0 through 4.2.0c, there are missing sanity checks of memory accesses in parsing ASN.1 certificate data wh
An issue was discovered in wolfSSL before 4.5.0, when single precision is not employed. Rated high severity (CVSS 7.0).
wolfSSL before 4.5.0 mishandles TLS 1.3 server data in the WAIT_CERT_CR state, within SanityCheckTls13MsgReceived() in t
EUVD-2026-39480
GHSA-h6gc-rmv2-74g6
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB