CVE-2026-6291
Undergoing Analysis Undergoing Analysis - In Progress
Bleichenbacher Padding Oracle in wolfSSL PKCS#7 KTRI Decryption

Publication date: 2026-06-25

Last updated on: 2026-06-25

Assigner: wolfSSL Inc.

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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-25
Last Modified
2026-06-25
Generated
2026-06-26
AI Q&A
2026-06-25
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
wolfssl wolfssl *
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-208 Two separate operations in a product require different amounts of time to complete, in a way that is observable to an actor and reveals security-relevant information about the state of the product, such as whether a particular operation was successful or not.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability is a Bleichenbacher padding oracle issue in the PKCS#7 KTRI decryption process used by wolfSSL. When decrypting PKCS#7 EnvelopedData with RSA PKCS#1 v1.5 key transport, wolfSSL returned different error codes depending on whether the RSA padding validation failed or the decrypted content was malformed. An attacker who can send specially crafted EnvelopedData messages and observe these error responses could exploit this difference as a padding oracle to gradually recover the encrypted Content Encryption Key (CEK).

The vulnerability was fixed by making the system generate a deterministic pseudo-random fake CEK on padding failure and proceeding with decryption in a way that all failure paths produce the same error message, using constant-time operations to prevent attackers from distinguishing between different failure causes.

Impact Analysis

This vulnerability can allow an attacker to incrementally recover the encrypted Content Encryption Key (CEK) by exploiting the distinguishable error messages during decryption. With the CEK, the attacker could potentially decrypt sensitive encrypted data that was intended to be protected, leading to a compromise of confidentiality.

Mitigation Strategies

To mitigate this vulnerability, you should update wolfSSL to a version that includes the fix for the Bleichenbacher padding oracle issue in PKCS#7 KTRI decryption.

The fix involves generating a deterministic pseudo-random fake Content Encryption Key (CEK) on padding failure and using constant-time operations to ensure all failure paths produce the same error, preventing attackers from distinguishing error responses.

Applying the patch from the wolfSSL repository pull request #10203, which addresses multiple PKCS#7 issues including this vulnerability, is recommended.

Compliance Impact

The provided context and resources do not explicitly discuss the impact of this vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Detection Guidance

This vulnerability involves a Bleichenbacher padding oracle in PKCS#7 KTRI decryption where an attacker can submit crafted EnvelopedData messages and observe distinguishable error responses. Detection would involve monitoring for unusual or repeated PKCS#7 EnvelopedData messages that trigger different error codes during RSA PKCS#1 v1.5 key transport decryption.

Since the vulnerability manifests through error code differences, one detection approach is to analyze logs or error messages from wolfSSL implementations for inconsistent or distinguishable padding validation errors.

Specific commands to detect this vulnerability are not provided in the available resources. However, general network or system commands that could help include:

  • Using packet capture tools like tcpdump or Wireshark to capture and analyze PKCS#7 EnvelopedData messages on the network.
  • Reviewing application or system logs for error messages related to PKCS#7 decryption failures.
  • Testing with crafted PKCS#7 EnvelopedData messages to observe if the system returns distinguishable error codes, which would require custom scripts or tools.

For precise detection commands or scripts, further information or tools specific to wolfSSL or the affected application would be necessary.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-6291. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart