CVE-2025-53945 Details
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.
A vulnerability in Apko, a tool for building and publishing OCI container images from APK packages, has been identified. In versions 0.27.0 prior to 0.29.5, the application inadvertently set critical file permissions to 0666. This flaw could be exploited to escalate privileges to root. The issue was introduced in version 0.27.0 and affects the ld.so.cache file, which is crucial for the dynamic linker to locate shared libraries. The improper permissions could allow a local unprivileged user to manipulate the dynamic loader path and potentially execute malicious libraries.
Users can upgrade to Apko version 0.29.5, which addresses the permission issue by setting the ld.so.cache file to the correct mode of 0644. The updated version is available on the GitHub Releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jul 18, 2025CISA-ADP
Assessed Jul 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9 | [email protected] | Source CodeVendor |
| https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3 | [email protected] | Source CodeVendor |
| https://github.com/chainguard-dev/apko/releases/tag/v0.27.0 | [email protected] | Release NotesVendor |
| https://github.com/chainguard-dev/apko/releases/tag/v0.29.5 | [email protected] | Release NotesVendor |
| https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-276 | Incorrect Default Permissions | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| chainguard-dev apko | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 18, 2025 | New CVE Received | [email protected] |
Volerion