Skip to main content

wolfSSL EUVDEUVD-2026-39558

| CVE-2026-6678 LOW
Integer Underflow (CWE-191)
2026-06-25 wolfSSL GHSA-p894-8wv9-373j
1.0
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

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

  1. Recon
    Gain local low-privilege access
  2. Delivery
    Craft PKCS#7 EnvelopedData with OID exceeding declared [4] length
  3. Exploit
    Supply crafted input to wolfSSL-linked application
  4. Install
    Application passively processes ORI RecipientInfo
  5. C2
    wc_PKCS7_DecryptOri underflows word32 oriValueSz
  6. Execute
    Incorrect length passed to decryption logic
  7. Impact
    Application crash or availability disruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer underflow checks
Exploitation Conditions

Exploitation requires local system access with at least low-privilege credentials (AV:L, PR:L). The vulnerable code path is only reachable when wolfSSL is compiled with HAVE_PKCS7 defined and WOLFSSL_NO_MALLOC not defined - both non-default build options that must be explicitly enabled. The target application must be configured to process PKCS#7 EnvelopedData containing ORI ([4] CONSTRUCTED) RecipientInfo structures, which is itself an uncommon PKCS#7 feature. Passive user interaction is required (UI:P): the attacker must cause the application to process the crafted input rather than directly triggering the parse. Key limiting factors include local-only access (no remote network exploitation path), high attack complexity requiring precise byte-level crafting of ASN.1 length fields, and the need for the specific HAVE_PKCS7 compile-time feature plus ORI processing to be active - none of which are default wolfSSL configurations.

Impact

The CVSS 4.0 base score of 1.0 accurately reflects the highly constrained exploitation surface: local attack vector (AV:L), high complexity (AC:H), presence of a specific attack target required (AT:P), low privileges (PR:L), and passive user interaction (UI:P). The only measurable impact is low availability on the vulnerable system (VA:L); confidentiality and integrity are unaffected (VC:N/VI:N). No EPSS score was provided in the source data, no CISA KEV listing exists, and no standalone public exploit has been identified, though the PR includes a self-contained regression test PoC byte sequence embedded in the wolfSSL test suite - this is not a separately released exploit. The 'Information Disclosure' tag in the source data conflicts with the CVSS vector showing VC:N; this discrepancy is unresolved and may reference a related but distinct issue within the same PR. SSVC signals are uniformly low: exploitation status is none, automatable is no due to local-only vector, and technical impact is partial at best. This is a low-priority remediation for most organizations unless the specific deployment processes untrusted PKCS#7 ORI messages from local sources.

Exploit ScenarioDerived

A local low-privileged attacker who can supply or influence PKCS#7 EnvelopedData content processed by a wolfSSL-linked application - for example through a file path, local socket, or IPC channel - crafts a message where the OID inside the [4] implicit SEQUENCE declares a 20-byte content field but the overall [4] length is set to 5, causing the byte consumption to exceed seqSz by 17 bytes. When the target application passively processes this input via wc_PKCS7_DecodeEnvelopedData, the word32 subtraction underflows, oriValueSz wraps to a near-maximal value, and the resulting incorrect length parameter disrupts decryption logic and may crash the application. The wolfSSL PR includes a self-contained regression-test PoC byte sequence demonstrating the exact byte layout required, though no independently released public exploit exists.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Jun 25, 2026

Integer underflow in wolfSSL's PKCS#7 ORI decryption path allows a local low-privileged attacker to cause incorrect length computation during EnvelopedData parsing, resulting in low-severity availability impact. Specifically, when the OID embedded inside an implicit [4] CONSTRUCTED Other Recipient Info sequence consumes more bytes than the field's declared length, the word32 subtraction for oriValueSz wraps around to a near-maximal unsigned value, feeding corrupted length data to downstream decryption logic. No public exploit has been identified and no CISA KEV listing exists; exploitation requires local access, high complexity, and passive processing of crafted input by the target application.

RemediationAI

The upstream fix is available as GitHub PR #10203 (https://github.com/wolfSSL/wolfssl/pull/10203); however, a tagged patched release version has not been independently confirmed - only the upstream PR reference is available, so this should be treated as 'Upstream fix available (PR/commit); released patched version not independently confirmed.' Organizations should monitor https://www.wolfssl.com/docs/security-vulnerabilities/ for the formal advisory citing a specific release. As a compile-time compensating control, removing the HAVE_PKCS7 build flag eliminates the vulnerable code path entirely; the trade-off is complete loss of PKCS#7 functionality. If PKCS#7 support is required but ORI decryption is not, applications should validate or reject EnvelopedData messages containing [4] CONSTRUCTED ORI RecipientInfo structures at the application boundary before passing them to wolfSSL, preventing the underflow from being triggered without altering library behavior.

Affected VersionsENISA

wolfSSL 3.15.5 ≤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

The vulnerability is in wc_PKCS7_DecryptOri within wolfSSL's PKCS#7 implementation (src/ssl_p7p12.c). PKCS#7 EnvelopedData supports multiple RecipientInfo types; Other Recipient Info (ORI) is encoded using an implicit ASN.1 [4] CONSTRUCTED tag that replaces the outer SEQUENCE. The parser reads seqSz from the [4] length field, then parses the OID within it. When an attacker crafts a message where the OID's total byte consumption (tag byte + length byte + content bytes) exceeds the declared seqSz, the computation oriValueSz = seqSz - oidConsumed underflows the word32 (unsigned 32-bit integer), wrapping to approximately 0xFFFFFFFF minus the difference. CWE-191 (Integer Underflow / Wrap-or-Wraparound) is the root cause. The wrapped value is then passed as a length parameter to downstream decryption callbacks, producing incorrect behavior. The CPE string cpe:2.3:a:wolfssl:wolfssl:*:*:*:*:*:*:*:* covers all versions. The PR also corrects a related heap-OOB read in wolfSSL_PKCS7_get0_signers where directly passing the address of a struct field to wolfSSL_d2i_X509 caused the stored pointer to be permanently advanced on each call, leading to a corrupted pointer on subsequent access.

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 1.0 LOW
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/U:Clear
vuln.today AI 2.2 LOW

Local-only vector with high complexity and low privileges required; passive interaction needed; only low availability impact from incorrect length handling causing potential crash.

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

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
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

Integer underflow in wc_PKCS7_DecryptOri when handling crafted Other Recipient Info, leading to incorrect length handling during decryption.

Threat Intelligence Overview

EPSS Score
0.1%
Top 99% exploitable
Prevalence
Medium
widely used TLS library in embedded, IoT, automotive, and RTOS environments
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 LOW
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Low
Technical Impact
Partial

Priority Score

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

Attack Technique

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

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