GO-2024-2493

Source
https://pkg.go.dev/vuln/GO-2024-2493
Import Source
https://vuln.go.dev/ID/GO-2024-2493.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2024-2493
Aliases
Published
2024-02-13T18:23:00Z
Modified
2024-05-20T16:03:47Z
Summary
Host system file access in github.com/moby/buildkit
Details

Two malicious build steps running in parallel sharing the same cache mounts with subpaths could cause a race condition that can lead to files from the host system being accessible to the build container.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2024-2493"
}
References
Credits
    • @rmcnamara-snyk

Affected packages

Go / github.com/moby/buildkit

Package

Name
github.com/moby/buildkit
View open source insights on deps.dev
Purl
pkg:golang/github.com/moby/buildkit

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.12.5

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/moby/buildkit/executor/oci",
            "symbols": [
                "sub",
                "submounts.cleanup",
                "submounts.subMount"
            ]
        },
        {
            "path": "github.com/moby/buildkit/snapshot",
            "symbols": [
                "LocalMounter",
                "LocalMounterWithMounts",
                "localMounter.Mount"
            ]
        }
    ]
}