{"id":"CVE-2023-25809","aliases":["CVE-2023-25809","GHSA-m8cg-xc2p-r3fc","GO-2023-1682"],"related":["CGA-fmvc-cj26-gg63"],"kind":"vulnerability","state":"published","title":"rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"en","text":"### Impact\nIt was found that rootless runc makes `/sys/fs/cgroup` writable in following conditons:\n1. 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)\n2. or, 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)\n\nA container may gain the write access to user-owned cgroup hierarchy `/sys/fs/cgroup/user.slice/...` on the host .\nOther users's cgroup hierarchies are not affected.\n\n### Patches\nv1.1.5 (planned)\n\n### Workarounds\n- Condition 1: Unshare the cgroup namespace (`(docker|podman|nerdctl) run --cgroupns=private)`. This is the default behavior of Docker/Podman/nerdctl on cgroup v2 hosts.\n- Condition 2 (very rare): add `/sys/fs/cgroup` to `maskedPaths`","format":"markdown","source":"ghsa"},{"lang":"en","text":"Rootless: /sys/fs/cgroup is writable when cgroupns isn't unshared in github.com/opencontainers/runc","format":"markdown","source":"go"}],"published":"2023-03-29T18:22:56.875Z","modified":"2026-09-10T03:49:53.094Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L","score":5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:N/I:N/A:L","score":2.5,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-281"],"affected":[{"ranges":[{"version":"< 1.1.5","status":"affected"}],"vendor":"opencontainers","product":"runc","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.5"}],"ecosystem":"Go","package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.1.5"}],"ecosystem":"Go","package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"go"},{"ranges":[{"status":"affected","fixed":"1.1.5"}],"vendor":"linuxfoundation","product":"runc","cpe":"cpe:2.3:a:linuxfoundation:runc:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/opencontainers/runc/security/advisories/GHSA-m8cg-xc2p-r3fc","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/opencontainers/runc/commit/0d62b950e60f6980b54fe3bafd9a9c608dc1df17","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25809","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/opencontainers/runc","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-12T16:02:19.074Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-25809","url":"https://www.cve.org/CVERecord?id=CVE-2023-25809","licence":"CVE Terms of Use","modified":"2025-02-12T16:02:24.090Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m8cg-xc2p-r3fc","url":"https://github.com/advisories/GHSA-m8cg-xc2p-r3fc","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:53.094Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-1682","url":"https://pkg.go.dev/vuln/GO-2023-1682","licence":"CC-BY-4.0","modified":"2026-02-04T02:59:23.815Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-25809","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-25809","licence":"Public domain","modified":"2026-06-17T05:42:01.917Z"}],"updatedAt":"2026-11-25T22:58:22.773Z","epss":{"score":0.00319,"percentile":0.26857,"date":"2026-12-01T12:00:22.000Z"}}