🔍 CVE-2025-53542

7.7
CVSS Score
HIGH
2025-07-10
2026-06-17 09:38
✅ 완료

🇰🇷 한글 설명

Headlamp의 macOS 패키징 워크플로우 스크립트(codeSign.js)에서 Node.js execSync() 함수가 환경 변수를 검증 없이 직접 셸 명령어에 전달하여 발생하는 명령 주입 취약점입니다. 공격자가 ${teamID}, ${entitlementsPath}, ${config.app} 변수에 악의적인 명령을 삽입하면 빌드 단계에서 임의 코드 실행이 가능합니다.

💡 쉬운 설명

Headlamp 프로그램의 macOS 버전 빌드 과정에서 입력값 검증이 없어 공격자가 악의적인 명령을 몰래 실행시킬 수 있습니다. 이를 통해 악성 코드가 배포되거나 시스템이 손상될 수 있습니다.

🇺🇸 원문 (English)

Headlamp is an extensible Kubernetes web UI. A command injection vulnerability was discovered in the codeSign.js script used in the macOS packaging workflow of the Kubernetes Headlamp project. This issue arises due to the improper use of Node.js's execSync() function with unsanitized input derived from environment variables, which can be influenced by an attacker. The variables ${teamID}, ${entitlementsPath}, and ${config.app} are dynamically derived from the environment or application config and passed directly to the shell command without proper escaping or argument separation. This exposes the system to command injection if any of the values contain malicious input. This vulnerability is fixed in 0.31.1.

📍 영향받는 시스템

Headlamp < 0.31.1 (모든 OS)

⚔️ 공격 벡터

빌드 환경에서 환경 변수를 조작하여 execSync() 함수의 셸 명령어에 악성 페이로드 주입

🛡️ 대응 방법

Headlamp를 0.31.1 이상으로 업그레이드

🔧 검증 코드

출력된 버전이 0.31.1 이상이면 패치됨, 이하이면 취약

Shell / Script
npm list -g headlamp 2>/dev/null | grep headlamp || npm list headlamp 2>/dev/null | grep headlamp

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Kubernetes