🇰🇷 한글 설명
pyasn1 라이브러리의 BER 디코더에서 태그 ID 크기에 대한 상한선 없이 연속 옥텟을 누적하여 발생하는 취약점입니다. 공격자가 조작된 입력을 제공할 경우 CPU 자원을 과도하게 소모하는 이차 함수적 비용이 발생하거나 Python 3.11+ 환경에서 ValueError 예외를 유발할 수 있습니다.
💡 쉬운 설명
특수하게 만들어진 데이터를 처리할 때 컴퓨터의 계산 능력을 과도하게 사용하여 시스템을 느리게 만들거나 오류를 일으킬 수 있는 문제입니다. 신뢰할 수 없는 데이터를 처리하는 프로그램이 이 라이브러리를 사용하면 위험합니다.
🇺🇸 원문 (English)
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.
📍 영향받는 시스템
pyasn1 버전 0.6.4 미만 버전
⚔️ 공격 벡터
조작된 BER, CER 또는 DER 형식의 입력 데이터를 디코딩하도록 유도
🛡️ 대응 방법
pyasn1 라이브러리를 0.6.4 버전 이상으로 업데이트
🔧 검증 코드
출력된 Version 값이 0.6.4 미만이면 취약한 상태입니다.
pip show pyasn1 | grep Version