Skip to content

CVE-2023-28842 moby/moby's dockerd daemon encrypted overlay network with a single endpoint is unauthenticated

MediumCVSS 6.8 EPSS 1.4%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
Linux KernelDockerUbuntuDebian

Description

Moby) is an open source container framework developed by Docker Inc. that is distributed as Docker, Mirantis Container Runtime, and various other downstream projects/products. The Moby daemon component (dockerd), which is developed as moby/moby is commonly referred to as Docker.

Swarm Mode, which is compiled in and delivered by default in dockerd and is thus present in most major Moby downstreams, is a simple, built-in container orchestrator that is implemented through a combination of SwarmKit and supporting network code.

The overlay network driver is a core feature of Swarm Mode, providing isolated virtual LANs that allow communication between containers and services across the cluster. This driver is an implementation/user of VXLAN, which encapsulates link-layer (Ethernet) frames in UDP datagrams that tag the frame with the VXLAN metadata, including a VXLAN Network ID (VNI) that identifies the originating overlay network. In addition, the overlay network driver supports an optional, off-by-default encrypted mode, which is especially useful when VXLAN packets traverses an untrusted network between nodes.

Encrypted overlay networks function by encapsulating the VXLAN datagrams through the use of the IPsec Encapsulating Security Payload protocol in Transport mode. By deploying IPSec encapsulation, encrypted overlay networks gain the additional properties of source authentication through cryptographic proof, data integrity through check-summing, and confidentiality through encryption.

When setting an endpoint up on an encrypted overlay network, Moby installs three iptables (Linux kernel firewall) rules that enforce both incoming and outgoing IPSec. These rules rely on the u32 iptables extension provided by the xt_u32 kernel module to directly filter on a VXLAN packet's VNI field, so that IPSec guarantees can be enforced on encrypted overlay networks without interfering with other overlay networks or other users of VXLAN.

The overlay driver dynamically and lazily defines the kernel configuration for the VXLAN network on each node as containers are attached and detached. Routes and encryption parameters are only defined for destination nodes that participate in the network. The iptables rules that prevent encrypted overlay networks from accepting unencrypted packets are not created until a peer is available with which to communicate.

Encrypted overlay networks silently accept cleartext VXLAN datagrams that are tagged with the VNI of an encrypted overlay network. As a result, it is possible to inject arbitrary Ethernet frames into the encrypted overlay network by encapsulating them in VXLAN datagrams. The implications of this can be quite dire, and GHSA-vwm3-crmr-xfxw should be referenced for a deeper exploration.

Patches are available in Moby releases 23.0.3, and 20.10.24. As Mirantis Container Runtime's 20.10 releases are numbered differently, users of that platform should update to 20.10.16.

Some workarounds are available. In multi-node clusters, deploy a global ‘pause’ container for each encrypted overlay network, on every node. For a single-node cluster, do not use overlay networks of any sort. Bridge networks provide the same connectivity on a single node and have no multi-node features. The Swarm ingress feature is implemented using an overlay network, but can be disabled by publishing ports in host mode instead of ingress mode (allowing the use of an external load balancer), and removing the ingress network. If encrypted overlay networks are in exclusive use, block UDP port 4789 from traffic that has not been validated by IPSec.

Upgrade path

21 packages: 19 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/docker.io(Ubuntu Pro 16.04) = 1.6.2~dfsg1-1ubuntu4; = 1.10.2-0ubuntu3; = 1.10.2-0ubuntu4; = 1.10.3-0ubuntu1 +21 more No fix listed No fix yet
alpine/docker(Alpine v3.17) < 20.10.24-r0 20.10.24-r0 Fixed
alpine/docker(Alpine v3.18) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.19) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.20) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.21) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.22) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.23) < 23.0.3-r0 23.0.3-r0 Fixed
alpine/docker(Alpine v3.24) < 23.0.3-r0 23.0.3-r0 Fixed
debian/docker.io(Debian 12) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1 Fixed
debian/docker.io(Debian 13) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1 Fixed
debian/docker.io(Debian 14) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1 Fixed
docker github.com/docker/docker(Go) >= 1.12.0, < 20.10.24; >= 1.12.0, < 20.10.24+incompatible; >= 23.0.0+incompatible, < 23.0.3+incompatible; >= 23.0.0, < 23.0.3 20.10.24, 20.10.24+incompatible, 23.0.3, 23.0.3+incompatible Fixed
mobyproject moby >= 1.12.0, < 20.10.24; >= 23.0.0, < 23.0.3 20.10.24, 23.0.3 Fixed
ubuntu/docker.io(Ubuntu 22.04) < 20.10.21-0ubuntu1~22.04.7+esm2 20.10.21-0ubuntu1~22.04.7+esm2 Fixed
ubuntu/docker.io(Ubuntu Pro 18.04) < 20.10.21-0ubuntu1~18.04.3+esm3; = 1.13.1-0ubuntu6; = 17.03.2-0ubuntu1; = 17.03.2-0ubuntu3 +23 more 20.10.21-0ubuntu1~18.04.3+esm3 Fixed
ubuntu/docker.io(Ubuntu Pro 20.04) < 20.10.21-0ubuntu1~20.04.6+esm2; = 19.03.2-0ubuntu1; = 19.03.6-0ubuntu1; = 19.03.8-0ubuntu1 +16 more 20.10.21-0ubuntu1~20.04.6+esm2 Fixed
ubuntu/docker.io(Ubuntu Pro 22.04) < 20.10.21-0ubuntu1~22.04.7+esm2; = 20.10.7-0ubuntu5; = 20.10.7-0ubuntu7; = 20.10.12-0ubuntu1 +10 more 20.10.21-0ubuntu1~22.04.7+esm2 Fixed
ubuntu/docker.io-app(Ubuntu 22.04) < 27.5.1-0ubuntu3~22.04.2; = 20.10.25-0ubuntu1~22.04.1; = 20.10.25-0ubuntu1~22.04.2; = 24.0.5-0ubuntu1~22.04.1 +3 more 27.5.1-0ubuntu3~22.04.2 Fixed
ubuntu/docker.io-app(Ubuntu Pro 20.04) < 26.1.3-0ubuntu1~20.04.1+esm1; = 20.10.25-0ubuntu1~20.04.1; = 20.10.25-0ubuntu1~20.04.2; = 24.0.5-0ubuntu1~20.04.1 +2 more 26.1.3-0ubuntu1~20.04.1+esm1 Fixed
moby = >= 1.12.0, < 20.10.24; = >= 23.0.0, < 23.0.3 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
docker github.com/docker/docker(Go) >= 1.12.0, < 20.10.24 20.10.24
docker github.com/docker/docker(Go) >= 23.0.0, < 23.0.3 23.0.3
docker github.com/docker/docker(Go) >= 1.12.0, < 20.10.24+incompatible 20.10.24+incompatible
docker github.com/docker/docker(Go) >= 23.0.0+incompatible, < 23.0.3+incompatible 23.0.3+incompatible
debian/docker.io(Debian:12) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1
debian/docker.io(Debian:13) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1
debian/docker.io(Debian:14) < 20.10.24+dfsg1-1 20.10.24+dfsg1-1
moby = >= 1.12.0, < 20.10.24 No fix listed
moby = >= 23.0.0, < 23.0.3 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) < 27.5.1-0ubuntu3~22.04.2 27.5.1-0ubuntu3~22.04.2
ubuntu/docker.io(Ubuntu:22.04) < 20.10.21-0ubuntu1~22.04.7+esm2 20.10.21-0ubuntu1~22.04.7+esm2
mobyproject moby >= 1.12.0, < 20.10.24 20.10.24
mobyproject moby >= 23.0.0, < 23.0.3 23.0.3
alpine/docker(Alpine:v3.17) < 20.10.24-r0 20.10.24-r0
alpine/docker(Alpine:v3.18) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.19) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.20) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.21) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.22) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.23) < 23.0.3-r0 23.0.3-r0
alpine/docker(Alpine:v3.24) < 23.0.3-r0 23.0.3-r0
ubuntu/docker.io(Ubuntu:Pro:16.04) All versions No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.6.2~dfsg1-1ubuntu4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.2-0ubuntu3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.2-0ubuntu4 No fix listed
Show 94 more
ProductAffected versionsFixed in
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.3-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.3-0ubuntu4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.3-0ubuntu5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.10.3-0ubuntu6 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.11.2-0ubuntu5~16.04 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.12.1-0ubuntu13~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.12.3-0ubuntu4~16.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.12.6-0ubuntu1~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 1.13.1-0ubuntu1~16.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 17.03.2-0ubuntu2~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.06.1-0ubuntu1~16.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.06.1-0ubuntu1.2~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.2-0ubuntu1~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.5-0ubuntu1~16.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.6 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.7 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.9+esm1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:16.04) = 18.09.7-0ubuntu1~16.04.9+esm2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) < 20.10.21-0ubuntu1~18.04.3+esm3 20.10.21-0ubuntu1~18.04.3+esm3
ubuntu/docker.io(Ubuntu:Pro:18.04) = 1.13.1-0ubuntu6 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 17.03.2-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 17.03.2-0ubuntu3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 17.03.2-0ubuntu5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 17.12.1-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.06.1-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.06.1-0ubuntu1.2~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.09.2-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.09.5-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.09.7-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.09.7-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 18.09.7-0ubuntu1~18.04.4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 19.03.6-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 19.03.6-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 19.03.6-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.2-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.2-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.7-0ubuntu1~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.7-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.7-0ubuntu5~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.7-0ubuntu5~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.12-0ubuntu2~18.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.21-0ubuntu1~18.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.21-0ubuntu1~18.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.21-0ubuntu1~18.04.3+esm1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:18.04) = 20.10.21-0ubuntu1~18.04.3+esm2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) < 20.10.21-0ubuntu1~20.04.6+esm2 20.10.21-0ubuntu1~20.04.6+esm2
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.2-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.6-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.8-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.8-0ubuntu1.20.04 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.8-0ubuntu1.20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 19.03.8-0ubuntu1.20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.2-0ubuntu1~20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.2-0ubuntu1~20.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.7-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.7-0ubuntu1~20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.7-0ubuntu5~20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.7-0ubuntu5~20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.12-0ubuntu2~20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.6 No fix listed
ubuntu/docker.io(Ubuntu:Pro:20.04) = 20.10.21-0ubuntu1~20.04.6+esm1 No fix listed
ubuntu/docker.io-app(Ubuntu:Pro:20.04) < 26.1.3-0ubuntu1~20.04.1+esm1 26.1.3-0ubuntu1~20.04.1+esm1
ubuntu/docker.io-app(Ubuntu:Pro:20.04) = 20.10.25-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:Pro:20.04) = 20.10.25-0ubuntu1~20.04.2 No fix listed
ubuntu/docker.io-app(Ubuntu:Pro:20.04) = 24.0.5-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:Pro:20.04) = 24.0.7-0ubuntu2~20.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:Pro:20.04) = 26.1.3-0ubuntu1~20.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 20.10.25-0ubuntu1~22.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 20.10.25-0ubuntu1~22.04.2 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 24.0.5-0ubuntu1~22.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 24.0.7-0ubuntu2~22.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 26.1.3-0ubuntu1~22.04.1 No fix listed
ubuntu/docker.io-app(Ubuntu:22.04) = 27.5.1-0ubuntu3~22.04.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) < 20.10.21-0ubuntu1~22.04.7+esm2 20.10.21-0ubuntu1~22.04.7+esm2
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.7-0ubuntu5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.7-0ubuntu7 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.12-0ubuntu1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.12-0ubuntu2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.12-0ubuntu3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.12-0ubuntu3+gke1.24.1 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.12-0ubuntu4 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.2 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.3 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.5 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.6 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.7 No fix listed
ubuntu/docker.io(Ubuntu:Pro:22.04) = 20.10.21-0ubuntu1~22.04.7+esm1 No fix listed

References