{"answers":{"affected":"3 open source packages ship an affected version, including github.com/opencontainers/runc. It affects 2 products.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21626 exists.","fix":"Upgrade github.com/opencontainers/runc to 1.1.12 or later.","what":"CVE-2024-21626 is a high-severity path traversal vulnerability in Fedoraproject Fedora, published on 31 Jan 2024. 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-2024-21626 and fix it if it is affected.\n\nWhat it is: CVE-2024-21626 is a high-severity path traversal vulnerability in Fedoraproject Fedora, published on 31 Jan 2024. 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: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-21626 exists.\n\nAffected packages and fixed versions:\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc93; fixed in 1.1.12\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc93; fixed in 1.1.12\n- github.com/opencontainers/runc (Go): affected from 1.0.0-rc93; fixed in 1.1.12\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-2024-21626/ (Markdown: https://insights.sbomify.com/CVE-2024-21626/index.md)","id":"CVE-2024-21626","markdown":"https://insights.sbomify.com/CVE-2024-21626/index.md","name":"CVE-2024-21626","record":{"aliases":["ALSA-2024:0670","ALSA-2024:0752","AZL-34060","AZL-34074","AZL-34075","AZL-34087","AZL-34642","AZL-34896","AZL-34905","AZL-35006","AZL-39606","AZL-43429","AZL-43789","AZL-44226","AZL-44340","BELL-CVE-2024-21626","CLEANSTART-2026-CY16593","DEBIAN-CVE-2024-21626","DSA-5615-1","GHSA-xr7r-f8xq-vfvv","GO-2024-2491","OESA-2024-1182","RHEA-2024:6124","RHSA-2024:0645","RHSA-2024:0662","RHSA-2024:0666","RHSA-2024:0670","RHSA-2024:0684","RHSA-2024:0717","RHSA-2024:0752","RHSA-2024:0755","RHSA-2024:0756","RHSA-2024:0757","RHSA-2024:0758","RHSA-2024:0759","RHSA-2024:0760","RHSA-2024:0764","RHSA-2024:10149","RHSA-2024:10520","RHSA-2024:10525","RHSA-2024:10841","RHSA-2024:1270","RLSA-2024:0752","SUSE-SU-2024:0294-1","SUSE-SU-2024:0295-1","SUSE-SU-2024:0328-1","SUSE-SU-2024:0459-1","UBUNTU-CVE-2024-21626","USN-6619-1","openSUSE-SU-2024:13644-1","openSUSE-SU-2024:13754-1"],"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":"runc container runtime","requires_auth":"none","summary":"Attackers can escape containers and execute code on the host by exploiting a file descriptor leak that exposes the host filesystem.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"runc","vendor":"linuxfoundation"}],"cvss":{"score":8.6,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"},{"id":"CWE-668","name":"Exposure of Resource to Wrong Sphere"},{"id":"CWE-403","name":"Exposure of File Descriptor to Unintended Control Sphere"}],"description":"runc is a CLI tool for spawning and running containers on Linux according to the OCI specification. In runc 1.1.11 and earlier, due to an internal file descriptor leak, an attacker could cause a newly-spawned container process (from runc exec) to have a working directory in the host filesystem namespace, allowing for a container escape by giving access to the host filesystem (\"attack 2\"). The same attack could be used by a malicious image to allow a container process to gain access to the host filesystem through runc run (\"attack 1\"). Variants of attacks 1 and 2 could be also be used to overwrite semi-arbitrary host binaries, allowing for complete container escapes (\"attack 3a\" and \"attack 3b\"). runc 1.1.12 includes patches for this issue.","ecosystems":["AlmaLinux:8","AlmaLinux:9","Go","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:9::appstream","Red Hat:openshift:4.11::el8","Red Hat:openshift:4.12::el8","Red Hat:openshift:4.13::el8","Red Hat:openshift:4.13::el9","Red Hat:openshift:4.14::el8","Red Hat:openshift:4.14::el9","Red Hat:openshift:4.15::el9","Red Hat:openshift:4.16::el9","Red Hat:openshift:4.17::el9","Red Hat:openshift:4.18::el9","Red Hat:rhel_aus:8.2::appstream","Red Hat:rhel_aus:8.4::appstream","Red Hat:rhel_e4s:8.2::appstream","Red Hat:rhel_e4s:8.4::appstream","Red Hat:rhel_eus:8.6::appstream","Red Hat:rhel_eus:8.8::appstream","Red Hat:rhel_eus:9.0::appstream","Red Hat:rhel_eus:9.2::appstream","Red Hat:rhel_extras_other:7","Red Hat:rhel_tus:8.2::appstream","Red Hat:rhel_tus:8.4::appstream","Rocky Linux:8","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Containers 12","SUSE:Linux Enterprise Module for Containers 15 SP4","SUSE:Linux Enterprise Module for Containers 15 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server 15 SP4-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Server for SAP Applications 15 SP4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Leap Micro 5.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2024-01-31","github_poc":20,"max_poc_stars":80,"metasploit":1,"nuclei":0,"refs":[{"date":"2024-02-01T15:28:37Z","kind":"github_poc","ref":"https://github.com/NitroCao/CVE-2024-21626","stars":80,"title":"PoC and Detection for CVE-2024-21626"},{"date":"2024-02-05T17:47:01Z","kind":"github_poc","ref":"https://github.com/V0WKeep3r/CVE-2024-21626-runcPOC","stars":6,"title":null},{"date":"2024-02-02T03:56:03Z","kind":"github_poc","ref":"https://github.com/cdxiaodong/CVE-2024-21626","stars":5,"title":"CVE-2024-21626-poc-research-Reappearance-andtodo"},{"date":"2024-02-02T06:34:16Z","kind":"github_poc","ref":"https://github.com/zhangguanzhang/CVE-2024-21626","stars":4,"title":null},{"date":"2024-02-02T11:51:08Z","kind":"github_poc","ref":"https://github.com/laysakura/CVE-2024-21626-demo","stars":3,"title":"Container Runtime Meetup #5 のLT用のデモ"},{"date":"2024-03-15T10:38:27Z","kind":"github_poc","ref":"https://github.com/Sk3pper/CVE-2024-21626","stars":2,"title":null},{"date":"2024-04-03T11:45:19Z","kind":"github_poc","ref":"https://github.com/KubernetesBachelor/CVE-2024-21626","stars":2,"title":"POC"},{"date":"2024-04-10T09:12:06Z","kind":"github_poc","ref":"https://github.com/dorser/cve-2024-21626","stars":2,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"runc container breakout through process.cwd trickery and leaked fds","id":"CVE-2024-21626","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"path_traversal","year":"2024"},"n_packages":720,"n_references":9,"next":{"headline":"Some attribute not escaped in Validate::isCleanHTML method","id":"CVE-2024-21627"},"packages":[{"ecosystem":"Go","fixed":["1.1.12"],"introduced":["1.0.0-rc93"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":null,"source":"GHSA-xr7r-f8xq-vfvv"},{"ecosystem":"Go","fixed":["1.1.12"],"introduced":["1.0.0-rc93"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GHSA-xr7r-f8xq-vfvv"},{"ecosystem":"Go","fixed":["1.1.12"],"introduced":["1.0.0-rc93"],"last_affected":[],"package":"github.com/opencontainers/runc","purl":"pkg:golang/github.com/opencontainers/runc","source":"GO-2024-2491"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.7.0-1.module_el8.9.0+3657+d86e192f"],"introduced":["0"],"last_affected":[],"package":"aardvark-dns","purl":"pkg:rpm/almalinux/aardvark-dns","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.31.3-3.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/almalinux/buildah","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.31.3-3.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"buildah-tests","purl":"pkg:rpm/almalinux/buildah-tests","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["75-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"cockpit-podman","purl":"pkg:rpm/almalinux/cockpit-podman","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:2.1.8-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"conmon","purl":"pkg:rpm/almalinux/conmon","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["2:2.221.0-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"container-selinux","purl":"pkg:rpm/almalinux/container-selinux","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.3.0-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"containernetworking-plugins","purl":"pkg:rpm/almalinux/containernetworking-plugins","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["2:1-71.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"containers-common","purl":"pkg:rpm/almalinux/containers-common","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-4.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"crit","purl":"pkg:rpm/almalinux/crit","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-4.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"criu","purl":"pkg:rpm/almalinux/criu","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-4.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"criu-devel","purl":"pkg:rpm/almalinux/criu-devel","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-4.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"criu-libs","purl":"pkg:rpm/almalinux/criu-libs","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1.8.7-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"crun","purl":"pkg:rpm/almalinux/crun","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1.12-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"fuse-overlayfs","purl":"pkg:rpm/almalinux/fuse-overlayfs","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-1.module_el8.8.0+3615+3543c705"],"introduced":["0"],"last_affected":[],"package":"libslirp","purl":"pkg:rpm/almalinux/libslirp","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["4.4.0-1.module_el8.8.0+3615+3543c705"],"introduced":["0"],"last_affected":[],"package":"libslirp-devel","purl":"pkg:rpm/almalinux/libslirp-devel","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.7.0-2.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"netavark","purl":"pkg:rpm/almalinux/netavark","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.9-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"oci-seccomp-bpf-hook","purl":"pkg:rpm/almalinux/oci-seccomp-bpf-hook","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman","purl":"pkg:rpm/almalinux/podman","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-catatonit","purl":"pkg:rpm/almalinux/podman-catatonit","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-docker","purl":"pkg:rpm/almalinux/podman-docker","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-gvproxy","purl":"pkg:rpm/almalinux/podman-gvproxy","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-plugins","purl":"pkg:rpm/almalinux/podman-plugins","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-remote","purl":"pkg:rpm/almalinux/podman-remote","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3:4.6.1-8.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"podman-tests","purl":"pkg:rpm/almalinux/podman-tests","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["3.18-4.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"python3-criu","purl":"pkg:rpm/almalinux/python3-criu","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["4.6.0-2.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"python3-podman","purl":"pkg:rpm/almalinux/python3-podman","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.1.12-1.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/almalinux/runc","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.13.3-3.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"skopeo","purl":"pkg:rpm/almalinux/skopeo","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["2:1.13.3-3.module_el8.9.0+3717+81096349"],"introduced":["0"],"last_affected":[],"package":"skopeo-tests","purl":"pkg:rpm/almalinux/skopeo-tests","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["1.2.1-1.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"slirp4netns","purl":"pkg:rpm/almalinux/slirp4netns","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["0.0.99.4-5.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"toolbox","purl":"pkg:rpm/almalinux/toolbox","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["0.0.99.4-5.module_el8.9.0+3643+9234dc3b"],"introduced":["0"],"last_affected":[],"package":"toolbox-tests","purl":"pkg:rpm/almalinux/toolbox-tests","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:8","fixed":["0.2.6-20.module_el8.8.0+3615+3543c705"],"introduced":["0"],"last_affected":[],"package":"udica","purl":"pkg:rpm/almalinux/udica","source":"ALSA-2024:0752"},{"ecosystem":"AlmaLinux:9","fixed":["4:1.1.12-1.el9_3"],"introduced":["0"],"last_affected":[],"package":"runc","purl":"pkg:rpm/almalinux/runc","source":"ALSA-2024:0670"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["2:1.7.0-1.module+el8.9.0+21243+a586538b"],"introduced":["0"],"last_affected":[],"package":"aardvark-dns","purl":"pkg:rpm/redhat/aardvark-dns","source":"RHSA-2024:0752"},{"ecosystem":"Red Hat:enterprise_linux:8::appstream","fixed":["1:1.31.3-3.module+el8.9.0+21243+a586538b"],"introduced":["0"],"last_affected":[],"package":"buildah","purl":"pkg:rpm/redhat/buildah","source":"RHSA-2024:0752"}],"prev":{"headline":"One-click remote code execution via malicious deep link","id":"CVE-2024-21625"},"products":["runc"],"published":"2024-01-31","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"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":"CC BY 4.0","name":"Red Hat","prefix":"RHSA"},{"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":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-17","vendors":["opencontainers"]},"summary":"Attackers can escape containers and execute code on the host by exploiting a file descriptor leak that exposes the host filesystem.","url":"https://insights.sbomify.com/CVE-2024-21626/"}