Security mailing lists by PureSourceCode

CVE-2026-25143

HIGH 7.8CVSS 3.1

melange affected by potential host command execution via license-check YAML mode patch pipeline

melange allows users to build apk packages using declarative pipelines. From version 0.10.0 to before 0.40.3, 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. This issue has been patched in version 0.40.3.

Published
4 Feb 2026
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Analyzed
Weakness
CWE-78
Also known as
GHSA-rf4g-89h5-crcrGO-2026-4412
Sources
NVDJSONOSV GHSA-rf4g-89h5-crcrJSONOSV GO-2026-4412JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 HIGH 7.8 CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD chainguard melange
cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*
>= 0.10.0, < 0.40.5 0.40.5
OSV Go chainguard.dev/melange >= 0.10.0, < 0.40.3 0.40.3

References

History

  • 25 Nov 2026 21:01 UTC · NVD: first stored (published 4 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.