🔍 CVE-2026-119195

7.5
CVSS Score
HIGH
2026-10-29
2026-10-30 17:18
✅ 완료

🇰🇷 한글 설명

pyasn1 0.6.5 이전 버전에서 구조화된(constructed) 문자열 및 부정 길이(indefinite-length) ANY 디코딩 시 조각을 반복적으로 이어 붙여 2차 시간 복잡도의 작업이 발생합니다. 공격자가 조각화된 BER/CER 데이터를 보내면 디코딩 워커의 CPU를 고갈시킬 수 있으며, 기밀성이나 무결성에는 영향이 없습니다.

💡 쉬운 설명

ASN.1 데이터를 파싱하는 Python 라이브러리에서 악의적으로 잘게 나뉜 데이터를 처리할 때 처리 시간이 급격히 늘어납니다. 이로 인해 서버의 CPU가 과부하되어 서비스가 느려지거나 멈출 수 있습니다.

🇺🇸 원문 (English)

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, constructed string and indefinite-length ANY decoding repeatedly concatenates each fragment onto a growing bytes value. Attacker-controlled BER or CER data can use many constructed OCTET STRING or character-string fragments. DER rejects constructed OCTET STRING without a schema, but accepts its definite-length form when asn1Spec selects univ.OctetString; it also accepts constructed character strings such as UTF8String without a schema, even though those encodings are not valid DER. The separate indefinite-length ANY path is reachable in BER and CER when asn1Spec selects univ.Any; DER rejects indefinite lengths. OctetStringPayloadDecoder uses growing header concatenation and AnyPayloadDecoder.indefLenValueDecoder uses growing chunk concatenation, repeatedly copying an increasing prefix and causing quadratic work. A sufficiently fragmented value can occupy decoding workers and cause CPU exhaustion without confidentiality or integrity impact. This issue is fixed in version 0.6.5.

📍 영향받는 시스템

pyasn1 0.6.5 미만 버전을 사용하는 Python 애플리케이션 전반

⚔️ 공격 벡터

조각화된 구조의 BER/CER 인코딩 데이터를 pyasn1 디코더에 전송하여 CPU 자원을 소진시키는 서비스 거부(DoS) 공격

🛡️ 대응 방법

pyasn1을 0.6.5 이상 버전으로 업그레이드 (pip install --upgrade 'pyasn1>=0.6.5')

🔧 검증 코드

출력된 버전이 0.6.5 미만이면 취약하므로 업그레이드가 필요하고, 0.6.5 이상이면 패치된 상태입니다.

Shell / Script
pip show pyasn1 2>/dev/null | grep -i '^version'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Python