🇰🇷 한글 설명
CodeMirror 5.65.20 이하 버전의 markdown.js에서 정규표현식 복잡도로 인한 ReDoS 취약점이 존재합니다. 원격 공격자가 특정한 마크다운 입력을 통해 서비스 거부 공격을 수행할 수 있으며, 버전 6.0으로의 업그레이드가 필수입니다.
💡 쉬운 설명
CodeMirror 편집기의 마크다운 처리 부분에서 악의적인 텍스트 입력으로 시스템을 과부하시킬 수 있는 버그가 발견되었습니다. 최신 버전 6.0으로 업그레이드하면 해결됩니다.
🇺🇸 원문 (English)
A weakness has been identified in CodeMirror up to 5.65.20. Affected is an unknown function of the file mode/markdown/markdown.js of the component Markdown Mode. This manipulation causes inefficient regular expression complexity. It is possible to initiate the attack remotely. The exploit has been made available to the public and could be exploited. Upgrading to version 6.0 is able to address this issue. You should upgrade the affected component. Not all code samples mentioned in the GitHub issue can be found. The repository mentions, that "CodeMirror 6 exists, and is [...] much more actively maintained."
📍 영향받는 시스템
CodeMirror 5.65.20 이하 모든 버전
⚔️ 공격 벡터
원격 - 특정 정규표현식 패턴을 포함한 마크다운 입력으로 CPU 과부하 유발
🛡️ 대응 방법
CodeMirror를 6.0 이상으로 업그레이드 (npm update codemirror@latest)
🔧 검증 코드
버전 6.0 이상이 출력되면 취약점이 해결됨, 5.x 버전이 출력되면 즉시 업그레이드 필요
npm list codemirror 2>/dev/null | grep -oP '(?<=codemirror@)[0-9]+\.[0-9]+\.[0-9]+'