ghsa-x6ph-r535-3vjw
Vulnerability from github
Published
2025-07-18 20:03
Modified
2025-07-18 20:03
Severity ?
VLAI Severity ?
Summary
apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files
Details
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
This issue was introduced in commit 04f37e2 ("generate /etc/ld.so.cache (#1629)")(v0.27.0).
Impact
This 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.
Patches
This issue was addressed in apko in aedb077 ("fix: /etc/ld.so.cache file permissions (#1758)") (v0.29.5).
Acknowledgements
Many thanks to Cody Harris from H2O.ai for reporting this issue.
{ "affected": [ { "package": { "ecosystem": "Go", "name": "chainguard.dev/apko" }, "ranges": [ { "events": [ { "introduced": "0.27.0" }, { "fixed": "0.29.5" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2025-53945" ], "database_specific": { "cwe_ids": [ "CWE-276" ], "github_reviewed": true, "github_reviewed_at": "2025-07-18T20:03:25Z", "nvd_published_at": "2025-07-18T16:15:30Z", "severity": "HIGH" }, "details": "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.", "id": "GHSA-x6ph-r535-3vjw", "modified": "2025-07-18T20:03:25Z", "published": "2025-07-18T20:03:25Z", "references": [ { "type": "WEB", "url": "https://github.com/chainguard-dev/apko/security/advisories/GHSA-x6ph-r535-3vjw" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-53945" }, { "type": "WEB", "url": "https://github.com/chainguard-dev/apko/commit/04f37e2d50d5a502e155788561fb7d40de705bd9" }, { "type": "WEB", "url": "https://github.com/chainguard-dev/apko/commit/aedb0772d6bf6e74d8f17690946dbc791d0f6af3" }, { "type": "PACKAGE", "url": "https://github.com/chainguard-dev/apko" }, { "type": "WEB", "url": "https://github.com/chainguard-dev/apko/releases/tag/v0.29.5" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:L/A:L", "type": "CVSS_V3" } ], "summary": "apko is vulnerable to attack through incorrect permissions in /etc/ld.so.cache and other files" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…