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
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft PKCS7 EnvelopedData with inflated content size
  2. Delivery
    Deliver via S/MIME message or CMS input to wolfSSL application
  3. Exploit
    Trigger missing bounds check in wc_PKCS7_DecodeEnvelopedData
  4. Execution
    Read past heap buffer boundary
  5. Impact
    Crash 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

wolfSSL 5.8.0 ≤5.9.1

Affected Packages

euvd wolfssl no fix

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

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
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
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

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

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Medium
lightweight TLS library common in embedded and IoT devices
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment MSRC GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

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-2026-89136 HIGH POC
8.3 Sep 27

Authentication bypass in wolfSSL TLS clients built with Raw Public Key (RPK) support allows a malicious or on-path serve

CVE-2026-93302 HIGH POC
8.3 Sep 27

wolfSSL builds that enable the WOLFSSL_TRUST_PEER_CERT macro can be induced to accept a forged clone of a trusted-peer C

CVE-2026-89102 HIGH POC
8.3 Sep 27

Certificate forgery in the wolfSSL client (versions 5.7.2 through 5.9.2) lets a remote attacker who already holds any ce

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

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