Skip to content

CVE-2023-28841 moby/moby's dockerd daemon encrypted overlay network traffic may be unencrypted

MediumCVSS 6.8 EPSS 0.69%
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.

An iptables rule designates outgoing VXLAN datagrams with a VNI that corresponds to an encrypted overlay network for IPsec encapsulation.

Encrypted overlay networks on affected platforms silently transmit unencrypted data. As a result, overlay networks may appear to be functional, passing traffic as expected, but without any of the expected confidentiality or data integrity guarantees.

It is possible for an attacker sitting in a trusted position on the network to read all of the application traffic that is moving across the overlay network, resulting in unexpected secrets or user data disclosure. Thus, because many database protocols, internal APIs, etc. are not protected by a second layer of encryption, a user may use Swarm encrypted overlay networks to provide confidentiality, which due to this vulnerability this is no longer guaranteed.

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. Close the VXLAN port (by default, UDP port 4789) to outgoing traffic at the Internet boundary in order to prevent unintentionally leaking unencrypted traffic over the Internet, and/or ensure that the xt_u32 kernel module is available on all nodes of the Swarm cluster.

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