{"answers":{"affected":"5 open source packages ship an affected version, including github.com/docker/docker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-28840 in the wild and no public exploit code.","fix":"Upgrade github.com/docker/docker to a fixed version for your release line: 20.10.24+incompatible, 23.0.3+incompatible, 20.10.24 or 23.0.3.","what":"CVE-2023-28840 is a high-severity authentication bypass vulnerability in moby, published on 4 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-28840 and fix it if it is affected.\n\nWhat it is: CVE-2023-28840 is a high-severity authentication bypass vulnerability in moby, published on 4 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-28840 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/docker/docker (Go): affected from 1.12.0; fixed in 20.10.24+incompatible, 23.0.3+incompatible\n- github.com/docker/docker (Go): affected from 1.12.0; fixed in 20.10.24\n- github.com/docker/docker (Go): affected from 1.12.0; fixed in 20.10.24\n- github.com/docker/docker (Go): affected from 23.0.0; fixed in 23.0.3\n- github.com/docker/docker (Go): affected from 23.0.0; fixed in 23.0.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-28840/ (Markdown: https://insights.sbomify.com/CVE-2023-28840/index.md)","id":"CVE-2023-28840","markdown":"https://insights.sbomify.com/CVE-2023-28840/index.md","name":"CVE-2023-28840","record":{"aliases":["CLEANSTART-2026-IW20261","CLEANSTART-2026-JQ26035","DEBIAN-CVE-2023-28840","GHSA-232p-vwff-86mp","GO-2023-1699","UBUNTU-CVE-2023-28840","openSUSE-SU-2024:12876-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["security_bypass","data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Docker Swarm overlay network","requires_auth":"none","summary":"Attackers can bypass IPsec authentication on encrypted Docker Swarm overlay networks, potentially intercepting or injecting traffic between nodes.","user_interaction":"not_required","vuln_class":"auth_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"moby","vendor":"mobyproject"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-755","name":"Improper Handling of Exceptional Conditions"},{"id":"CWE-203","name":"Observable Discrepancy"},{"id":"CWE-636","name":"Not Failing Securely"},{"id":"CWE-420","name":"Unprotected Alternate Channel"}],"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*.\n\nSwarm 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.\n\nThe 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.\n\nEncrypted 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.\n\nWhen 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.\n\nTwo 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.\n\nThe 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.\n\nPatches 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.\n\nSome 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.","ecosystems":["Go","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"moby/moby's dockerd daemon encrypted overlay network may be unauthenticated","id":"CVE-2023-28840","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"auth_bypass","year":"2023"},"n_packages":6,"n_references":10,"next":{"headline":"moby/moby's dockerd daemon encrypted overlay network traffic may be unencrypted","id":"CVE-2023-28841"},"packages":[{"ecosystem":"Go","fixed":["20.10.24+incompatible","23.0.3+incompatible"],"introduced":["1.12.0","23.0.0+incompatible"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GO-2023-1699"},{"ecosystem":"Go","fixed":["20.10.24"],"introduced":["1.12.0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-232p-vwff-86mp"},{"ecosystem":"Go","fixed":["20.10.24"],"introduced":["1.12.0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-232p-vwff-86mp"},{"ecosystem":"Go","fixed":["23.0.3"],"introduced":["23.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-232p-vwff-86mp"},{"ecosystem":"Go","fixed":["23.0.3"],"introduced":["23.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-232p-vwff-86mp"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["2.17.3-1.1"],"introduced":["0"],"last_affected":[],"package":"docker-compose","purl":"pkg:rpm/opensuse/docker-compose\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12876-1"}],"prev":{"headline":"Improper neutralization in an SQL query in Shoppingfeed","id":"CVE-2023-28839"},"products":["moby"],"published":"2023-04-04","related":[{"cvss_score":8.1,"headline":"Moby Race Condition vulnerability","id":"CVE-2024-36623","kev_date_added":null,"published":"2024-11-29"},{"cvss_score":7.5,"headline":"Docker Authentication Bypass","id":"CVE-2018-12608","kev_date_added":null,"published":"2018-09-10"},{"cvss_score":6.9,"headline":"Moby classic builder cache poisoning","id":"CVE-2024-24557","kev_date_added":null,"published":"2024-02-01"},{"cvss_score":6.8,"headline":"moby/moby's dockerd daemon encrypted overlay network traffic may be unencrypted","id":"CVE-2023-28841","kev_date_added":null,"published":"2023-04-04"},{"cvss_score":6.8,"headline":"moby/moby's dockerd daemon encrypted overlay network with a single endpoint is unauthenticated","id":"CVE-2023-28842","kev_date_added":null,"published":"2023-04-04"},{"cvss_score":6.5,"headline":"NULL Pointer Dereference on moby image history","id":"CVE-2024-36620","kev_date_added":null,"published":"2024-11-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["moby"]},"summary":"Attackers can bypass IPsec authentication on encrypted Docker Swarm overlay networks, potentially intercepting or injecting traffic between nodes.","url":"https://insights.sbomify.com/CVE-2023-28840/"}