🔍 CVE-2026-110634

9.8
CVSS Score
CRITICAL
2026-10-14
2026-10-16 19:18
✅ 완료

🇰🇷 한글 설명

git-diff 2.0.7 미만 버전에서 발생하는 OS 명령 주입 취약점입니다. 공격자가 gitDiff API에 조작된 문자열을 전달하여 shelljs.exec를 통해 Node.js 프로세스 권한으로 임의의 셸 명령을 실행할 수 있습니다.

💡 쉬운 설명

파일의 차이점을 보여주는 기능에 악성 코드를 숨겨서 컴퓨터를 조종할 수 있는 보안 약점입니다. 공격자가 특수하게 만든 글자를 입력하면 시스템이 이를 명령어로 착각해 실행하게 됩니다.

🇺🇸 원문 (English)

git-diff before 2.0.7 contains an OS command injection vulnerability that allows attackers to execute shell commands by supplying crafted strings to the gitDiff API. Attackers who control a diffed document string can embed $(cmd) or backtick substitutions that shelljs.exec evaluates, running commands with Node.js process privileges.

📍 영향받는 시스템

git-diff version < 2.0.7

⚔️ 공격 벡터

gitDiff API에 $(cmd) 또는 백틱(`)을 포함한 조작된 문자열을 입력하여 공격

🛡️ 대응 방법

git-diff를 2.0.7 이상의 최신 버전으로 업데이트

🔧 검증 코드

출력된 버전 번호가 2.0.7 미만이면 취약한 상태입니다.

Shell / Script
npm list git-diff 2>/dev/null | grep -E 'git-diff@'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Node.js