Vulnerabilities in pkg:golang/chainguard.dev/apko
PACKAGECVE-2026-54174 is a HIGH (CVSS 8.3) incomplete package integrity verification allows vulnerability (CWE-345: Insufficient Verification of Data Authenticity) affecting melange libraries in the Go ecosystem. The issue involves incomplete package integrity verification allows data section substitution. Remediation is available by upgrading affected packages to version 1.2.9, 0.50.4.
pkg:golang/chainguard.dev/apko
Vulnerability advisories affecting package pkg:golang/chainguard.dev/apko. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-fpg8-7664-jc5q | CVE-2026-54174 | HIGH | melange: Incomplete package integrity verification allows data section substitution |
| GHSA-hcwr-pq9g-rq3m | CVE-2026-42575 | HIGH | apko doesn't verify downloaded apk packages against APKINDEX checksum (package substitution possible) |
| GHSA-qq3r-w4hj-gjp6 | CVE-2026-42574 | HIGH | apko dirFS has a symlink-following path traversal that allows multiple entry points to escape the build root |
| GHSA-m7hm-vm4x-28jf | CVE-2026-42576 | MODERATE | apko `DiscoverKeys` has a panic on non-rsa jwks key that causes crash during key discovery |
| GHSA-6p9p-q6wh-9j89 | CVE-2026-25122 | MODERATE | apko affected by unbounded resource consumption in expandapk.Split on attacker-controlled .apk streams |
| GHSA-5g94-c2wx-8pxw | CVE-2026-25121 | HIGH | apko has a path traversal in apko dirFS which allows filesystem writes outside base |
| GHSA-x6ph-r535-3vjw | CVE-2025-53945 | HIGH | apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files |
| GHSA-v6mg-7f7p-qmqp | CVE-2024-36127 | HIGH | apko Exposure of HTTP basic auth credentials in log output |
CVE-2026-54174 at a Glance
Security Impact
CVSS: 8.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H).
How to Fix CVE-2026-54174
To remediate this vulnerability, upgrade all affected melange dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade chainguard.dev/apko to 1.2.9
Upgrade chainguard.dev/melange to 0.50.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for chainguard.dev/apko
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-54174, inspect your project dependencies for melange:
inspect dependencies for chainguard.dev/apko
Analyze the terminal output to locate any version of melange in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.9), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-345: Insufficient Verification of Data Authenticity, where the product does not sufficiently verify the origin or authenticity of data, in a way that causes it to accept invalid data. In melange, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-54174 Affected melange Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chainguard.dev/apko
|
Go |
< 1.2.9
|
1.2.9
|
|
chainguard.dev/melange
|
Go |
< 0.50.4
|
0.50.4
|
References
Frequently Asked Questions
What is CVE-2026-54174?
Which melange versions are affected?
What version fixes CVE-2026-54174?
Is chainguard.dev/apko affected?
Is chainguard.dev/melange affected?
What is the CVSS score of CVE-2026-54174?
What CWE is associated with CVE-2026-54174?
How can I check Go dependencies for CVE-2026-54174?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-fpg8-7664-jc5q",
"modified" : "2026-07-10T21:43:05Z",
"published" : "2026-07-10T21:43:05Z",
"aliases" : [ "CVE-2026-54174" ],
"summary" : "melange: Incomplete package integrity verification allows data section substitution",
"details" : "Previously, Apko 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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "chainguard.dev/apko"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.2.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "chainguard.dev/melange"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.50.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/chainguard-dev/melange/security/advisories/GHSA-fpg8-7664-jc5q"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chainguard-dev/melange"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-345", "CWE-354" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-07-10T21:43:05Z",
"nvd_published_at" : null
}
}