Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x/vulndb: potential Go vuln in github.com/opencontainers/runc: GHSA-jfvp-7x6p-h2pv #3110

Closed
GoVulnBot opened this issue Sep 3, 2024 · 1 comment
Assignees
Labels

Comments

@GoVulnBot
Copy link

Advisory GHSA-jfvp-7x6p-h2pv references a vulnerability in the following Go modules:

Module
github.com/opencontainers/runc
github.com/opencontainers/runc

Description:

Impact

runc 1.1.13 and earlier as well as 1.2.0-rc2 and earlier can be tricked into
creating empty files or directories in arbitrary locations in the host
filesystem by sharing a volume between two containers and exploiting a race
with os.MkdirAll. While this can be used to create empty files, existing
files will not be truncated.

An attacker must have the ability to start containers using some kind of custom
volume configuration. Containers using user namespaces are still affected, but
the scope of places an attacker can create inodes can be significantly reduced.
Sufficiently strict...

References:

Cross references:

See doc/quickstart.md for instructions on how to triage this report.

id: GO-ID-PENDING
modules:
    - module: github.com/opencontainers/runc
      versions:
        - fixed: 1.1.14
      vulnerable_at: 1.1.13
    - module: github.com/opencontainers/runc
      versions:
        - fixed: 1.2.0-rc.3
      non_go_versions:
        - introduced: 1.2.0-rc-1
      vulnerable_at: 1.2.0-rc.2
summary: runc can be confused to create empty files/directories on the host in github.com/opencontainers/runc
cves:
    - CVE-2024-45310
ghsas:
    - GHSA-jfvp-7x6p-h2pv
references:
    - advisory: https://github.com/advisories/GHSA-jfvp-7x6p-h2pv
    - advisory: https://github.com/opencontainers/runc/security/advisories/GHSA-jfvp-7x6p-h2pv
    - fix: https://github.com/opencontainers/runc/commit/63c2908164f3a1daea455bf5bcd8d363d70328c7
    - fix: https://github.com/opencontainers/runc/commit/8781993968fd964ac723ff5f360b6f259e809a3e
    - fix: https://github.com/opencontainers/runc/commit/f0b652ea61ff6750a8fcc69865d45a7abf37accf
    - fix: https://github.com/opencontainers/runc/pull/4359
notes:
    - fix: 'module merge error: could not merge versions of module github.com/opencontainers/runc: introduced and fixed versions must alternate'
source:
    id: GHSA-jfvp-7x6p-h2pv
    created: 2024-09-03T20:01:22.309145182Z
review_status: UNREVIEWED

@gopherbot
Copy link
Contributor

Change https://go.dev/cl/610804 mentions this issue: data/reports: add 8 unreviewed reports

@tatianab tatianab self-assigned this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants