CVE-2025-53542 Details
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.
A command injection vulnerability has been identified in the Kubernetes Headlamp project, specifically within the 'codeSign.js' script used for macOS packaging. The issue stems from the improper handling of input from environment variables, which can be manipulated by an attacker. The vulnerable variables are '${teamID}', '${entitlementsPath}', and '${config.app}', all of which are passed directly to a shell command via Node.js's 'execSync()' function without adequate sanitization. This flaw allows for arbitrary command execution on the macOS build system during the packaging process, posing a significant risk in CI/CD environments where such workflows may automatically set these variables or build unsigned packages without thorough verification.
Users can update to Headlamp version 0.31.1, where this vulnerability has been patched. The fix involves changing the command execution method to 'execFileSync()', which allows for safer handling of command arguments by preventing shell interpretation of special characters.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 10, 2025CISA-ADP
Assessed Jul 10, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://advisory.zerodaysec.org/advisory/kubernetes-headlamp-code-signing | [email protected] | AdvisoryExploitRemedy |
| https://github.com/kubernetes-sigs/headlamp/commit/5bc0a9dd87acdf1e04be14619acde687eefa35fb | [email protected] | Source CodeVendor |
| https://github.com/kubernetes-sigs/headlamp/pull/3377 | [email protected] | Issue TrackingVendor |
| https://github.com/kubernetes-sigs/headlamp/security/advisories/GHSA-34rf-485x-g5h7 | [email protected] | AdvisoryVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-78 | Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection') | [email protected] |
| CWE-88 | Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| Kubernetes Headlamp | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 10, 2025 | New CVE Received | [email protected] |
Volerion