Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2026-5295: A stack buffer overflow exists in wolfSSL's PKCS7 implementation in the wc_PKCS7_DecryptOri() function in wolf

30
Routine
HIGH 8.0UPGRADE

CVE-2026-5295 is a high-severity flaw (CVSS 8.0) affecting wolfssl. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

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

Why this priority

  • High severity

A fixed release or distro patch exists.

Risk facts

CVSS score8.0 (High)
Attack vectorAdjacent network
Attack complexityLow
Privileges neededNone
User interactionRequired
EPSS exploit chance0.2% (top 93%)
CISA exploited listNo
WeaknessCWE-121
Published2026-04-09
Last modified2026-06-17
Publisher (CNA): wolfSSL Inc. · Vendor: wolfssl

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

wolfssl wolfssl UPGRADE
Affected: < 5.9.1
Fixed in: 5.9.1
Safe to downgrade to: no unaffected older release
1. Check installed version
apt-cache policy wolfssl || rpm -q wolfssl || wolfssl --version
2. UPGRADE to 5.9.1 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade wolfssl
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade wolfssl
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2026-5295?

wolfssl: upgrade to 5.9.1. Exact commands for each OS are on this page.

Is CVE-2026-5295 being exploited?

CVE-2026-5295 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2026-5295 affect?

CVE-2026-5295 affects wolfssl. Severity is high (CVSS 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 copi

How urgent is CVE-2026-5295?

Priority 30/100. High severity

Software pages

wolfSSL vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.