
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-6094 is a heap buffer overread vulnerability in wolfSSL's wc_PKCS7_DecodeEnvelopedData function, triggered when parsing crafted PKCS7 EnvelopedData structures. It affects wolfSSL versions 5.8.0 through 5.9.1 and can theoretically be exploited via attacker-supplied data delivered through S/MIME or CMS messages. The vulnerability was published on June 25, 2026, with a patch merged into the wolfSSL master branch on April 23, 2026. It carries a CVSS v3.1 base score of 9.1 (Critical) and a CVSS v4.0 base score of 6.3 (Medium) (GitHub Advisory, wolfSSL PR).
The root cause is an out-of-bounds read (CWE-125) in wolfcrypt/src/pkcs7.c, where the wc_PKCS7_DecodeEnvelopedData function fails to validate that encryptedContentTotalSz does not exceed the total message size before using it in the non-streaming case. This allows a heap buffer overread when processing a specially crafted PKCS7 EnvelopedData message. The fix, contributed by Zou Dikai and merged in PR #10128, adds a bounds check before caching encrypted content and also corrects the signed attributes count to reflect only attributes actually added. Exploitation requires the target application to process attacker-controlled S/MIME or CMS data, which is a realistic precondition for mail gateways, email clients, or any service parsing such messages (wolfSSL PR, GitHub Advisory).
Successful exploitation can result in two primary impacts: disclosure of sensitive data from heap memory (confidentiality) and application crash (availability). An unauthenticated remote attacker can send a crafted S/MIME or CMS message to cause the affected application to read beyond the intended heap buffer, potentially exposing cryptographic keys, plaintext data, or other sensitive in-memory content, and crashing the service. Integrity is not directly impacted, and there is no evidence of lateral movement capability from this vulnerability alone (GitHub Advisory, wolfSSL Security).
encryptedContentTotalSz field that exceeds the actual message buffer size, designed to trigger the missing bounds check in wc_PKCS7_DecodeEnvelopedData.wc_PKCS7_DecodeEnvelopedData function reads beyond the intended heap buffer, potentially leaking adjacent heap memory contents or causing a crash (denial of service).wc_PKCS7_DecodeEnvelopedData, BUFFER_E, or WC_KEY_SIZE_E in wolfSSL-linked services; repeated parsing failures for S/MIME or CMS messages from external sources.encryptedContentTotalSz values relative to the actual message size.The primary remediation is to upgrade wolfSSL to version 5.9.2 or later, which includes the bounds check fix merged in PR #10128 on April 23, 2026. If immediate patching is not feasible, restrict network access to services that process S/MIME or CMS messages from untrusted sources, and consider filtering or rejecting externally supplied PKCS7 EnvelopedData at the network perimeter. Monitor affected applications (wolfSSL 5.8.0–5.9.1) for unexpected crashes or anomalous behavior as an interim measure (wolfSSL Security, wolfSSL PR).
The vulnerability was reported to wolfSSL by researcher Zou Dikai (referenced in the fix commits as zd#21526 and zd#21530), and the fix was developed internally by the wolfSSL team. The GitHub Advisory Database classified it as "Moderate" severity based on CVSS v4.0 scoring. No significant broader media coverage or notable community commentary beyond standard vulnerability tracking sites has been observed (wolfSSL PR, GitHub Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."