🇰🇷 한글 설명
Mistune 3.3.0 이전 버전의 Python Markdown 파서에서 발생하는 취약점입니다. 긴 강조 표시(별표) 시퀀스를 처리할 때 중복 스캔으로 인해 연산량이 기하급수적으로 증가하여 서비스 거부(DoS)를 유발할 수 있습니다.
💡 쉬운 설명
특수 기호를 아주 길게 입력하면 컴퓨터가 이를 해석하느라 과도한 계산을 하게 되어 시스템이 멈출 수 있습니다. 마치 복잡한 미로를 찾을 때 매번 처음부터 다시 길을 찾는 것과 같습니다.
🇺🇸 원문 (English)
Mistune is a Python Markdown parser with renderers and plugins. Prior to 3.3.0, long sequences of well-formed double-asterisk or triple-asterisk emphasis pairs around a character cause quadratic work in src/mistune/inline_parser.py because the parser scans forward for matching close markers from every potential opening run, allowing denial of service in default Mistune parsing. 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 | grep Version