# CVE-2026-6291: Bleichenbacher padding oracle in PKCS#7 KTRI RSA PKCS#1 v1.5 decryption

- Severity: Medium 6.0 (CVSS:4.0, scored by wolfSSL) `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.15%, higher than 4% of CVEs (2026-12-01)
- Published: 2026-06-25T16:41:42.232Z
- Modified: 2026-06-26T16:51:09.727Z
- Weaknesses: CWE-208
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: wolfSSL

## Description

Bleichenbacher padding oracle in PKCS#7 KTRI decryption. When decrypting PKCS#7 EnvelopedData using RSA PKCS#1 v1.5 key transport, wolfSSL returned distinguishable error codes depending on whether RSA padding validation failed versus whether the decrypted content was malformed. An attacker able to submit crafted EnvelopedData messages and observe error responses could use this as a padding oracle to incrementally recover the encrypted Content Encryption Key (CEK). The fix generates a deterministic pseudo-random fake CEK on padding failure (via HMAC-SHA256) and proceeds with decryption identically, using constant-time operations throughout, so that all failure paths produce the same error regardless of padding validity.

(As written by CVE List.)

## Affected

- wolfSSL wolfSSL: from 3.9.10 up to 5.9.1; from 3.9.10 before 5.9.2

## Every score

- wolfSSL: CVSS:4.0 6.0 Medium `CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/wolfSSL/wolfssl/pull/10203> (issue-tracking, patch)
- <https://www.wolfssl.com/docs/security-vulnerabilities/> (vendor-advisory)

## Sources

- CVE List: [CVE-2026-6291](https://www.cve.org/CVERecord?id=CVE-2026-6291), CVE Terms of Use, modified 2026-06-25
- NVD: [CVE-2026-6291](https://nvd.nist.gov/vuln/detail/CVE-2026-6291), Public domain, modified 2026-06-26

---

Page: https://cve.day/CVE-2026-6291 · Whole record: https://cve.day/CVE-2026-6291.json · Rebuilt by cve.day 2026-11-25T22:59:26.407Z
