GO-2026-5668

Source
https://pkg.go.dev/vuln/GO-2026-5668
Import Source
https://vuln.go.dev/ID/GO-2026-5668.json
JSON Data
https://api.test.osv.dev/v1/vulns/GO-2026-5668
Aliases
Downstream
Published
2026-06-25T22:34:38Z
Modified
2026-08-11T23:45:12Z
Summary
Race condition in 'docker cp' in github.com/docker/docker allows creation of arbitrary files
Details

A race condition in the Docker daemon allows an attacker to create arbitrary empty files on the host system during a "docker cp" operation by swapping a destination path with a symbolic link.

The affected code is in the daemon package, specifically the openContainerFS and createIfNotExists methods. This is daemon-owned, Linux-specific code and is not intended for external use as a Go library.

Database specific
{
    "review_status":  "REVIEWED",
    "url":  "https://pkg.go.dev/vuln/GO-2026-5668"
}
References

Affected packages

Go / github.com/docker/docker

Package

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

Affected ranges

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

Ecosystem specific

{
    "imports":  [
        {
            "path":  "github.com/docker/docker/daemon",
            "symbols":  [
                "Daemon.createIfNotExists",
                "Daemon.openContainerFS"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5668.json"

Go / github.com/moby/moby

Package

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

Affected ranges

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

Ecosystem specific

{
    "imports":  [
        {
            "path":  "github.com/moby/moby/daemon",
            "symbols":  [
                "Daemon.createIfNotExists",
                "Daemon.openContainerFS"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5668.json"

Go / github.com/moby/moby/v2

Package

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

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
2.0.0-beta.14

Ecosystem specific

{
    "imports":  [
        {
            "path":  "github.com/moby/moby/v2/daemon",
            "symbols":  [
                "Daemon.createIfNotExists",
                "Daemon.openContainerFS"
            ]
        }
    ]
}

Database specific

source
"https://vuln.go.dev/ID/GO-2026-5668.json"