Kubernetes Headlamp Allows Arbitrary Command Injection in macOS Process headlamp@codeSign
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| kubernetes-sigs | headlamp | before 0.31.1 | 0.31.1 | Patch available | CNA |
- headlamp Vendorkubernetes-sigs Affected before 0.31.1 Fixed in 0.31.1 Patch available CNA
Remediation
- Fix · CNA headlamp (kubernetes-sigs) Fixed in 0.31.1
Timeline
- 2026-10-02 Threatist record created from CVE-2025-53542
- 2026-10-30 EPSS moved to the 50th–90th percentile
References
Other 4
- https://github.com/kubernetes-sigs/headlamp/security/advisories/GHSA-34rf-485x-g5h7
- https://github.com/kubernetes-sigs/headlamp/pull/3377
- https://github.com/kubernetes-sigs/headlamp/commit/5bc0a9dd87acdf1e04be14619acde687eefa35fb
- https://advisory.zerodaysec.org/advisory/kubernetes-headlamp-code-signing
More kubernetes-sigs vulnerabilities
- TI-2024-08803 VM images built with Image Builder and Proxmox provider use default credentials CVSS 3.1CRITICAL 9.8
- TI-2024-08901 VM images built with Image Builder with some providers use default credentials during builds CVSS 3.1HIGH 8.1
Sources
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences