🔍 CVE-2021-39157

7.5
CVSS Score
HIGH
2021-08-24
2026-06-17 04:03
✅ 완료

🇰🇷 한글 설명

detect-character-encoding v0.6.0 및 이전 버전에서 어떤 문자셋과도 일치하지 않는 데이터가 입력될 경우 Node.js 프로세스가 충돌하는 취약점이 발견되었습니다. 이 문제는 v0.7.0 버전에서 패치되었으며, 우회 방법이 없으므로 즉시 업데이트가 필요합니다.

💡 쉬운 설명

문자 인코딩을 확인하는 프로그램에 알 수 없는 형식의 데이터를 넣으면 프로그램이 갑자기 꺼져버리는 문제입니다. 이를 방지하려면 프로그램을 최신 버전으로 업데이트해야 합니다.

🇺🇸 원문 (English)

detect-character-encoding is an open source character encoding inspection library. In detect-character-encoding v0.6.0 and earlier, data matching no charset causes the Node.js process to crash. The problem has been patched in [detect-character-encoding v0.7.0](https://github.com/sonicdoe/detect-character-encoding/releases/tag/v0.7.0). No workaround are available and all users should update to resolve this issue.

📍 영향받는 시스템

detect-character-encoding v0.6.0 및 그 이전 모든 버전

⚔️ 공격 벡터

인코딩을 식별할 수 없는 특수 데이터를 입력하여 Node.js 프로세스를 강제로 종료시키는 서비스 거부(DoS) 공격

🛡️ 대응 방법

detect-character-encoding 라이브러리를 v0.7.0 이상 버전으로 업데이트

🔧 검증 코드

출력된 결과에서 detect-character-encoding의 버전이 0.7.0 미만인지 확인

Shell / Script
npm list detect-character-encoding

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Node.js