CVE-2025-53542: kubernetes-sigs headlamp OS Command Injection
Vulnerability summary
CVE-2025-53542 is a high (CVSS 7.8) OS Command Injection vulnerability in kubernetes-sigs headlamp. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49.1% of scored vulnerabilities.
Timeline
- 10-07-2025PublishedVulnerability first disclosed.
- 10-07-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.7HighCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:HDiffers
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
-0.02 pp
From 0.65% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- CWE-88Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')The product constructs a string for a command to be executed by a separate component in another control sphere, but it does not properly delimit the intended arguments, options, or switches within that command string.
Affected systems
Kubernetes-sigs1 product
- headlamp< 0.31.1
1 vendor · 1 product
References
4 links- github.com/kubernetes-sigs/headlamp/security/advisories/GHSA-34rf-485x-g5h7X Refsource CONFIRM
- github.com/kubernetes-sigs/headlamp/pull/3377X Refsource MISC