# CVE-2023-25809: rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc

- Severity: Medium 5.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 26% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-03-29T18:22:56.875Z
- Modified: 2026-09-10T03:49:53.094Z
- Also known as: GHSA-m8cg-xc2p-r3fc, GO-2023-1682
- Related: CGA-fmvc-cj26-gg63
- Weaknesses: CWE-281
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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`.

(As written by CVE List.)

## Affected

- opencontainers runc: < 1.1.5
- github.com/opencontainers/runc (Go): before 1.1.5
- linuxfoundation runc: before 1.1.5

## Every score

- GitHub_M: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 2.5 Low `CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`

## References

- <https://github.com/opencontainers/runc/security/advisories/GHSA-m8cg-xc2p-r3fc> (exploit, advisory, vendor-advisory, web)
- <https://github.com/opencontainers/runc/commit/0d62b950e60f6980b54fe3bafd9a9c608dc1df17> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25809> (advisory)
- <https://github.com/opencontainers/runc> (package)

## Sources

- CVE List: [CVE-2023-25809](https://www.cve.org/CVERecord?id=CVE-2023-25809), CVE Terms of Use, modified 2025-02-12
- GitHub Advisory Database: [GHSA-m8cg-xc2p-r3fc](https://github.com/advisories/GHSA-m8cg-xc2p-r3fc), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-1682](https://pkg.go.dev/vuln/GO-2023-1682), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-25809](https://nvd.nist.gov/vuln/detail/CVE-2023-25809), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-25809 · Whole record: https://cve.day/CVE-2023-25809.json · Rebuilt by cve.day 2026-11-25T22:58:22.773Z
