CVE-2026-25143
CVE-2026-25143 is a high-severity vulnerability in Chainguard Melange with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-78.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- EPSS exploit prediction: 0% (7th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2026-5371
- Weakness: CWE-78
- Affected product: Chainguard Melange
- Published:
- Last modified:
Description
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.
Frequently asked questions
- What is CVE-2026-25143?
- 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.
- How severe is CVE-2026-25143?
- CVE-2026-25143 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2026-25143 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (7th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2026-25143?
- CVE-2026-25143 affects Chainguard Melange. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2026-25143?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- Does CVE-2026-25143 have an EU (EUVD) identifier?
- Yes. CVE-2026-25143 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2026-5371.
- When was CVE-2026-25143 published?
- CVE-2026-25143 was published on 2026-02-04 and last updated on 2026-06-17.
References
- https://github.com/chainguard-dev/melange/commit/bd132535cd9f57d4bd39d9ead0633598941af030
- https://github.com/chainguard-dev/melange/security/advisories/GHSA-rf4g-89h5-crcr
Affected products (1)
- cpe:2.3:a:chainguard:melange:*:*:*:*:*:go:*:*
More vulnerabilities in Chainguard Melange
- CVE-2026-24843 — High (CVSS 8.2): melange allows users to build apk packages using declarative pipelines. In version 0.11.3 to before 0.40.3, an attacker…
- CVE-2026-24844 — High (CVSS 7.9): melange allows users to build apk packages using declarative pipelines. From version 0.3.0 to before 0.40.3, an…
- CVE-2026-29050 — Medium (CVSS 6.1): melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version…
- CVE-2026-25145 — Medium (CVSS 5.5): melange allows users to build apk packages using declarative pipelines. From version 0.14.0 to before 0.40.3, an…
- CVE-2026-29051 — Medium (CVSS 4.4): melange allows users to build apk packages using declarative pipelines. Starting in version 0.32.0 and prior to version…
- CVE-2026-29049 — Medium (CVSS 4.3): melange allows users to build apk packages using declarative pipelines. In version 0.40.5 and prior, melange…
All CVEs affecting Chainguard Melange →
Other CWE-78 (OS Command Injection) vulnerabilities
- CVE-2026-56004 — Critical (CVSS 10.0): A shellcode injection in the mercurial handler of the obs tar_scm source service before version 0.12.4 could be used by…
- CVE-2026-56415 — Critical (CVSS 10.0): Storage Concentrator (SC & SCVM) contains a command injection vulnerability within the debug.pl script that is…
- CVE-2026-56413 — Critical (CVSS 10.0): Storage Concentrator (SC & SCVM) contains a command injection vulnerability in the ms_service.pl service, which listens…
- CVE-2026-49869 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, AuthenticationFilter in…
- CVE-2026-49261 — Critical (CVSS 10.0): MariaDB server is a community developed fork of MySQL server. Versions 10.6.1 through 10.6.26, 10.11.1 through…
- CVE-2026-10520 — Critical (CVSS 10.0): An OS Command Injection vulnerability in Ivanti Sentry before the R10.5.2, R10.6.2 and R10.7.1 versions allows a…