{"answers":{"affected":"3 open source packages ship an affected version, including github.com/opencontainers/runc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-25809 in the wild and no public exploit code.","fix":"Upgrade github.com/opencontainers/runc to 1.1.5 or later.","what":"CVE-2023-25809 is a medium-severity vulnerability in opencontainers runc, published on 29 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-25809 and fix it if it is affected.\n\nWhat it is: CVE-2023-25809 is a medium-severity vulnerability in opencontainers runc, published on 29 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-25809 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.5\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.5\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.1.5\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-25809/ (Markdown: https://insights.sbomify.com/CVE-2023-25809/index.md)","id":"CVE-2023-25809","markdown":"https://insights.sbomify.com/CVE-2023-25809/index.md","name":"CVE-2023-25809","record":{"aliases":["AZL-25851","CLEANSTART-2026-OE93355","DEBIAN-CVE-2023-25809","GHSA-m8cg-xc2p-r3fc","GO-2023-1682","UBUNTU-CVE-2023-25809"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","data_modify"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"OCI container runtime","requires_auth":"high_privilege","summary":"Rootless runc allows containers to write to host cgroup hierarchies when cgroup namespaces are not unshared, enabling privilege escalation.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"runc","vendor":"linuxfoundation"}],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:C/C:L/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"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`.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc","id":"CVE-2023-25809","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Persistent Cross site scripting (XSS) through description in status page in Uptime Kuma","id":"CVE-2023-25810"},"packages":[{"ecosystem":"Go","fixed":["1.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-m8cg-xc2p-r3fc"},{"ecosystem":"Go","fixed":["1.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-m8cg-xc2p-r3fc"},{"ecosystem":"Go","fixed":["1.1.5"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GO-2023-1682"}],"prev":{"headline":"DataEase dashboard has a stored XSS vulnerability","id":"CVE-2023-25807"},"products":["runc"],"published":"2023-03-29","related":[{"cvss_score":8.4,"headline":"container escape due to /dev/console mount and related races","id":"CVE-2025-52565","kev_date_added":null,"published":"2025-11-06"},{"cvss_score":7.3,"headline":"runc container escape via \"masked path\" abuse due to mount race conditions","id":"CVE-2025-31133","kev_date_added":null,"published":"2025-11-06"},{"cvss_score":7.3,"headline":"runc: LSM labels can be bypassed with malicious config using dummy procfs files","id":"CVE-2025-52881","kev_date_added":null,"published":"2025-11-06"},{"cvss_score":6.1,"headline":"AppArmor bypass with symlinked /proc in runc","id":"CVE-2023-28642","kev_date_added":null,"published":"2023-03-29"},{"cvss_score":3.6,"headline":"runc can be confused to create empty files/directories on the host","id":"CVE-2024-45310","kev_date_added":null,"published":"2024-09-03"},{"cvss_score":3.3,"headline":"runc: Malicious image with /dev symlink can trigger limited host filesystem integrity violations","id":"CVE-2026-41579","kev_date_added":null,"published":"2026-07-01"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-12","vendors":["opencontainers"]},"summary":"Rootless runc allows containers to write to host cgroup hierarchies when cgroup namespaces are not unshared, enabling privilege escalation.","url":"https://insights.sbomify.com/CVE-2023-25809/"}