🇰🇷 한글 설명
Mistune는 렌더러와 플러그인을 포함한 Python Markdown 파서입니다. 3.3.0 미만 버전에서 반복되거나 서로 다른 참조 링크 정의가 포함된 Markdown 문서를 처리할 때 src/mistune/block_parser.py 및 ref_links 환경 딕셔너리 처리 과정에서 이차 시간 복잡도(quadratic work)가 발생합니다. 이로 인해 CPU 자원이 고갈되어 서비스 거부(DoS) 공격이 가능합니다.
💡 쉬운 설명
특수하게 조작된 마크다운 문서를 입력하면 컴퓨터가 이를 처리하느라 과도한 계산을 하게 됩니다. 이 과정에서 CPU 사용량이 급증하여 서버가 멈추거나 응답하지 못하게 될 수 있습니다.
🇺🇸 원문 (English)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, a Markdown document containing many repeated or distinct reference-link definitions causes quadratic work in src/mistune/block_parser.py and the ref_links environment dictionary handling, allowing denial of service through CPU exhaustion. This issue is fixed in version 3.3.0.
📍 영향받는 시스템
Mistune Python 패키지 3.3.0 미만 버전
⚔️ 공격 벡터
악의적으로 조작된 다량의 참조 링크 정의가 포함된 Markdown 문서 입력
🛡️ 대응 방법
Mistune 패키지를 3.3.0 이상의 최신 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 3.3.0 미만인지 확인하여 취약 여부를 판단합니다.
pip show mistune 2>/dev/null | grep Version