Skip to main content
CVE-2026-25145VulnerabilityPublished

CVE-2026-25145: chainguard-dev melange · Path Traversal

Affects chainguard-dev melangeSource CVE Database V5

0

Not known to be exploited · CVSS 5.5 Medium : upgrade to 0.40.3 when convenient.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.5Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.1% 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
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 4 Feb 2026

  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 2026-10-26.

What to do

Upgrade melange and chainguard-dev/melange to 0.40.3.

Affected software

ProductAffectedFixed in
chainguard-devmelangeAffected
  • >=0.14.0 <0.40.3
Fixed in
  • 0.40.3
GitHubchainguard-dev/melangepkg:github/chainguard-dev/melangeOther threatsAffected
  • <0.40.3 >=0.14.0
Fixed in
  • 0.40.3

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

AI-suggested

1. Upgrade melange to version 0.40.3 or later, where the path traversal vulnerability is patched. 2. Restrict who can influence melange configuration files, especially in CI/CD pipelines—limit pull request merges and build triggers to trusted users. 3. Implement strict validation and sanitization of all inputs in build configurations, particularly paths specifying license files. 4. Isolate build environments using containerization or sandboxing to limit access to host filesystem outside the workspace. 5. Monitor build artifacts and SBOM outputs for unexpected or suspicious license text content that may indicate exfiltration attempts. 6. Employ file integrity monitoring on build hosts to detect unauthorized file reads or access patterns consistent with path traversal. 7. Review and audit existing SBOMs generated by affected melange versions for embedded sensitive data and rotate any potentially exposed credentials. 8. Educate developers and CI administrators about the risks of accepting untrusted configuration inputs and enforce code review policies accordingly.

Description

CVE-2026-25145 is a medium severity path traversal vulnerability in chainguard-dev's melange tool versions 0.14.0 up to before 0.40.3. It allows an attacker who can influence melange configuration files—such as via pull request-driven CI or build-as-a-service environments—to read arbitrary files on the host system. The vulnerability arises from insufficient validation of license file paths in the LicensingInfos function, enabling traversal outside the intended workspace directory. The contents of these files can then be embedded into the generated SBOM, facilitating exfiltration of sensitive data through build artifacts. This issue does not require privileges but does require user interaction to trigger a build with a malicious configuration. The flaw has been patched in version 0.

References

Community reviews

Loading reviews…