Vulnerability in OpenSSL CMS and S/MIME Functions Exposes RSA Keys
CVE-2026-42768

3.7LOW

Key Information:

Vendor

OpenSSL

Status
Vendor
CVE Published:
9 June 2026

What is CVE-2026-42768?

OpenSSL's CMS_decrypt and PKCS7_decrypt functions have a vulnerability that may allow attackers to exploit a Bleichenbacher-style attack. When an attacker gains access to CMS or S/MIME messages and can observe error codes or decryption output, they can potentially use the victim's application to decrypt or sign messages with their private RSA key. The risk arises in two scenarios: one without a recipient certificate causing the function to iterate through KeyTransRecipientInfo entries, and another where substitution of a key occurs when the recipient is not found. Proper mitigation involves using appropriate recipient certificates to prevent unauthorized attacks.

Affected Version(s)

OpenSSL 4.0.0 < 4.0.1

OpenSSL 3.6.0 < 3.6.3

OpenSSL 3.5.0 < 3.5.7

References

CVSS V3.1

Score:
3.7
Severity:
LOW
Confidentiality:
Low
Integrity:
None
Availability:
Low
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Alex Gaynor (Anthropic)
Dmitry Belyavskiy (Red Hat)
Alicja Kario (Red Hat)
.