melange: Incomplete package integrity verification allows data section substitution
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-345.
Summary
melange allows users to build apk packages using declarative pipelines. Apko prior to version 1.2.9, corresponding to melange prior to version 0.50.4, verified the control section hash (`.PKGINFO` etc.) against the signed `APKINDEX`, but never verified the data section hash (the actual package files that get installed). An attacker who could compromise a mirror, poison a cache, or MITM a package fetch could substitute arbitrary file contents while the control hash check still passed. Apko version 1.2.9 and melange version 0.50.4 contain a fix.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| chainguard-dev | melange | before 0.50.4 | 0.50.4 | Patch available | CNA |
| chainguard-dev | apko | before 1.2.9 | 1.2.9 | Patch available | CNA |
| — | chainguard.dev/apko (Go) | before 1.2.9 | 1.2.9 | Patch available | GHSA-fpg8-7664-jc5q |
| — | chainguard.dev/melange (Go) | before 0.50.4 | 0.50.4 | Patch available | GHSA-fpg8-7664-jc5q |
- melange Vendorchainguard-dev Affected before 0.50.4 Fixed in 0.50.4 Patch available CNA
- apko Vendorchainguard-dev Affected before 1.2.9 Fixed in 1.2.9 Patch available CNA
- chainguard.dev/apko (Go) Vendor— Affected before 1.2.9 Fixed in 1.2.9 Patch available GHSA-fpg8-7664-jc5q
- chainguard.dev/melange (Go) Vendor— Affected before 0.50.4 Fixed in 0.50.4 Patch available GHSA-fpg8-7664-jc5q
CPE names Threatist (inferred) · 2
Inferred from how NVD named this product before; not given by a source.
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:chainguard:melange:*:*:*:*:*:*:*:* | — | — | chainguard-dev |
| cpe:2.3:a:chainguard:apko:*:*:*:*:*:*:*:* | — | — | chainguard-dev |
- cpe:2.3:a:chainguard:melange:*:*:*:*:*:*:*:* Versions — — ·chainguard-dev
- cpe:2.3:a:chainguard:apko:*:*:*:*:*:*:*:* Versions — — ·chainguard-dev
Remediation
- Fix · CNA melange (chainguard-dev) Fixed in 0.50.4
- Fix · CNA apko (chainguard-dev) Fixed in 1.2.9
- Fix · GHSA-fpg8-7664-jc5q chainguard.dev/apko (Go) Fixed in 1.2.9 Advisory →
- Fix · GHSA-fpg8-7664-jc5q chainguard.dev/melange (Go) Fixed in 0.50.4 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-54174
- 2026-10-03 Alias added: GHSA-fpg8-7664-jc5q
References
More chainguard-dev vulnerabilities
- TI-2024-23955 apko Exposure of HTTP basic auth credentials in log output CVSS 3.1HIGH 7.5
- TI-2026-22680 kaniko has tar archive path traversal in build context extraction allows writing files outside destination directory CVSS 3.1HIGH 8.2
- TI-2026-83911 kaniko sends Azure access tokens to lookalike ACR registry hosts CVSS 3.1CRITICAL 9.3
- TI-2026-30854 apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root CVSS 3.1HIGH 7.5
- TI-2026-20302 apko affected by potential unbounded resource consumption in expandapk.ExpandApk on attacker-controlled .apk streams CVSS 3.1HIGH 7.5
- TI-2026-20284 apko is vulnerable to path traversal in apko dirFS which allows filesystem writes outside base CVSS 3.1HIGH 7.5
Sources
- CVE-2026-54174 · CVE Program
- CVE-2026-54174 · NVD
- FIRST EPSS
- GHSA-fpg8-7664-jc5q · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences