Skip to main content
VulnerabilityPublished

CVE-2025-53542: kubernetes-sigs headlamp · OS Command Injection

Affects kubernetes-sigs headlampSource CVE Database V5

0

Not known to be exploited · CVSS 7.8 High : upgrade to 0.31.1 soon.

Data as of 26 Oct 2026, 14:05 UTC

CVSS 3.1 base score
7.8High
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.31.1
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 10 Jul 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Upgrade kubernetes-sigs/headlamp to 0.31.1.

Affected software

ProductAffectedFixed in
GitHubkubernetes-sigs/headlamppkg:github/kubernetes-sigs/headlampOther threatsAffected
  • <0.31.1
Fixed in
  • 0.31.1

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

  1. Immediate upgrade to Headlamp version 0.31.1 or later, where the vulnerability is patched.
  2. Review and sanitize all environment variables and inputs used in scripting workflows, especially those invoking shell commands via Node.js execSync() or similar functions.
  3. Implement strict access controls and monitoring on macOS machines used for Kubernetes packaging workflows to prevent unauthorized modification of environment variables.
  4. Employ application whitelisting and endpoint detection and response (EDR) solutions to detect anomalous command executions during packaging processes.
  5. Educate developers and DevOps personnel on the risks of command injection and safe coding practices, particularly when handling environment variables and shell commands.
  6. Consider isolating packaging workflows in hardened, ephemeral environments or containers to limit the blast radius of potential exploitation.
  7. Regularly audit and review CI/CD pipelines and tooling for similar injection risks, ensuring that no unsanitized inputs reach shell execution contexts.

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.

References

Community reviews

Loading reviews…