CVE-2025-53945: Chainguard.dev/apko Apko Is Vulnerable To Attack Vulnerability
HIGHCVE-2025-53945 is a HIGH (CVSS 7.0) apko is vulnerable to attack vulnerability (CWE-276: Incorrect Default Permissions) affecting Chainguard.dev/apko libraries in the Go ecosystem. The issue involves apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files. Remediation is available by upgrading affected packages to version 0.29.5.
CVE-2025-53945 at a Glance
Security Impact
CVSS: 7.0
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L).
How to Fix CVE-2025-53945
To remediate this vulnerability, upgrade all affected Chainguard.dev/apko 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 0.29.5
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-2025-53945, inspect your project dependencies for Chainguard.dev/apko:
inspect dependencies for chainguard.dev/apko
Analyze the terminal output to locate any version of Chainguard.dev/apko in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.29.5), 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-276: Incorrect Default Permissions, where during installation, installed file permissions are set to allow anyone to modify those files. In Chainguard.dev/apko, 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-2025-53945 Affected Chainguard.dev/apko Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
chainguard.dev/apko
|
Go |
≥ 0.27.0
< 0.29.5
|
0.29.5
|
References
Frequently Asked Questions
What is CVE-2025-53945?
Which Chainguard.dev/apko versions are affected?
What version fixes CVE-2025-53945?
Is chainguard.dev/apko affected?
What is the CVSS score of CVE-2025-53945?
What CWE is associated with CVE-2025-53945?
How can I check Go dependencies for CVE-2025-53945?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-x6ph-r535-3vjw",
"modified" : "2025-07-18T20:03:25Z",
"published" : "2025-07-18T20:03:25Z",
"aliases" : [ "CVE-2025-53945" ],
"summary" : "apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files",
"details" : "It was discovered that the ld.so.cache in images generated by apko had file system permissions mode `0666`:\n```\nbash-5.3# find / -type f -perm -o+w\n/etc/ld.so.cache\n```\n\nThis issue was introduced in commit [04f37e2 (\"generate /etc/ld.so.cache (#1629)\")](https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9)([v0.27.0](https://github.com/chainguard-dev/apko/releases/tag/v0.27.0)).\n\n### Impact\nThis potentially allows a local unprivileged user to add additional additional directories including dynamic libraries to the dynamic loader path. A user could exploit this by placing a malicious library in a directory they control.\n\n### Patches\nThis issue was addressed in apko in [aedb077 (\"fix: /etc/ld.so.cache file permissions (#1758)\")](https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3) ([v0.29.5](https://github.com/chainguard-dev/apko/releases/tag/v0.29.5)).\n\n### Acknowledgements\n\nMany thanks to Cody Harris from [H2O.ai](http://h2o.ai/) for reporting this issue.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "chainguard.dev/apko"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.27.0"
}, {
"fixed" : "0.29.5"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-53945"
}, {
"type" : "WEB",
"url" : "https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9"
}, {
"type" : "WEB",
"url" : "https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/chainguard-dev/apko"
}, {
"type" : "WEB",
"url" : "https://github.com/chainguard-dev/apko/releases/tag/v0.29.5"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-276" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-07-18T20:03:25Z",
"nvd_published_at" : "2025-07-18T16:15:30Z"
}
}