CVE-2026-24844: chainguard-dev melange · OS Command Injection
Affects chainguard-dev melangeSource CVE Database V5
Not known to be exploited · CVSS 7.8 High : upgrade to 0.40.3 soon.
Data as of 26 Oct 2026, 17:16 UTC
- EPSS
- 0.2% chance of exploitation in 30 days – higher than 9% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.40.3, 0.40.0
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 4 Feb 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by 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 melange to 0.40.3; chainguard-dev/melange to 0.40.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| chainguard-devmelange | Affected
| Fixed in
|
GitHubchainguard-dev/melangepkg:github/chainguard-dev/melangeOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
European organizations should immediately upgrade melange to version 0.40.3 or later to apply the official patch that addresses this vulnerability. Until upgrading, organizations should avoid using untrusted or user-supplied input in the working-directory field or any shell-invoked pipeline parameters. Implement strict input validation and sanitization for all build inputs, especially those that influence shell commands or environment variables. Employ least privilege principles for build system users to limit the ability of attackers to supply malicious inputs. Monitor build logs and pipeline executions for anomalous command executions or unexpected shell activity. Consider isolating build environments using containerization or sandboxing to reduce the blast radius of potential exploitation. Finally, integrate security scanning and static analysis tools into the CI/CD pipeline to detect unsafe shell usage patterns.
Description
CVE-2026-24844 is a high-severity OS command injection vulnerability in chainguard-dev's melange tool versions 0.3.0 up to but not including 0.40.3. The flaw arises when user-controlled input values are substituted into the working-directory field of declarative build pipelines without proper shell escaping, allowing attackers with limited privileges to execute arbitrary shell commands. Exploitation requires the attacker to provide build input values and involves user interaction, but does not require modification of pipeline definitions. The vulnerability impacts confidentiality and integrity but not availability. It has been patched in version 0.40.