moby/moby's dockerd daemon encrypted overlay network may be unauthenticated
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 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.
Two iptables rules serve to filter incoming VXLAN datagrams with a VNI that corresponds to an encrypted network and discards unencrypted datagrams. The rules are appended to the end of the INPUT filter chain, following any rules that have been previously set by the system administrator. Administrator-set rules take precedence over the rules Moby sets to discard unencrypted VXLAN datagrams, which can potentially admit unencrypted datagrams that should have been discarded.
The injection of arbitrary Ethernet frames can enable a Denial of Service attack. A sophisticated attacker may be able to establish a UDP or TCP connection by way of the container’s outbound gateway that would otherwise be blocked by a stateful firewall, or carry out other escalations beyond simple injection by smuggling packets into the overlay network.
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 incoming traffic at the Internet boundary to prevent all VXLAN packet injection, and/or ensure that the xt_u32 kernel module is available on all nodes of the Swarm cluster.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Encrypted Docker Swarm overlay networks may fail to enforce IPsec authentication on systems using nftables due to missing u32 iptables module support.
Vulnerability
Description
CVE-2023-28840 affects the Moby project's (Docker) Swarm Mode encrypted overlay networks. When an encrypted overlay network is created, the dockerd daemon installs iptables rules that rely on the xt_u32 kernel module to filter incoming VXLAN packets based on their VNI field, ensuring IPsec encapsulation is enforced. However, on systems using nftables as the backend (e.g., RHEL 8+), the u32 extension may be unavailable, causing these rules to silently fail to install. This leaves encrypted overlay networks without the intended authentication and encryption protections, potentially allowing unencrypted traffic to be accepted as if it were legitimate IPsec-protected traffic [1][3].
Exploitation
Conditions
An attacker with network access to the VXLAN segment (UDP port 4789) used by the Docker Swarm cluster can exploit this issue. The vulnerability is present when encrypted overlay networks are enabled on a host that uses nftables (common in RHEL 8.x and later, Fedora, and other modern distributions) and where the xt_u32 kernel module is not loaded or not supported. The attacker does not need authentication to the Docker daemon but must be able to send raw VXLAN packets to a node participating in the encrypted overlay network [2][3].
Impact
Successful exploitation allows an attacker to inject or intercept VXLAN traffic that the receiving node would consider as valid IPsec-encrypted communication from another legitimate node. This undermines the confidentiality, integrity, and source authentication guarantees provided by encrypted overlay networks, potentially leading to data disclosure, data manipulation, or further network attacks within the overlay [1][3].
Mitigation
Docker/Moby has released a fix that replaces the u32-based iptables rules with rules that do not depend on that extension, making them compatible with nftables-based systems. Users should update Docker/Moby to the patched version. For systems that cannot be updated, a workaround is to avoid using encrypted overlay networks on hosts that use nftables, or to ensure the xt_u32 kernel module is available and loaded (though this may not be possible on all distributions) [2][3][4].
AI Insight generated on May 20, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
github.com/docker/dockerGo | >= 1.12.0, < 20.10.24 | 20.10.24 |
github.com/docker/dockerGo | >= 23.0.0, < 23.0.3 | 23.0.3 |
Affected products
69- osv-coords68 versionspkg:apk/chainguard/apkopkg:apk/chainguard/bompkg:apk/chainguard/ctoppkg:apk/chainguard/flux-compatpkg:apk/chainguard/flux-helm-controller-0.37pkg:apk/chainguard/flux-image-reflector-controller-0pkg:apk/chainguard/helmpkg:apk/chainguard/helm-3pkg:apk/chainguard/helm-4pkg:apk/chainguard/kopkg:apk/chainguard/kyverno-1.8pkg:apk/chainguard/kyverno-cli-1.8pkg:apk/chainguard/kyverno-init-container-1.8pkg:apk/chainguard/melangepkg:apk/chainguard/melange-microvm-initpkg:apk/chainguard/prometheus-2.38pkg:apk/chainguard/prometheus-2.38-bitnami-compatpkg:apk/chainguard/prometheus-fips-2.38pkg:apk/chainguard/uppkg:apk/wolfi/apkopkg:apk/wolfi/bompkg:apk/wolfi/ctoppkg:apk/wolfi/flux-compatpkg:apk/wolfi/helmpkg:apk/wolfi/helm-3pkg:apk/wolfi/helm-4pkg:apk/wolfi/kopkg:apk/wolfi/melangepkg:apk/wolfi/melange-microvm-initpkg:apk/wolfi/uppkg:golang/github.com/docker/dockerpkg:rpm/opensuse/docker&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/docker&distro=openSUSE%20Leap%2015.5pkg:rpm/opensuse/docker-stable&distro=openSUSE%20Leap%2015.6pkg:rpm/suse/docker&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP2-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Micro%205.4pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2012pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP4pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP5pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP2-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP2pkg:rpm/suse/docker&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/docker-stable&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-ESPOSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP4-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-ESPOSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP5-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP7pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP4-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP5-LTSSpkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP4pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP5pkg:rpm/suse/docker-stable&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5
< 0.7.3-r1+ 67 more
- (no CPE)range: < 0.7.3-r1
- (no CPE)range: < 0.6.0-r0
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 2.7.3-r0
- (no CPE)range: < 0.27.0-r7
- (no CPE)range: < 0.26.1-r3
- (no CPE)range: < 3.12.2-r1
- (no CPE)range: < 3.19.2-r1
- (no CPE)range: < 4.0.1-r1
- (no CPE)range: < 0.13.0-r3
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0.3.2-r1
- (no CPE)range: < 0.3.2-r1
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0
- (no CPE)range: < 0.24.0-r1
- (no CPE)range: < 0.7.3-r1
- (no CPE)range: < 0.6.0-r0
- (no CPE)range: < 0.7.7-r13
- (no CPE)range: < 2.7.3-r0
- (no CPE)range: < 3.12.2-r1
- (no CPE)range: < 3.19.2-r1
- (no CPE)range: < 4.0.1-r1
- (no CPE)range: < 0.13.0-r3
- (no CPE)range: < 0.3.2-r1
- (no CPE)range: < 0.3.2-r1
- (no CPE)range: < 0.24.0-r1
- (no CPE)range: >= 1.12.0, < 20.10.24
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 20.10.25_ce-98.93.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.5_ce-150000.185.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-1.20.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-150000.1.25.1
- (no CPE)range: < 24.0.9_ce-1.20.1
- moby/mobyv5Range: >= 1.12.0, < 20.10.24
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- github.com/advisories/GHSA-232p-vwff-86mpghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2023-28840ghsaADVISORY
- github.com/moby/libnetwork/security/advisories/GHSA-gvm4-2qqg-m333ghsax_refsource_MISCWEB
- github.com/moby/moby/issues/43382ghsax_refsource_MISCWEB
- github.com/moby/moby/pull/45118ghsax_refsource_MISCWEB
- github.com/moby/moby/security/advisories/GHSA-232p-vwff-86mpghsax_refsource_CONFIRMWEB
- github.com/moby/moby/security/advisories/GHSA-33pg-m6jh-5237ghsax_refsource_MISCWEB
- github.com/moby/moby/security/advisories/GHSA-6wrf-mxfj-pf5pghsax_refsource_MISCWEB
- github.com/moby/moby/security/advisories/GHSA-vwm3-crmr-xfxwghsax_refsource_MISCWEB
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LYZOKMMVX4SIEHPJW3SJUQGMO5YZCPHC/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XNF4OLYZRQE75EB5TW5N42FSXHBXGWFE/mitre
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZTE4ITXXPIWZEQ4HYQCB6N6GZIMWXDAI/mitre
News mentions
0No linked articles in our index yet.