# CVE-2025-53542: Kubernetes Headlamp Allows Arbitrary Command Injection in macOS Process headlamp@codeSign

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.63%, higher than 51% of CVEs (2026-12-01)
- Published: 2025-07-10T18:20:21.446Z
- Modified: 2026-06-17T09:38:25.017Z
- Weaknesses: CWE-78, CWE-88
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- kubernetes-sigs headlamp: < 0.31.1

## References

- <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>

## Sources

- CVE List: [CVE-2025-53542](https://www.cve.org/CVERecord?id=CVE-2025-53542), CVE Terms of Use, modified 2025-07-10
- NVD: [CVE-2025-53542](https://nvd.nist.gov/vuln/detail/CVE-2025-53542), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-53542 · Whole record: https://cve.day/CVE-2025-53542.json · Rebuilt by cve.day 2026-11-25T22:59:01.110Z
