Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. chainguard.dev/apko
  4. ›
  5. CVE-2025-53945

CVE-2025-53945: apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files

July 18, 2025

It was discovered that the ld.so.cache in images generated by apko had file system permissions mode 0666:

bash-5.3# find / -type f -perm -o+w
/etc/ld.so.cache

References

  • github.com/advisories/GHSA-x6ph-r535-3vjw
  • github.com/chainguard-dev/apko
  • github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9
  • github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3
  • github.com/chainguard-dev/apko/releases/tag/v0.29.5
  • github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw
  • nvd.nist.gov/vuln/detail/CVE-2025-53945

Code Behaviors & Features

Detect and mitigate CVE-2025-53945 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.27.0 before 0.29.5

Fixed versions

  • 0.29.5

Solution

Upgrade to version 0.29.5 or above.

Impact 7 HIGH

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-276: Incorrect Default Permissions

Source file

go/chainguard.dev/apko/CVE-2025-53945.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:22 +0000.