Description
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.
References (4)
Core 4
Core References
Vendor Advisory x_refsource_confirm
https://github.com/kubernetes-sigs/headlamp/security/advisories/GHSA-34rf-485x-g5h7
Issue Tracking x_refsource_misc
https://github.com/kubernetes-sigs/headlamp/pull/3377
Patch x_refsource_misc
https://github.com/kubernetes-sigs/headlamp/commit/5bc0a9dd87acdf1e04be14619acde687eefa35fb
Vendor Advisory x_refsource_misc
https://advisory.zerodaysec.org/advisory/kubernetes-headlamp-code-signing
Scores
CVSS v3
7.7
EPSS
0.0067
EPSS Percentile
47.0%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
CISA SSVC
Vulnrichment
Exploitation
none
Automatable
no
Technical Impact
total
Details
CWE
CWE-78
CWE-88
Status
published
Products (1)
kubernetes-sigs/headlamp
< 0.31.1
Published
Jul 10, 2025
Tracked Since
Feb 18, 2026