Vulnerability · Published Feb 19, 2025 · Assigned by GitHub_M
CVE-2025-24965.krun_config.json symlink attack creates or overwrites file on the host in crun
High 8.5
In plain English
A high-severity path traversal in crun from containers. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
crun is an open source OCI Container Runtime fully written in C. In affected versions A malicious container image could trick the krun handler into escaping the root filesystem, allowing file creation or modification on the host. No special permissions are needed, only the ability for the current user to write to the target file. The problem is fixed in crun 1.20 and all users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | crun | 1.20-r0 | ALPINE-CVE-2025-24965 |
| Alpine:v3.22 | crun | 1.20-r0 | ALPINE-CVE-2025-24965 |
| Alpine:v3.23 | crun | 1.20-r0 | ALPINE-CVE-2025-24965 |
| Alpine:v3.24 | crun | 1.20-r0 | ALPINE-CVE-2025-24965 |
| Ubuntu:22.04:LTS | crun | no fix listed | UBUNTU-CVE-2025-24965 |
| Ubuntu:24.04:LTS | crun | no fix listed | UBUNTU-CVE-2025-24965 |
| Ubuntu:25.10 | crun | no fix listed | UBUNTU-CVE-2025-24965 |
| Ubuntu:26.04:LTS | crun | no fix listed | UBUNTU-CVE-2025-24965 |
| Ubuntu:26.10 | crun | no fix listed | UBUNTU-CVE-2025-24965 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| containers | crun | < 1.20 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/containers/crun/security/advisories/GHSA-f42g-r5jj-qh4j x_refsource_CONFIRM
- https://github.com/containers/crun/commit/0aec82c2b686f0b1793deed43b46524fe2e8b5a7 x_refsource_MISC
- https://github.com/containers/crun/releases/tag/1.20 x_refsource_MISC