decompress before 4.2.2 contains an improper path containment check that enables directory traversal and arbitrary file write. The safeMakeD
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
30일 내 악용 확률 예측
실측 악용 기록 없음
별도 긴급 패치 불필요 — 정기 시스템 업그레이드 주기에 맞춰 조치
CVSS 벡터 · 메트릭
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N약점 (CWE)
- CWE-22
경로 탐색(Path Traversal) — '../' 등으로 의도치 않은 파일 경로에 접근.
상세 설명
decompress before 4.2.2 contains an improper path containment check that enables directory traversal and arbitrary file write. The safeMakeDir function (index.js line 29) and the extraction path validation (index.js line 106) use String.indexOf() to verify the resolved path is within the output directory: realDestinationDir.indexOf(realOutputPath) !== 0. This check is flawed because it does not enforce a path separator boundary. For example, "/tmp/app_config".indexOf("/tmp/app") returns 0, incorrectly passing the check even though /tmp/app_config is outside /tmp/app. Combined with the unvalidated symlink creation in the same package, an attacker can write arbitrary files to directories adjacent to the extraction target. This is a bypass of the fix for CVE-2020-12265. The correct check requires appending a path separator: realParentPath.indexOf(realOutputPath + path.sep) !== 0.
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
영향받는 제품·버전
- decompress_project decompress< 4.2.1other
영향받는 구성 (CPE) 1
- decompress_project decompress≤ 4.2.1cpe:2.3:a:decompress_project:decompress:*:*:*:*:*:node.js:*:*
참고 자료 4
- https://github.com/kevva/decompress/issues/115ExploitVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-12265US Government Resource
링크 내용 불러오는 중…