{"id":"CVE-2025-53945","published":"2025-07-18T15:35:17Z","modified":"2025-07-22T15:03:42Z","title":"apko has incorrect permission (0666) in /etc/ld.so.cache and other files","vendor":"chainguard-dev","product":"apko","tier":"tail","description":{"text":"apko allows users to build and publish OCI container images built from apk packages. Starting in version 0.27.0 and prior to version 0.29.5, critical files were inadvertently set to 0666, which could likely be abused for root escalation. Version 0.29.5 contains a fix for the issue.","provenance":"source","from":"CVE.org"},"cvss":{"score":7,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00211,"percentile":0.06506,"provenance":"source"},"cwes":[{"id":"CWE-276","name":"Incorrect Default Permissions"}],"references":[{"url":"https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v0.27.0","tags":["x_refsource_MISC"]},{"url":"https://github.com/chainguard-dev/apko/releases/tag/v0.29.5","tags":["x_refsource_MISC"]}],"priority":{"score":6.2,"factors":[{"name":"EPSS percentile","points":1.3},{"name":"CVSS severity","points":4.9}]},"vendorSlug":"chainguard-dev","affectedVersions":[{"vendor":"chainguard-dev","product":"apko","versions":[">= 0.27.0, < 0.29.5"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-07-22T15:03:34.863284Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"chainguard.dev/apko","vulnerableRanges":[">=0.27.0, <0.29.5"],"patched":["0.29.5"],"from":["GHSA-x6ph-r535-3vjw","GO-2025-3816"],"provenance":"source"}],"summary":{"text":"The flaw is an incorrect default permission in the apko tool, which builds and publishes OCI container images from apk packages, where critical files such as /etc/ld.so.cache were set to world-writable mode 0666 in versions from 0.27.0 before 0.29.5. A local attacker with low privileges who can run within the affected container can modify these files, which could likely be leveraged to escalate to root, and exploitation requires high attack complexity, no user interaction, and a scope change.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:18:04Z"},"euvd":{"id":"EUVD-2025-21896","exploited":false,"provenance":"source"}}