Command Injection Vulnerability in Kubernetes Headlamp by Cloud Native Computing Foundation
CVE-2025-53542
7.8HIGH
What is CVE-2025-53542?
A command injection vulnerability has been identified in Kubernetes Headlamp's macOS packaging workflow, specifically in the codeSign.js script. This flaw arises from improper handling of environment variables—${teamID}, ${entitlementsPath}, and ${config.app}—which are inadequately sanitized prior to being passed into shell commands. As a result, an attacker could exploit this vulnerability by injecting malicious input through these variables, leading to the execution of unintended commands on the system. The issue has been resolved in version 0.31.1.
Affected Version(s)
headlamp < 0.31.1