Skip to main content

Wolfssl EUVDEUVD-2026-21228

| CVE-2026-5295 MEDIUM
Stack-based Buffer Overflow (CWE-121)
2026-04-09 facts@wolfssl.com
5.9
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK

1 technique across 1 tactic: Execution

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

Impact

The CVSS 5.9 score reflects moderate severity with specific attack constraints. The CVSS vector shows attack vector is local (AV:A, not network-accessible), low complexity (AC:L), persistent attack time (AT:P), no privilege requirement (PR:N), but user interaction is required (UI:P). Confidentiality and integrity impact are low (VC:L, VI:L), but availability impact is high (VA:H), indicating the primary concern is denial of service via application crash. The EPSS score and exploitation probability are not provided, but the public availability of a GitHub PR (#10116) suggests upstream awareness and a likely fix. The critical limiting factors are: (1) PKCS7 is opt-in and disabled by default, (2) the application must explicitly call wc_PKCS7_SetOriDecryptCb() to register an ORI handler, and (3) the attack requires local network access and user interaction. These constraints place this vulnerability in a lower-urgency tier compared to network-facing buffer overflows in default configurations. For most wolfSSL deployments using default compilation flags, this poses minimal risk. For specialized applications that do enable PKCS7 with ORI support, a patch should be prioritized to prevent potential local DoS or code execution.

Exploit ScenarioDerived

An attacker with local network access crafts a malicious CMS EnvelopedData message containing an OtherRecipientInfo recipient with an OID field longer than 32 bytes and tricks a user (via social engineering or a local service interaction) to process the message with a vulnerable wolfSSL application that has PKCS7 and ORI callback support enabled. When the application calls wc_PKCS7_DecryptOri() to process the message, the oversized OID overwrites the stack buffer, corrupting the call stack and causing an immediate application crash (denial of service), or potentially allowing code execution if the overflow is carefully crafted. Given the local attack vector and user interaction requirement, this scenario is plausible in enterprise or IoT environments where PKCS7 processing is part of a local certificate or message validation workflow.

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

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

Alert me

AnalysisAIv1 – Apr 09, 2026

Stack buffer overflow in wolfSSL's PKCS7 implementation allows local attackers to cause a denial of service or potentially execute code by crafting a CMS EnvelopedData message with an oversized OID in an OtherRecipientInfo recipient structure. The vulnerability affects wolfSSL when compiled with --enable-pkcs7 (disabled by default) and only when an application explicitly registers an ORI decrypt callback, significantly limiting real-world exposure. No public exploit code or active exploitation has been identified at time of analysis.

RemediationAI

Apply the upstream patch available in wolfSSL PR #10116 (https://github.com/wolfSSL/wolfssl/pull/10116), which adds bounds checking to the OID length before copying into the fixed buffer. If a patched release version is not yet available, apply the PR changes directly to the source. For applications that must remain on unpatched versions, disable PKCS7 support at compile time (do not use --enable-pkcs7) or avoid registering an ORI decrypt callback via wc_PKCS7_SetOriDecryptCb(). Monitor wolfSSL release notes and security advisories at https://www.wolfssl.com for an official patched release version.

Affected VersionsENISA

wolfSSL 0 <5.9.1

Affected Packages

euvd wolfssl fix: 5.9.1

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 exists in the wc_PKCS7_DecryptOri() function in wolfcrypt/src/pkcs7.c, which processes CMS (Cryptographic Message Syntax) EnvelopedData structures defined in RFC 5652. When parsing an OtherRecipientInfo (ORI) recipient type within a PKCS7 message, the function uses XMEMCPY to copy an ASN.1-parsed OID directly into a fixed 32-byte stack buffer (oriOID[MAX_OID_SZ]) without validating the OID length first. This is a classic CWE-121 (Stack-based Buffer Overflow) vulnerability. The root cause is the lack of bounds checking before copying variable-length ASN.1 data into a fixed-size stack allocation. The attack surface is severely restricted because PKCS7 support is an optional compile-time feature (--enable-pkcs7, disabled by default) and exploitation additionally requires the host application to have registered an ORI decrypt callback via wc_PKCS7_SetOriDecryptCb(), making this a conditional vulnerability affecting only specialized deployments.

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

NVD PRIMARY 5.9 MEDIUM
CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

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

Lifecycle Timeline

2
Patch available
Apr 16, 2026 - 05:29 EUVD
5.9.1
CVE Published
Apr 09, 2026 - 23:17 nvd
MEDIUM 5.9

DescriptionCVE.org

A stack buffer overflow exists in wolfSSL's PKCS7 implementation in the wc_PKCS7_DecryptOri() function in wolfcrypt/src/pkcs7.c. When processing a CMS EnvelopedData message containing an OtherRecipientInfo (ORI) recipient, the function copies an ASN.1-parsed OID into a fixed 32-byte stack buffer (oriOID[MAX_OID_SZ]) via XMEMCPY without first validating that the parsed OID length does not exceed MAX_OID_SZ. A crafted CMS EnvelopedData message with an ORI recipient containing an OID longer than 32 bytes triggers a stack buffer overflow. Exploitation requires the library to be built with --enable-pkcs7 (disabled by default) and the application to have registered an ORI decrypt callback via wc_PKCS7_SetOriDecryptCb().

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
7 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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
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
Controlled
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
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.

A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.

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