🔍 CVE-2023-5363

7.5
CVSS Score
HIGH
2023-10-25
2026-06-17 06:48
✅ 완료

🇰🇷 한글 설명

OpenSSL의 EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2(), EVP_CipherInit_ex2() 함수에서 OSSL_PARAM 배열을 통한 키와 IV 길이 변경이 실제로 적용되지 않아 IV 또는 키가 잘려서 처리되는 버그입니다. CCM, GCM, OCB 모드에서 IV 잘림으로 인해 같은 IV가 재사용될 수 있어 암호 기밀성이 손실될 수 있습니다.

💡 쉬운 설명

OpenSSL의 암호화 시작 함수들이 암호화 키와 초기값의 길이를 잘못 처리하면서 암호가 약화되는 문제입니다. 특히 GCM 같은 최신 암호 방식에서는 같은 초기값이 반복되어 악의적 사용자가 암호를 분석하기 쉬워집니다.

🇺🇸 원문 (English)

Issue summary: A bug has been identified in the processing of key and initialisation vector (IV) lengths. This can lead to potential truncation or overruns during the initialisation of some symmetric ciphers. Impact summary: A truncation in the IV can result in non-uniqueness, which could result in loss of confidentiality for some cipher modes. When calling EVP_EncryptInit_ex2(), EVP_DecryptInit_ex2() or EVP_CipherInit_ex2() the provided OSSL_PARAM array is processed after the key and IV have been established. Any alterations to the key length, via the "keylen" parameter or the IV length, via the "ivlen" parameter, within the OSSL_PARAM array will not take effect as intended, potentially causing truncation or overreading of these values. The following ciphers and cipher modes are impacted: RC2, RC4, RC5, CCM, GCM and OCB. For the CCM, GCM and OCB cipher modes, truncation of the IV can result in loss of confidentiality. For example, when following NIST's SP 800-38D section 8.2.1 guidance for constructing a deterministic IV for AES in GCM mode, truncation of the counter portion could lead to IV reuse. Both truncations and overruns of the key and overruns of the IV will produce incorrect results and could, in some cases, trigger a memory exception. However, these issues are not currently assessed as security critical. Changing the key and/or IV lengths is not considered to be a common operation and the vulnerable API was recently introduced. Furthermore it is likely that application developers will have spotted this problem during testing since decryption would fail unless both peers in the communication were similarly vulnerable. For these reasons we expect the probability of an application being vulnerable to this to be quite low. However if an application is vulnerable then this issue is considered very serious. For these reasons we have assessed this issue as Moderate severity overall. The OpenSSL SSL/TLS implementation is not affected by this issue. The OpenSSL 3.0 and 3.1 FIPS providers are not affected by this because the issue lies outside of the FIPS provider boundary. OpenSSL 3.1 and 3.0 are vulnerable to this issue.

📍 영향받는 시스템

OpenSSL 3.0, 3.1; RC2, RC4, RC5, CCM, GCM, OCB 암호 모드를 사용하는 애플리케이션

⚔️ 공격 벡터

EVP_EncryptInit_ex2() 호출 시 OSSL_PARAM으로 키/IV 길이를 의도적으로 변경하면 실제 적용되지 않아 IV 재사용이나 키 잘림 발생

🛡️ 대응 방법

OpenSSL을 3.0.10 이상 또는 3.1.2 이상으로 즉시 업그레이드

🔧 검증 코드

VULNERABLE이 출력되면 취약한 버전입니다. openssl version으로 정확한 버전을 확인하고 3.0.10 미만 또는 3.1.2 미만이면 업그레이드 필요

Shell / Script
openssl version | grep -E '(3\.0\.[0-9]|3\.1\.[0-1])' && echo 'VULNERABLE' || echo 'PATCHED'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSL