CVE-2023-25809: rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc
Vulnerability summary
CVE-2023-25809 is a medium (CVSS 6.3) Improper Preservation of Permissions vulnerability in linuxfoundation runc. EPSS estimates a 0.32% chance of exploitation in the next 30 days, higher than 24.9% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 10 · Related 9Timeline
- 29-03-2023PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
Description
runc is a CLI tool for spawning and running containers according to the OCI specification. In affected versions it was found that rootless runc makes `/sys/fs/cgroup` writable in following conditons: 1. when runc is executed inside the user namespace, and the `config.json` does not specify the cgroup namespace to be unshared (e.g.., `(docker|podman|nerdctl) run --cgroupns=host`, with Rootless Docker/Podman/nerdctl) or 2. when runc is executed outside the user namespace, and `/sys` is mounted with `rbind, ro` (e.g., `runc spec --rootless`; this condition is very rare). A container may gain the write access to user-owned cgroup hierarchy `/sys/fs/cgroup/user.slice/...` on the host . Other users's cgroup hierarchies are not affected. Users are advised to upgrade to version 1.1.5. Users unable to upgrade may unshare the cgroup namespace (`(docker|podman|nerdctl) run --cgroupns=private)`. This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts. or add `/sys/fs/cgroup` to `maskedPaths`.
CVSS metrics
8 scores · 8 sources · 1 version- CVE.orgCNA5.0MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · UbuntuEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · DebianEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
- OSV · WolfiEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · GoEcosystem advisory · calculated2.5LowCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated5.0MediumCVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:LDiffers
- OSV · AlpineEcosystem advisory · calculated6.3MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L
EPSS trend
Probability
0.32%
Chance of exploitation in the next 30 days
Percentile
25%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.32% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundRunc
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, administrative account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Chainguard5 products
- ctop< 0.7.7-r13
- podman< 5.2.2-r1
- podman-doc< 5.2.2-r1
- runcAll versions (No fix recorded)
- runc-docAll versions (No fix recorded)
Wolfi5 products
- ctop< 0.7.7-r13
- podman< 5.2.2-r1
- podman-doc< 5.2.2-r1
- runcAll versions (No fix recorded)
- runc-docAll versions (No fix recorded)
Alpine1 product
- runc< 1.1.5-r0 | < 1.1.4-r0
Debian1 product
- runc< 1.1.5+ds1-1
Github.com/opencontainers1 product
- runc< 1.1.5
Linuxfoundation1 product
- runc< 1.1.5
Opencontainers1 product
- runc< 1.1.5
Ubuntu1 product
- runc< 1.0.0~rc7+git20190403.029124da-0ubuntu1~16.04.4+esm4 | < 1.1.4-0ubuntu1~18.04.2 | < 1.1.4-0ubuntu1~20.04.3 | < 1.1.4-0ubuntu1~22.04.3
8 vendors · 16 products
References
12 links- github.com/opencontainers/runc/security/advisories/GHSA-m8cg-xc2p-r3fcX Refsource CONFIRMREPORTAdvisoryWEBExploitVendor Advisory
- github.com/opencontainers/runc/commit/0d62b950e60f6980b54fe3bafd9a9c608dc1df17X Refsource MISCFIXWEBPatch