🔍 CVE-2026-42768

3.7
CVSS Score
LOW
2026-06-09
2026-07-23 08:10
✅ 완료

🇰🇷 한글 설명

OpenSSL의 CMS_decrypt 및 PKCS7_decrypt 함수가 Bleichenbacher 스타일 공격에 취약하여 공격자가 피해자의 RSA 개인 키를 사용하여 메시지를 복호화하거나 서명 위조가 가능합니다. 이는 오류 코드나 복호화 출력을 관찰할 수 있는 경우 발생하며, OpenSSL 4.1 및 3.7 이전 버전에서 명시적으로 비활성화되었던 암시적 거절 메커니즘을 통해 완화됩니다.

💡 쉬운 설명

OpenSSL의 암호화 기능이 공격자의 조작된 메시지를 통해 개인 키로 암호화된 내용을 빼내거나 가짜 서명을 만들 수 있는 구멍이 있었습니다. 이 문제는 OpenSSL을 최신 버전으로 업데이트하면 해결됩니다.

🇺🇸 원문 (English)

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.

📍 영향받는 시스템

OpenSSL 4.1.0 미만, 3.7.0 미만, 3.6.4 미만, 3.5.4 미만, 3.4.8 미만

⚔️ 공격 벡터

공격자가 CMS/S/MIME 메시지를 조작하고 애플리케이션의 오류 코드 또는 복호화 결과를 관찰하여 선택 암호문 공격을 수행합니다.

🛡️ 대응 방법

OpenSSL을 4.1.1, 3.7.1, 3.6.5, 3.5.5, 3.4.9 이상으로 업그레이드하거나 수신자 인증서를 명시적으로 제공하여 암시적 거절 메커니즘을 활성화합니다.

🔧 검증 코드

출력된 버전이 4.1.1, 3.7.1, 3.6.5, 3.5.5, 3.4.9 이상이면 패치되었음을 의미하며, 그 이전 버전은 취약합니다.

Shell / Script
openssl version

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

💻 영향받는 소프트웨어

OpenSSL