🔍 CVE-2026-31789

9.8
CVSS Score
CRITICAL
2026-04-07
2026-07-24 23:10
✅ 완료

🇰🇷 한글 설명

OpenSSL의 X.509 인증서 처리 중 과도하게 큰 OCTET STRING 값을 16진수로 변환할 때 32비트 플랫폼에서 발생하는 힙 버퍼 오버플로우입니다. 입력 길이에 3을 곱한 크기 계산에서 정수 오버플로우로 인해 필요한 것보다 작은 버퍼가 할당되고 오버플로우가 발생합니다.

💡 쉬운 설명

OpenSSL이 1GB 이상의 특수 조작된 X.509 인증서를 출력할 때 메모리 오류로 충돌하거나 악의적 코드 실행이 가능합니다. 32비트 시스템에서만 발생하며 인증서 출력/로깅 기능을 사용하는 애플리케이션이 위험합니다.

🇺🇸 원문 (English)

Issue summary: Converting an excessively large OCTET STRING value to a hexadecimal string leads to a heap buffer overflow on 32 bit platforms. Impact summary: A heap buffer overflow may lead to a crash or possibly an attacker controlled code execution or other undefined behavior. If an attacker can supply a crafted X.509 certificate with an excessively large OCTET STRING value in extensions such as the Subject Key Identifier (SKID) or Authority Key Identifier (AKID) which are being converted to hex, the size of the buffer needed for the result is calculated as multiplication of the input length by 3. On 32 bit platforms, this multiplication may overflow resulting in the allocation of a smaller buffer and a heap buffer overflow. Applications and services that print or log contents of untrusted X.509 certificates are vulnerable to this issue. As the certificates would have to have sizes of over 1 Gigabyte, printing or logging such certificates is a fairly unlikely operation and only 32 bit platforms are affected, this issue was assigned Low severity. The FIPS modules in 3.6, 3.5, 3.4, 3.3 and 3.0 are not affected by this issue, as the affected code is outside the OpenSSL FIPS module boundary.

📍 영향받는 시스템

OpenSSL 3.0-3.6 (32비트 플랫폼만 해당), FIPS 모듈 제외

⚔️ 공격 벡터

공격자가 1GB 이상의 특수 조작된 X.509 인증서를 애플리케이션에 제공하여 출력/로깅될 때 오버플로우 트리거

🛡️ 대응 방법

OpenSSL을 최신 패치 버전으로 업데이트하거나 32비트 플랫폼 사용 제거, 신뢰할 수 없는 인증서 출력 기능 비활성화

🔧 검증 코드

버전이 3.0~3.6 범위이고 아키텍처가 32비트(i386/i686)이면 업데이트 필수

Shell / Script
openssl version | grep -oE 'OpenSSL 3\.[0-6]' && uname -m

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

OpenSSL