p PatchFirst

CVE-2026-42768

CVE-2026-42768 · Multi-RecipientInfo Bleichenbacher Oracle in CMS_decrypt() and PKCS7_decrypt()

This page contains facts from public vulnerability sources. Check the original advisory before updating.

Issue summary: The CMS_decrypt and PKCS7_decrypt functions are vulnerable to Bleichenbacher-style attack when an attacker is able to provide the CMS or S/MIME messages and observe the error code and/or decryption output. Impact summary: The Bleichenbacher-style attack allows an attacker to use the victim's vulnerable application as a way to decrypt or sign messages with the victim's private RSA key. The attack is possible in 2 variants. 1. The decryption API (CMS_decrypt(), PKCS7_decrypt()) is used without providing the recipient certificate. In this case OpenSSL iterates over every KeyTransRecipientInfo (KTRI) without stopping at the first success. An attacker who authors a message with two KTRI entries — the first one wrapping a real CEK under the victim's public key, the second with an arbitrary probe ciphertext — obtains opportunity to iterate the 2nd KTRI to get a valid PKCS#1 v1.5 padding if the error code of the application is available. That is a Bleichenbacher oracle (Bleichenbacher, CRYPTO '98): an adaptive-chosen-ciphertext side channel from which the attacker decrypts any RSA ciphertext to the victim's key or forges any PKCS#1 v1.5 signature under it. 2. When the decryption API (CMS_decrypt(), PKCS7_decrypt()) is provided with the recipient certificate, and the recipient is not found, a random key is substituted. An attacker who authors a message and is able to compare both error code and the result of the decryption, can mount a Bleichenbacher oracle. We are not aware of any applications that provide a remote attacker an opportunity to mount an attack described in these scenarios. We consider the existence of such application very unlikely, and for this reason this CVE has been evaluated as Low severity. To avoid these attacks, when RSA PKCS#1 v1.5 Key Transport is in use, the invoked EVP_PKEY_decrypt() will use the implicit rejection mechanism described in draft-irtf-cfrg-rsa-guidance. In previous OpenSSL releases the implicit rejection was explicitly disabled. The implicit rejection mechanism always returns a plaintext value, the symmetric key. This result is deterministic for the ciphertext and the private key. The length of the decryption result can happen to match the length of the key of the symmetric cipher that was used for the content encryption. When a certificate is not provided, the last RecipientInfo producing a key that looks valid will be used. It may cause getting garbage content on decryption. As a proper way to deal with this a recipient certificate has to be provided to identify the particular RecipientInfo for decryption. The FIPS modules in 4.0, 3.6, 3.5, and 3.4 are not affected by this issue, as CMS and S/MIME processing happens outside the OpenSSL FIPS module boundary.

CVSS 3.7 · Low · EPSS 0.8% · Fix available

Published
Updated

Stack: system · network

Affected products and versions

  • openssl

    Versions
    • ≥ 4.0.0, < 4.0.1: Affected (semver)
    • ≥ 3.6.0, < 3.6.3: Affected (semver)
    • ≥ 3.5.0, < 3.5.7: Affected (semver)
    • ≥ 3.4.0, < 3.4.6: Affected (semver)

    Update to 3.4.6; Update to 3.5.7; Update to 3.6.3; Update to 4.0.1

  • openssl Debian:13

    Versions
    • 3.5.1-1
    • 3.5.1-1+deb13u1
    • 3.5.2-1
    • 3.5.3-1
    • 3.5.4-1
    • 3.5.4-1~deb13u1
    • 3.5.4-1~deb13u2
    • 3.5.5-1
    • 3.5.5-1~deb13u1
    • 3.5.5-1~deb13u2
    • 3.5.6-1~deb13u1
    Affected ranges
    • ECOSYSTEM: < 3.5.6-1~deb13u2

    Update to 3.5.6-1~deb13u2

  • openssl Debian:14

    Versions
    • 3.5.1-1
    • 3.5.2-1
    • 3.5.3-1
    • 3.5.4-1
    • 3.5.4-1~deb13u1
    • 3.5.4-1~deb13u2
    • 3.5.5-1
    • 3.5.5-1~deb13u1
    • 3.5.5-1~deb13u2
    • 3.5.6-1~deb13u1
    • 3.5.6-1~deb13u2
    • 3.5.7-1~deb13u1
    • 3.5.7-1~deb13u2
    • 3.5.7-1~deb13u3
    • 3.6.0-1
    • 3.6.0-2
    • 3.6.0~~alpha1-1
    • 3.6.0~~beta1-1
    • 3.6.1-1
    • 3.6.1-2
    • 3.6.1-3
    • 3.6.2-1
    Affected ranges
    • ECOSYSTEM: < 3.6.3-1

    Update to 3.6.3-1

  • nodejs Ubuntu:Pro:22.04:LTS

    Versions
    • 12.22.5~dfsg-5ubuntu1
    • 12.22.7~dfsg-2ubuntu1
    • 12.22.7~dfsg-2ubuntu3
    • 12.22.9~dfsg-1ubuntu2
    • 12.22.9~dfsg-1ubuntu3
    • 12.22.9~dfsg-1ubuntu3.1
    • 12.22.9~dfsg-1ubuntu3.2
    • 12.22.9~dfsg-1ubuntu3.3
    • 12.22.9~dfsg-1ubuntu3.4
    • 12.22.9~dfsg-1ubuntu3.5
    • 12.22.9~dfsg-1ubuntu3.6
    • 12.22.9~dfsg-1ubuntu3.6+esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • edk2 Ubuntu:25.10

    Versions
    • 2025.02-3ubuntu2
    • 2025.02-8
    • 2025.02-8ubuntu1
    • 2025.02-8ubuntu2
    • 2025.02-8ubuntu3
    • 2025.02-8ubuntu3.1
    • 2025.02-8ubuntu3.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • openssl Ubuntu:25.10

    Versions
    • 3.4.1-1ubuntu3
    • 3.5.0-2ubuntu1
    • 3.5.2-1ubuntu1
    • 3.5.3-1ubuntu2
    • 3.5.3-1ubuntu3
    • 3.5.3-1ubuntu3.3
    Affected ranges
    • ECOSYSTEM: < 3.5.3-1ubuntu3.4

    Update to 3.5.3-1ubuntu3.4

  • edk2 Ubuntu:26.10

    Versions
    • 2025.11-3ubuntu7
    • 2025.11-3ubuntu8
    • 2026.05-2ubuntu1
    • 2026.05-2ubuntu2
    • 2026.05-2ubuntu3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • edk2-hwe Ubuntu:26.10

    Versions
    • 2025.11-3ubuntu8
    • 2025.11-3ubuntu9
    • 2026.05-2ubuntu1
    • 2026.05-2ubuntu2
    • 2026.05-2ubuntu3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • edk2 Ubuntu:26.04:LTS

    Versions
    • 2025.02-8ubuntu3
    • 2025.11-3ubuntu6
    • 2025.11-3ubuntu7
    • 2025.11-3ubuntu7.2
    • 2025.11-3ubuntu7.3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • edk2-hwe Ubuntu:26.04:LTS

    Versions
    • 2025.11-3ubuntu6
    • 2025.11-3ubuntu8
    • 2025.11-3ubuntu8.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • openssl Ubuntu:26.04:LTS

    Versions
    • 3.5.3-1ubuntu2
    • 3.5.5-1ubuntu1
    • 3.5.5-1ubuntu3
    Affected ranges
    • ECOSYSTEM: < 3.5.5-1ubuntu3.2

    Update to 3.5.5-1ubuntu3.2

Original sources

Check your server →