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

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-10 · Modified: 2025-07-10
- Record: https://cvemate.com/vulnerability/CVE-2025-53542 · JSON: https://cvemate.com/vulnerability/CVE-2025-53542/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- EPSS: 0.628%, percentile 51.547%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

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

---

Data as of 2026-12-05T08:38:51.559Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
