{"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-52565 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-52565 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-52565 and fix it if it is affected.\n\nWhat it is: CVE-2025-52565 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-52565 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc3; fixed in 1.2.8, 1.3.3, 1.4.0-rc.3\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc3; fixed in 1.2.8\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc3; 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-52565/ (Markdown: https://insights.sbomify.com/CVE-2025-52565/index.md)","id":"CVE-2025-52565","markdown":"https://insights.sbomify.com/CVE-2025-52565/index.md","name":"CVE-2025-52565","record":{"aliases":["AZL-69821","AZL-70513","AZL-70589","BELL-CVE-2025-52565","DEBIAN-CVE-2025-52565","GHSA-qw9x-cqr3-wc7r","GO-2025-4097","MINI-2h4r-3wqg-gh7q","MINI-52q5-mfcm-h6xh","MINI-5x3q-3wxr-f35v","MINI-6c22-3mh6-7xp4","MINI-6h65-5p55-j9fr","MINI-6jw7-j376-p8xf","MINI-6w9x-344v-fgxh","MINI-874p-473h-6pmj","MINI-8ggh-4r98-rgvq","MINI-8pvw-x7m6-m3jh","MINI-94vx-6wcc-cpvw","MINI-cc4v-j8mf-pp22","MINI-fg4v-42hm-9jh7","MINI-g4wp-j2w3-4w8c","MINI-gxww-6px3-jr2v","MINI-prxx-3wm4-27gg","MINI-r5m5-7m77-v5c7","MINI-vjpq-g4p8-hq6g","MINI-wvp3-pp8q-9595","MINI-xc4r-5hmq-r34q","MINI-xwmp-xw3f-2mxf","UBUNTU-CVE-2025-52565"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"upgrade","impacts":["privilege_escalation","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"OCI container runtime","requires_auth":"none","summary":"Attackers can exploit race conditions in runc to escape containers or cause host denial of service by manipulating /dev/console mounts.","user_interaction":"required","vuln_class":"race_condition"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"runc","vendor":"linuxfoundation"}],"cvss":{"score":8.4,"severity":"high","source":"cna","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:N/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. Versions 1.0.0-rc3 through 1.2.7, 1.3.0-rc.1 through 1.3.2, and 1.4.0-rc.1 through 1.4.0-rc.2, due to insufficient checks when bind-mounting `/dev/pts/$n` to `/dev/console` inside the container, an attacker can trick runc into bind-mounting paths which would normally be made read-only or be masked onto a path that the attacker can write to. This attack is very similar in concept and application to CVE-2025-31133, except that it attacks a similar vulnerability in a different target (namely, the bind-mount of `/dev/pts/$n` to `/dev/console` as configured for all containers that allocate a console). This happens after `pivot_root(2)`, so this cannot be used to write to host files directly -- however, as with CVE-2025-31133, this can load to denial of service of the host or a container breakout by providing the attacker with a writable copy of `/proc/sysrq-trigger` or `/proc/sys/kernel/core_pattern` (respectively). 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":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"container escape due to /dev/console mount and related races","id":"CVE-2025-52565","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"race_condition","year":"2025"},"n_packages":7,"n_references":9,"next":{"headline":"llama.cpp tokenizer signed vs. unsigned heap overflow","id":"CVE-2025-52566"},"packages":[{"ecosystem":"Go","fixed":["1.2.8","1.3.3","1.4.0-rc.3"],"introduced":["1.0.0-rc3","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-4097"},{"ecosystem":"Go","fixed":["1.2.8"],"introduced":["1.0.0-rc3"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-qw9x-cqr3-wc7r"},{"ecosystem":"Go","fixed":["1.2.8"],"introduced":["1.0.0-rc3"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-qw9x-cqr3-wc7r"},{"ecosystem":"Go","fixed":["1.3.3"],"introduced":["1.3.0-rc.1"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-qw9x-cqr3-wc7r"},{"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-qw9x-cqr3-wc7r"},{"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-qw9x-cqr3-wc7r"},{"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-qw9x-cqr3-wc7r"}],"prev":{"headline":"Chamilo: HTML injection via open parameter","id":"CVE-2025-52564"},"products":["runc"],"published":"2025-11-06","related":[{"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":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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-11-06","vendors":["opencontainers"]},"summary":"Attackers can exploit race conditions in runc to escape containers or cause host denial of service by manipulating /dev/console mounts.","url":"https://insights.sbomify.com/CVE-2025-52565/"}