Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. chainguard.dev/melange
  4. ›
  5. CVE-2026-25143

CVE-2026-25143: melange affected by potential host command execution via license-check YAML mode patch pipeline

February 4, 2026

An attacker who can influence inputs to the patch pipeline could execute arbitrary shell commands on the build host. The patch pipeline in pkg/build/pipelines/patch.yaml embeds input-derived values (series paths, patch filenames, and numeric parameters) into shell scripts without proper quoting or validation, allowing shell metacharacters to break out of their intended context.

The vulnerability affects the built-in patch pipeline which can be invoked through melange build and melange license-check operations. An attacker who can control patch-related inputs (e.g., through pull request-driven CI, build-as-a-service, or by influencing melange configurations) can inject shell metacharacters such as backticks, command substitutions $(…), semicolons, pipes, or redirections to execute arbitrary commands with the privileges of the melange build process.

References

  • github.com/advisories/GHSA-rf4g-89h5-crcr
  • github.com/chainguard-dev/melange
  • github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030
  • github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcr
  • nvd.nist.gov/vuln/detail/CVE-2026-25143

Code Behaviors & Features

Detect and mitigate CVE-2026-25143 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.10.0 before 0.40.3

Fixed versions

  • 0.40.3

Solution

Upgrade to version 0.40.3 or above.

Impact 7.8 HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

go/chainguard.dev/melange/CVE-2026-25143.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 04 Feb 2026 12:20:30 +0000.