BreachSpiderVerified, not vibes

CVE-2026-5295 in Wolfssl

High 8.0

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])...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.18.0
CVSS v45.9
EPSS0.3%
EPSS percentile12th
FixUnknown

Exploitable from adjacent network, low complexity, no authentication required, requires user interaction, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Wolfssl Wolfssl < 5.9.1

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official description

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().

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2026-5295
BreachSpider IDBS-2026-GLOBAL-178566-H
CVSS vectorCVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Published2026-04-09
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-121: Stack-Based Buffer Overflow

Buffer overflow corrupting the program stack, typically overwriting the return address for code execution.

Analysis AI-written, not human-reviewed

A stack buffer overflow vulnerability exists in wolfSSL's PKCS7 implementation, specifically in the wc_PKCS7_DecryptOri() function, which can be exploited by processing a malicious CMS EnvelopedData message containing an OtherRecipientInfo (ORI) recipient.

The vulnerability arises from the function copying an ASN.1-parsed OID into a fixed 32-byte stack buffer without validating that the OID length does not exceed the buffer size. An attacker could exploit this by crafting a CMS EnvelopedData message with a specially crafted ORI recipient, leading to a buffer overflow and potentially remote code execution.

Questions

What is CVE-2026-5295?

A stack buffer overflow vulnerability exists in wolfSSL's PKCS7 implementation, specifically in the wc_PKCS7_DecryptOri() function, which can be exploited by processing a malicious CMS EnvelopedData message containing an OtherRecipientInfo (ORI) recipient.

What is the CVSS score for CVE-2026-5295?

CVE-2026-5295 has CVSS 8.0 (High). Vector: CVSS:3.1/AV:A/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. EPSS: 0.3%.

Is CVE-2026-5295 actively exploited?

No confirmed active exploitation of CVE-2026-5295 as of 2026-09-25.

How do I remediate CVE-2026-5295?

Priority: IMMEDIATE.

What systems are affected by CVE-2026-5295?

CVE-2026-5295 affects Wolfssl Wolfssl.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Wolfssl","product":"Wolfssl","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.