{"answers":{"affected":"7 open source packages ship an affected version, including github.com/cri-o/cri-o. It affects 2 products.","exploited":"There is no known exploitation of CVE-2024-5154 in the wild and no public exploit code.","fix":"Upgrade github.com/cri-o/cri-o to a fixed version for your release line: 1.28.7, 1.29.5 or 1.30.1.","what":"CVE-2024-5154 is a high-severity path traversal vulnerability in Redhat Openshift Container Platform, published on 12 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2024-5154 and fix it if it is affected.\n\nWhat it is: CVE-2024-5154 is a high-severity path traversal vulnerability in Redhat Openshift Container Platform, published on 12 Jun 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2024-5154 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/cri-o/cri-o (Go): affected from 1.28.6; fixed in 1.28.7, 1.29.5, 1.30.1\n- github.com/cri-o/cri-o (Go): affected from 1.28.6; fixed in 1.28.7\n- github.com/cri-o/cri-o (Go): affected from 1.28.6; fixed in 1.28.7\n- github.com/cri-o/cri-o (Go): affected from 1.29.4; fixed in 1.29.5\n- github.com/cri-o/cri-o (Go): affected from 1.29.4; fixed in 1.29.5\n- github.com/cri-o/cri-o (Go): affected from 1.30.0; fixed in 1.30.1\n- github.com/cri-o/cri-o (Go): affected from 1.30.0; fixed in 1.30.1\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-5154/ (Markdown: https://insights.sbomify.com/CVE-2024-5154/index.md)","id":"CVE-2024-5154","markdown":"https://insights.sbomify.com/CVE-2024-5154/index.md","name":"CVE-2024-5154","record":{"aliases":["GHSA-j9hf-98c3-wrm8","GO-2024-2919","RHSA-2024:3676","RHSA-2024:3700","RHSA-2024:4008","RHSA-2024:4486"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_read","data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"CRI-O container runtime","requires_auth":"high_privilege","summary":"A malicious container can exploit directory traversal to create symlinks, allowing arbitrary file read and write access on the host system.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"redhat","cpe":[{"product":"cri-o","vendor":"kubernetes"},{"product":"openshift_container_platform","vendor":"redhat"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"description":"A flaw was found in cri-o. A malicious container can create a symbolic link to arbitrary files on the host via directory traversal (“../“). This flaw allows the container to read and write to arbitrary files on the host system.","ecosystems":["Go","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::el8","Red Hat:openshift:4.15::el9"],"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":"Cri-o: malicious container can create symlink on host","id":"CVE-2024-5154","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":"redhat:openshift_container_platform","products":["redhat:openshift_container_platform"],"type":"path_traversal","year":"2024"},"n_packages":28,"n_references":9,"next":{"headline":"Inquiry Cart \u003c= 3.4.2 - Stored XSS via CSRF","id":"CVE-2024-5155"},"packages":[{"ecosystem":"Go","fixed":["1.28.7","1.29.5","1.30.1"],"introduced":["1.28.6","1.29.4","1.30.0"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"GO-2024-2919"},{"ecosystem":"Go","fixed":["1.28.7"],"introduced":["1.28.6"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":null,"source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Go","fixed":["1.28.7"],"introduced":["1.28.6"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Go","fixed":["1.29.5"],"introduced":["1.29.4"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":null,"source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Go","fixed":["1.29.5"],"introduced":["1.29.4"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Go","fixed":["1.30.1"],"introduced":["1.30.0"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":null,"source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Go","fixed":["1.30.1"],"introduced":["1.30.0"],"last_affected":[],"package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"GHSA-j9hf-98c3-wrm8"},{"ecosystem":"Red Hat:openshift:4.12::el8","fixed":["0:1.25.5-21.2.rhaos4.12.gita3eb75f.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:4008"},{"ecosystem":"Red Hat:openshift:4.12::el8","fixed":["0:1.25.5-21.2.rhaos4.12.gita3eb75f.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:4008"},{"ecosystem":"Red Hat:openshift:4.12::el8","fixed":["0:1.25.5-21.2.rhaos4.12.gita3eb75f.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:4008"},{"ecosystem":"Red Hat:openshift:4.13::el8","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.13::el8","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.13::el8","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.13::el9","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.13::el9","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.13::el9","fixed":["0:1.26.5-18.2.rhaos4.13.git2e90133.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:4486"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.14::el8","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.14::el9","fixed":["0:1.27.7-3.rhaos4.14.git674563e.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:3700"},{"ecosystem":"Red Hat:openshift:4.15::el8","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:3676"},{"ecosystem":"Red Hat:openshift:4.15::el8","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:3676"},{"ecosystem":"Red Hat:openshift:4.15::el8","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el8"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:3676"},{"ecosystem":"Red Hat:openshift:4.15::el9","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o","purl":"pkg:rpm/redhat/cri-o","source":"RHSA-2024:3676"},{"ecosystem":"Red Hat:openshift:4.15::el9","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debuginfo","purl":"pkg:rpm/redhat/cri-o-debuginfo","source":"RHSA-2024:3676"},{"ecosystem":"Red Hat:openshift:4.15::el9","fixed":["0:1.28.7-2.rhaos4.15.git111aec5.el9"],"introduced":["0"],"last_affected":[],"package":"cri-o-debugsource","purl":"pkg:rpm/redhat/cri-o-debugsource","source":"RHSA-2024:3676"}],"prev":{"headline":"Startklar Elementor Addons \u003c= 1.7.15 - Unauthenticated Path Traversal to Arbitrary Directory Deletion","id":"CVE-2024-5153"},"products":["Red Hat Enterprise Linux 8","Red Hat Enterprise Linux 9","Red Hat OpenShift Container Platform 3.11","Red Hat OpenShift Container Platform 4.12","Red Hat OpenShift Container Platform 4.13","Red Hat OpenShift Container Platform 4.14","Red Hat OpenShift Container Platform 4.15","Red Hat OpenShift Container Platform 4.16","Red Hat OpenShift Container Platform 4.17"],"published":"2024-06-12","related":[{"cvss_score":8.8,"headline":"Code Injection in CRI-O","id":"CVE-2022-0811","kev_date_added":null,"published":"2022-03-16"},{"cvss_score":8.8,"headline":"Privilege escalation in n/a","id":"CVE-2018-1000400","kev_date_added":null,"published":"2018-05-18"},{"cvss_score":7.1,"headline":"CRI-O incorrect handling of supplementary groups may lead to sensitive information disclosure","id":"CVE-2022-2995","kev_date_added":null,"published":"2022-09-19"},{"cvss_score":4.8,"headline":"Cri-o: security regression of cve-2022-27652","id":"CVE-2022-3466","kev_date_added":null,"published":"2023-09-15"},{"cvss_score":4.2,"headline":"Incorrect Permission Assignment for Critical Resource in CRI-O","id":"CVE-2022-0532","kev_date_added":null,"published":"2022-02-09"}],"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":"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["Red Hat"]},"summary":"A malicious container can exploit directory traversal to create symlinks, allowing arbitrary file read and write access on the host system.","url":"https://insights.sbomify.com/CVE-2024-5154/"}