{"id":"GHSA-x6ph-r535-3vjw","revision":"bdd251cb60764b9f9a0a0c7c604f900f","records":[{"revision":"bdd251cb60764b9f9a0a0c7c604f900f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-x6ph-r535-3vjw","aliases":["CVE-2025-53945","GO-2025-3816"],"title":"apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files","description":"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.","state":0,"publishedAt":"2025-07-18T20:03:25+00:00","modifiedAt":"2026-09-10T03:50:57.9496385+00:00","affected":[{"ecosystem":"Go","name":"chainguard.dev/apko","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.27.0"},{"kind":"fixed","version":"0.29.5"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw","https://nvd.nist.gov/vuln/detail/CVE-2025-53945","https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9","https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3","https://github.com/chainguard-dev/apko","https://github.com/chainguard-dev/apko/releases/tag/v0.29.5"],"sourceUrl":"https://github.com/advisories/GHSA-x6ph-r535-3vjw","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-x6ph-r535-3vjw","identifiers":["GHSA-x6ph-r535-3vjw","CVE-2025-53945","GO-2025-3816"]},"retained":false,"historicalAffected":[]}],"coverage":[]}