CVE-2025-24965 .krun_config.json symlink attack creates or overwrites file on the host in crun
HighCVSS 8.5
EPSS 0.58%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
9 packages: 4 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/crun(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/crun(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/crun(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/crun(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| alpine/crun(Alpine v3.21) | < 1.20-r0 | 1.20-r0 | Fixed |
| alpine/crun(Alpine v3.22) | < 1.20-r0 | 1.20-r0 | Fixed |
| alpine/crun(Alpine v3.23) | < 1.20-r0 | 1.20-r0 | Fixed |
| alpine/crun(Alpine v3.24) | < 1.20-r0 | 1.20-r0 | Fixed |
| containers crun | = < 1.20 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| containers crun | = < 1.20 | No fix listed |
| ubuntu/crun(Ubuntu:22.04) | All versions | No fix listed |
| alpine/crun(Alpine:v3.21) | < 1.20-r0 | 1.20-r0 |
| alpine/crun(Alpine:v3.22) | < 1.20-r0 | 1.20-r0 |
| alpine/crun(Alpine:v3.23) | < 1.20-r0 | 1.20-r0 |
| alpine/crun(Alpine:v3.24) | < 1.20-r0 | 1.20-r0 |
| ubuntu/crun(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/crun(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/crun(Ubuntu:26.10) | All versions | No fix listed |
References
- https://github.com/containers/crun/security/advisories/GHSA-f42g-r5jj-qh4j
- https://github.com/containers/crun/commit/0aec82c2b686f0b1793deed43b46524fe2e8b5a7
- https://github.com/containers/crun/releases/tag/1.20
- Ubuntu CVE tracker vendor-advisory
- www.cve.org
- security.alpinelinux.org vendor-advisory
- Debian Security Tracker CVE-2025-24965 vendor-advisory