Skip to main content

wolfSSL CVE-2026-6681

| EUVDEUVD-2026-39556 LOW
Out-of-bounds Write (CWE-787)
2026-06-25 wolfSSL GHSA-6q89-vxvr-wgv2
1.0
CVSS 4.0 · Vendor: wolfSSL
View

Attack ChainAIDerived

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

  1. Recon
    Adjacent network access
  2. Delivery
    Obtain low-privilege account
  3. Exploit
    Craft oversized PKCS#7 message
  4. Install
    Deliver to target user
  5. C2
    User processes message
  6. Execute
    Out-of-bounds write
  7. Impact
    Memory corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Adjacent network access required (AV:A)-not internet-routable, only same-network segments. Low-privilege account credentials required (PR:L)-attacker must have authenticated access. User interaction required (UI:P)-the user must initiate or interact with message processing. Attack target requirement present (AT:P)-the vulnerability manifests only against specific application configurations or deployment modes. The application must call wc_PKCS7_DecodeEncryptedData with an output buffer smaller than the actual decrypted content size. These four constraints severely limit real-world exploitation; remote internet-based attacks are not possible.

Impact

Despite the buffer overflow classification, real-world risk is minimal due to severe exploitation constraints. The CVSS 4.0 vector reflects multiple limiting factors: AV:A (adjacent network only, not internet-routable), PR:L (low-privilege account required), UI:P (user interaction mandatory), and AT:P (attack target requirement). The integrity impact is limited to the vulnerable component (VI:L) with no availability or confidentiality impact (VC:N/VA:N). CVSS base score of 1.0 is among the lowest possible scores. No CISA KEV listing or public proof-of-concept code is identified. The exploitation scenario requires an attacker on the adjacent network with a low-privilege account to coerce a user to process a specifically crafted PKCS#7 message-a highly improbable chain. This exemplifies a technically valid buffer overflow with exceptionally low practical risk.

Exploit ScenarioDerived

An attacker on the adjacent network with low-privilege account access crafts a PKCS#7 encrypted message with a decrypted payload larger than the expected buffer size. When a user interacts with an application that processes this message using an undersized output buffer, the decoder overwrites the buffer bounds, corrupting adjacent heap or stack memory. The attacker requires prior knowledge of the application's buffer allocation patterns and must convince a user to trigger the vulnerable code path.

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

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

Alert me

AnalysisAIv1 – Jun 25, 2026

Buffer overflow in wolfSSL's PKCS#7 decoder (versions 5.9.0 and earlier) allows attackers with low-privilege account access on an adjacent network to corrupt memory by providing crafted encrypted messages to applications using undersized output buffers in wc_PKCS7_DecodeEncryptedData. Real-world exploitation is severely constrained by requirements for adjacent network access, low privilege, user interaction, and specific attack target conditions, resulting in minimal integrity impact with no availability or confidentiality effects. No public exploit code or active exploitation is known at the time of analysis.

RemediationAI

Upgrade to wolfSSL 5.9.1 or later, which includes the fix from GitHub PR #10116. The patch adds proper output buffer size validation in the PKCS#7 decoder function. For applications unable to upgrade immediately, implement application-level validation to ensure output buffers passed to wc_PKCS7_DecodeEncryptedData are sized larger than the maximum expected decrypted payload. Additionally, audit all code paths calling this function to verify adequate buffer allocation. The underlying flaw is a logic error in the encoder, so no configuration-based workaround exists-upgrading is the primary remediation.

Affected VersionsENISA

wolfSSL 3.10.0 ≤5.9.0

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

PKCS#7 (Public Key Cryptography Standards #7) defines a standard for cryptographic message syntax used in secure email and other applications. The vulnerability resides in wolfSSL's wc_PKCS7_DecodeEncryptedData function, which implements PKCS#7 encrypted data decoding. The decoder fails to validate the caller-supplied output buffer size parameter (outputSz) before writing decoded content, enabling an out-of-bounds write (CWE-787). The vulnerability is triggered when an application passes a buffer smaller than the decrypted payload size-for example, the test case demonstrates a 496-byte decrypted AES-256-CBC payload written to a 128-byte buffer. wolfSSL is a cryptographic library commonly embedded in IoT devices, industrial control systems, and other resource-constrained environments.

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:A/AC:L/AT:P/PR:L/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/U:Clear
vuln.today AI 2.8 LOW

Converted 4.0 AV:A to 3.1 AV:L (no adjacent option in 3.1); AT:P mapped into AC:L; low integrity impact only, no availability or confidentiality.

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

Primary rating from Vendor (wolfSSL).

CVSS VectorVendor: wolfSSL

Attack Vector
Adjacent
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

The PKCS#7 decode path ignores the caller-supplied output buffer size (outputSz), allowing decoded content to be written past the bounds of the provided buffer. This affects wolfSSL 5.9.0 and earlier and was fixed in the 5.9.1 release.

Threat Intelligence Overview

EPSS Score
0.2%
Top 90% exploitable
Prevalence
Medium
Popular cryptographic library in embedded and IoT systems, less ubiquitous than OpenSSL
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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.2%
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
Controlled
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

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.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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