{"answers":{"affected":"7 open source packages ship an affected version, including github.com/opencontainers/runc. It affects 1 product.","exploited":"There is no known exploitation of CVE-2025-31133 in the wild and no public exploit code.","fix":"Upgrade github.com/opencontainers/runc to a fixed version for your release line: 1.2.8, 1.3.3 or 1.4.0-rc.3.","what":"CVE-2025-31133 is a high-severity vulnerability in opencontainers runc, published on 6 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-31133 and fix it if it is affected.\n\nWhat it is: CVE-2025-31133 is a high-severity vulnerability in opencontainers runc, published on 6 Nov 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2025-31133 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.2.8, 1.3.3, 1.4.0-rc.3\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.2.8\n- github.com/opencontainers/runc (Go): affected all versions; fixed in 1.2.8\n- github.com/opencontainers/runc (Go): affected from 1.3.0-rc.1; fixed in 1.3.3\n- github.com/opencontainers/runc (Go): affected from 1.3.0-rc.1; fixed in 1.3.3\n- github.com/opencontainers/runc (Go): affected from 1.4.0-rc.1; fixed in 1.4.0-rc.3\n- github.com/opencontainers/runc (Go): affected from 1.4.0-rc.1; fixed in 1.4.0-rc.3\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-2025-31133/ (Markdown: https://insights.sbomify.com/CVE-2025-31133/index.md)","id":"CVE-2025-31133","markdown":"https://insights.sbomify.com/CVE-2025-31133/index.md","name":"CVE-2025-31133","record":{"aliases":["AZL-69818","AZL-70547","AZL-70592","BELL-CVE-2025-31133","CLEANSTART-2026-PQ07861","DEBIAN-CVE-2025-31133","GHSA-9493-h29p-rfm2","GO-2025-4096","MINI-3q7j-42w7-87jc","MINI-5c88-v9v2-f922","MINI-5p2j-h4jh-2945","MINI-6998-rgw4-5gqr","MINI-6f6g-7xp4-3m56","MINI-6vp9-3gm2-vq9x","MINI-7xwp-278c-pr7h","MINI-8p5q-v73p-6qrm","MINI-98v7-rcf7-2234","MINI-fgrf-7vpq-9mvv","MINI-gfx4-rm59-qv2g","MINI-h2rj-cr24-c8v7","MINI-h83g-3x45-h3pg","MINI-hqcp-jhrr-qwfw","MINI-jqw5-jx2w-hrvv","MINI-mhcx-c4wq-rq9h","MINI-p3wv-3jw7-mg88","MINI-px5j-7ww5-7h5m","MINI-qmw8-6947-94p6","MINI-v45c-wh3x-97mv","MINI-vv4q-r5pq-g4cf","UBUNTU-CVE-2025-31133"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["code_execution","privilege_escalation"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OCI container runtime","requires_auth":"low_privilege","summary":"Attackers can escape containers and access host resources by exploiting a race condition in runc's masked path verification.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"runc","vendor":"linuxfoundation"}],"cvss":{"score":7.3,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-61","name":"UNIX Symbolic Link (Symlink) Following"},{"id":"CWE-363","name":"Race Condition Enabling Link Following"}],"description":"runc is a CLI tool for spawning and running containers according to the OCI specification. In versions 1.2.7 and below, 1.3.0-rc.1 through 1.3.1, 1.4.0-rc.1 and 1.4.0-rc.2 files, runc would not perform sufficient verification that the source of the bind-mount (i.e., the container's /dev/null) was actually a real /dev/null inode when using the container's /dev/null to mask. This exposes two methods of attack:  an arbitrary mount gadget, leading to host information disclosure, host denial of service, container escape, or a bypassing of maskedPaths. This issue is fixed in versions 1.2.8, 1.3.3 and 1.4.0-rc.3.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2025-11-12","github_poc":3,"max_poc_stars":2,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-11-12T09:42:37Z","kind":"github_poc","ref":"https://github.com/skynet-f-nvidia/CVE-2025-31133","stars":2,"title":"CVE-2025-31133 PoC"},{"date":"2025-12-31T02:28:37Z","kind":"github_poc","ref":"https://github.com/scherepiuk/container-escape-ebpf","stars":2,"title":"POCs and Tetragon Rules for CVE-2024-21626 and CVE-2025-31133"},{"date":"2026-01-18T09:00:19Z","kind":"github_poc","ref":"https://github.com/C-h4ck-0/Learn-about-cve-2025-31133-poc","stars":2,"title":"Learn about CVE-2025-31133"}],"tier":"poc_unverified"},"has_fix":true,"headline":"runc container escape via \"masked path\" abuse due to mount race conditions","id":"CVE-2025-31133","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":7,"n_references":5,"next":{"headline":"FreshRSS vulnerable to directory enumeration via ext.php","id":"CVE-2025-31134"},"packages":[{"ecosystem":"Go","fixed":["1.2.8","1.3.3","1.4.0-rc.3"],"introduced":["0","1.3.0-rc.1","1.4.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GO-2025-4096"},{"ecosystem":"Go","fixed":["1.2.8"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-9493-h29p-rfm2"},{"ecosystem":"Go","fixed":["1.2.8"],"introduced":["0"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-9493-h29p-rfm2"},{"ecosystem":"Go","fixed":["1.3.3"],"introduced":["1.3.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-9493-h29p-rfm2"},{"ecosystem":"Go","fixed":["1.3.3"],"introduced":["1.3.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-9493-h29p-rfm2"},{"ecosystem":"Go","fixed":["1.4.0-rc.3"],"introduced":["1.4.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-9493-h29p-rfm2"},{"ecosystem":"Go","fixed":["1.4.0-rc.3"],"introduced":["1.4.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-9493-h29p-rfm2"}],"prev":{"headline":"Raven allows Remote Code Execution due to improper validation","id":"CVE-2025-31132"},"products":["runc"],"published":"2025-11-06","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: 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":5,"headline":"rootless: `/sys/fs/cgroup` is writable when cgroupns isn't unshared in runc","id":"CVE-2023-25809","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-11-06","vendors":["opencontainers"]},"summary":"Attackers can escape containers and access host resources by exploiting a race condition in runc's masked path verification.","url":"https://insights.sbomify.com/CVE-2025-31133/"}