{"answers":{"affected":"7 open source packages ship an affected version, including github.com/docker/docker. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-29018 in the wild and no public exploit code.","fix":"Upgrade github.com/docker/docker to a fixed version for your release line: 23.0.11, 25.0.5, 25.0.5+incompatible or 26.0.0-rc3+incompatible.","what":"CVE-2024-29018 is a medium-severity vulnerability in moby, published on 20 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-29018 and fix it if it is affected.\n\nWhat it is: CVE-2024-29018 is a medium-severity vulnerability in moby, published on 20 Mar 2024. 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-2024-29018 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/docker/docker (Go): affected all versions; fixed in 23.0.11\n- github.com/docker/docker (Go): affected all versions; fixed in 23.0.11\n- github.com/docker/docker (Go): affected from 25.0.0; fixed in 25.0.5\n- github.com/docker/docker (Go): affected from 25.0.0; fixed in 25.0.5\n- github.com/docker/docker (Go): affected from 25.0.0+incompatible; fixed in 25.0.5+incompatible, 26.0.0-rc3+incompatible\n- github.com/docker/docker (Go): affected from 26.0.0-rc1; fixed in 26.0.0-rc3\n- github.com/docker/docker (Go): affected from 26.0.0-rc1; fixed in 26.0.0-rc3\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-2024-29018/ (Markdown: https://insights.sbomify.com/CVE-2024-29018/index.md)","id":"CVE-2024-29018","markdown":"https://insights.sbomify.com/CVE-2024-29018/index.md","name":"CVE-2024-29018","record":{"aliases":["AZL-36900","AZL-40034","BELL-CVE-2024-29018","CLEANSTART-2026-AC99204","CLEANSTART-2026-MB99819","DEBIAN-CVE-2024-29018","GHSA-mq39-4gv4-mvpx","GO-2024-2659","MGASA-2025-0189","MINI-3r44-vp7g-j6j5","OESA-2024-1417","OESA-2024-1464","OESA-2024-1465","OESA-2024-1466","OESA-2024-1467","OESA-2024-1468","ROOT-OS-DEBIAN-12-CVE-2024-29018","SUSE-SU-2025:0776-1","SUSE-SU-2025:0992-1","UBUNTU-CVE-2024-29018","openSUSE-SU-2024:14597-1"],"analysis":{"component_type":"container_or_infrastructure","fix_type":"patch","impacts":["data_read"],"network_reachable":"yes","non_default_config":true,"product_category":"Docker Engine","requires_auth":"none","summary":"Containers on internal networks can exfiltrate data via DNS requests forwarded by the host resolver, bypassing network isolation restrictions.","user_interaction":"not_required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"moby","vendor":"mobyproject"}],"cvss":{"score":5.9,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-669","name":"Incorrect Resource Transfer Between Spheres"}],"description":"Moby is an open source container framework that is a key component of Docker Engine, Docker Desktop, and other distributions of container tooling or runtimes. Moby's networking implementation allows for many networks, each with their own IP address range and gateway, to be defined. This feature is frequently referred to as custom networks, as each network can have a different driver, set of parameters and thus behaviors. When creating a network, the `--internal` flag is used to designate a network as _internal_. The `internal` attribute in a docker-compose.yml file may also be used to mark a network _internal_, and other API clients may specify the `internal` parameter as well.\n\nWhen containers with networking are created, they are assigned unique network interfaces and IP addresses. The host serves as a router for non-internal networks, with a gateway IP that provides SNAT/DNAT to/from container IPs.\n\nContainers on an internal network may communicate between each other, but are precluded from communicating with any networks the host has access to (LAN or WAN) as no default route is configured, and firewall rules are set up to drop all outgoing traffic. Communication with the gateway IP address (and thus appropriately configured host services) is possible, and the host may communicate with any container IP directly.\n\nIn addition to configuring the Linux kernel's various networking features to enable container networking, `dockerd` directly provides some services to container networks. Principal among these is serving as a resolver, enabling service discovery, and resolution of names from an upstream resolver.\n\nWhen a DNS request for a name that does not correspond to a container is received, the request is forwarded to the configured upstream resolver. This request is made from the container's network namespace: the level of access and routing of traffic is the same as if the request was made by the container itself.\n\nAs a consequence of this design, containers solely attached to an internal network will be unable to resolve names using the upstream resolver, as the container itself is unable to communicate with that nameserver. Only the names of containers also attached to the internal network are able to be resolved.\n\nMany systems run a local forwarding DNS resolver. As the host and any containers have separate loopback devices, a consequence of the design described above is that containers are unable to resolve names from the host's configured resolver, as they cannot reach these addresses on the host loopback device. To bridge this gap, and to allow containers to properly resolve names even when a local forwarding resolver is used on a loopback address, `dockerd` detects this scenario and instead forward DNS requests from the host namework namespace. The loopback resolver then forwards the requests to its configured upstream resolvers, as expected.\n\nBecause `dockerd` forwards DNS requests to the host loopback device, bypassing the container network namespace's normal routing semantics entirely, internal networks can unexpectedly forward DNS requests to an external nameserver. By registering a domain for which they control the authoritative nameservers, an attacker could arrange for a compromised container to exfiltrate data by encoding it in DNS queries that will eventually be answered by their nameservers.\n\nDocker Desktop is not affected, as Docker Desktop always runs an internal resolver on a RFC 1918 address.\n\nMoby releases 26.0.0, 25.0.4, and 23.0.11 are patched to prevent forwarding any DNS requests from internal networks. As a workaround, run containers intended to be solely attached to internal networks with a custom upstream address, which will force all upstream DNS queries to be resolved from the container's network namespace.","ecosystems":["Go","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Micro 5.5","SUSE:Linux Enterprise Module for Containers 15 SP6","SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","openSUSE:Leap 15.6","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":"External DNS requests from 'internal' networks could lead to data exfiltration","id":"CVE-2024-29018","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"information_disclosure","year":"2024"},"n_packages":16,"n_references":2,"next":{"headline":"ESPHome vulnerable to Authentication bypass via Cross site request forgery","id":"CVE-2024-29019"},"packages":[{"ecosystem":"Go","fixed":["23.0.11"],"introduced":["0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"Go","fixed":["23.0.11"],"introduced":["0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"Go","fixed":["25.0.5"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"Go","fixed":["25.0.5"],"introduced":["25.0.0"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"Go","fixed":["25.0.5+incompatible","26.0.0-rc3+incompatible"],"introduced":["25.0.0+incompatible","26.0.0-rc1+incompatible"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GO-2024-2659"},{"ecosystem":"Go","fixed":["26.0.0-rc3"],"introduced":["26.0.0-rc1"],"last_affected":[],"package":"github.com/docker/docker","purl":null,"source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"Go","fixed":["26.0.0-rc3"],"introduced":["26.0.0-rc1"],"last_affected":[],"package":"github.com/docker/docker","purl":"pkg:golang/github.com/docker/docker","source":"GHSA-mq39-4gv4-mvpx"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.1","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.1","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.2","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.2","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.3","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.3","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.4","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.4","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Micro 5.5","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Micro%205.5","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Containers 15 SP6","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Containers%2015%20SP6","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5","fixed":["27.5.1_ce-98.123.1"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/suse/docker\u0026distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5","source":"SUSE-SU-2025:0992-1"},{"ecosystem":"openSUSE:Leap 15.6","fixed":["27.5.1_ce-150000.215.3"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/opensuse/docker\u0026distro=openSUSE%20Leap%2015.6","source":"SUSE-SU-2025:0776-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["27.4.1_ce-12.1"],"introduced":["0"],"last_affected":[],"package":"docker","purl":"pkg:rpm/opensuse/docker\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:14597-1"}],"prev":{"headline":"Privilege escalation in Intel(R) VTune(TM) Profiler software","id":"CVE-2024-29015"},"products":["moby"],"published":"2024-03-20","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":"moby/moby's dockerd daemon encrypted overlay network may be unauthenticated","id":"CVE-2023-28840","kev_date_added":null,"published":"2023-04-04"},{"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":"SUSE"},{"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":"total"},"state":"PUBLISHED","updated":"2024-08-13","vendors":["moby"]},"summary":"Containers on internal networks can exfiltrate data via DNS requests forwarded by the host resolver, bypassing network isolation restrictions.","url":"https://insights.sbomify.com/CVE-2024-29018/"}