Moby allows unprivileged local users to inject frames into encrypted Swarm overlay networks
Published 3 Dec 2026 · Updated 3 Dec 2026
Affected packages
- Affected
- <2.0.0-beta.25
- Fixed in
- 2.0.0-beta.25
go get github.com/moby/moby/v2@v2.0.0-beta.25- Affected
- <25.0.19-0.20260930191804-250d0dd1b699
- Fixed in
- 25.0.19-0.20260930191804-250d0dd1b699
go get github.com/docker/docker@v25.0.19-0.20260930191804-250d0dd1b699- Affected
- >=26.0.0-rc1 <=28.5.2
- Fixed in
- No fix released
- Affected
- <25.0.19-0.20260930191804-250d0dd1b699
- Fixed in
- 25.0.19-0.20260930191804-250d0dd1b699
go get github.com/moby/moby@v25.0.19-0.20260930191804-250d0dd1b699- Affected
- >=26.0.0-rc1 <=28.5.2
- Fixed in
- No fix released
Which github.com/moby/moby/v2 does your project really install?
Works for private projects: the file is read in memory to run the scan and then dropped. Also reads other package files.
Public repo?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Details
The firewall rules which mark VXLAN datagrams for encryption indiscriminately match both authentic VXLAN datagrams sent from the kernel and forged datagrams sent by user processes. Any packet sent from the host network namespace of a Linux Swarm node is encrypted with the overlay-network IPsec parameters which meets the following criteria:
- UDP datagram
- Destination port is the Swarm data-path port
- Datagram starts with a VXLAN header for the VNI of an encrypted overlay network which any running container on the node is connected to
Impact
An unprivileged user on a Linux Swarm node can trivially inject forged Ethernet frames into an encrypted overlay network on another Linux Swarm node.
Patches
The issue is fixed in Docker Engine v29.8.2. Users should upgrade to v29.8.2 or later.
Workarounds
Block userspace processes from sending UDP packets to the Swarm data-path port.
iptables -I OUTPUT -p udp --dport "$(docker info --format '{{.Swarm.Cluster.DataPathPort}}')" -m owner --socket-exists -j DROPIs GHSA-6m9p-4h64-m6vh in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected github.com/moby/moby/v2, and gives you the command that fixes it.
More advisories for github.com/moby/moby/v2
- LowCVE-2026-41568Race condition in 'docker cp' in github.com/docker/docker allows creation of arbitrary files · 25 Jun 2026
- LowCVE-2026-41567Docker: 'PUT /containers/{id}/archive' executes container binary on the host in github.com/docker/docker · 25 Jun 2026
- LowCVE-2026-42306Race condition in 'docker cp' in github.com/docker/docker allows bind mount redirection · 25 Jun 2026
- HighCVE-2026-42306Docker: Race condition in docker cp allows bind mount redirection to host path · 18 May 2026
- MediumCVE-2026-41568Docker: Race condition in docker cp allows creation of arbitrary empty files on the host via symlink swap · 18 May 2026
- HighCVE-2026-41567Docker: `PUT /containers/{id}/archive` executes container binary on the host · 18 May 2026
References
- Linkgithub.com/moby/moby/security/advisories/GHSA-6m9p-4h64-m6vh
- Advisorynvd.nist.gov/vuln/detail/CVE-2026-92542
- Linkgithub.com/moby/moby/commit/1150173bb7e8c76866125aafe107eb3135e8e6eb
- Linkgithub.com/moby/moby/commit/250d0dd1b69942c9aa05fddd851414d1824c0534
- Linkgithub.com/moby/moby/commit/7661845b294b7dc0dcfda5b755cd99a65ef511b8
- Packagegithub.com/moby/moby
- Linkgithub.com/moby/moby/releases/tag/docker-v29.8.2
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.