CVE & CISA-KEV Catalog

CVE-2024-29018

MEDIUM
5.9
CVSS v3
NVD

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. When 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. Containers 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. In 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. When 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. As 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. Many 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. Because `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. Docker Desktop is not affected, as Docker Desktop always runs an internal resolver on a RFC 1918 address. Moby 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.

How to fix

Remediation Available
docker.ioDebian
Fixed in:26.1.4+dfsg1-9CVE-2024-29018
Fixed in:26.1.4+dfsg1-9CVE-2024-29018
rhmtc/openshift-migrationRocky
Fixed in:openvpn-rhel8@sha256:1e0cf80fab89615624cf7f9f62e72e161af4143ed1d6245db45f09ba8382dbc4_amd64RHSA-2024:7164
Fixed in:controller-rhel8@sha256:a4025dfcd79bcb22e2ab91e1bc027c200f9c2741ed2c3a576a64cb24084c584e_amd64RHSA-2024:7164
Fixed in:rhel8-operator@sha256:79c957509adaff575917d1e70ec25965a4230c0a2deb9cd9007089dfc3ec39cc_amd64RHSA-2024:7164
Fixed in:operator-bundle@sha256:9616b52c1d745b7bf37c0237a6cd2cde9a1d9e8dbfdb5e5cb49504805e706065_amd64RHSA-2024:7164
Fixed in:registry-rhel8@sha256:c7f229ac51306d667f9b766fb1a464686fa47eb06d5658dbe4977e25b4877b20_amd64RHSA-2024:7164
Fixed in:ui-rhel8@sha256:db4903f395697e2eb244a0251ec1a5f89b12434501cb56889f2af37770f95f58_amd64RHSA-2024:7164
rhmtc/openshift-migrationRed Hat / RHEL
Fixed in:controller-rhel8@sha256:a4025dfcd79bcb22e2ab91e1bc027c200f9c2741ed2c3a576a64cb24084c584e_amd64RHSA-2024:7164
Fixed in:openvpn-rhel8@sha256:1e0cf80fab89615624cf7f9f62e72e161af4143ed1d6245db45f09ba8382dbc4_amd64RHSA-2024:7164
Fixed in:rhel8-operator@sha256:79c957509adaff575917d1e70ec25965a4230c0a2deb9cd9007089dfc3ec39cc_amd64RHSA-2024:7164
Fixed in:operator-bundle@sha256:9616b52c1d745b7bf37c0237a6cd2cde9a1d9e8dbfdb5e5cb49504805e706065_amd64RHSA-2024:7164
Fixed in:registry-rhel8@sha256:c7f229ac51306d667f9b766fb1a464686fa47eb06d5658dbe4977e25b4877b20_amd64RHSA-2024:7164
Fixed in:ui-rhel8@sha256:db4903f395697e2eb244a0251ec1a5f89b12434501cb56889f2af37770f95f58_amd64RHSA-2024:7164
rhmtc/openshift-migration-hookRocky
Fixed in:runner-rhel8@sha256:419c11ecd25664d16f77aec6589c9fa183832947766f75575dfab4bc059fe876_amd64RHSA-2024:7164
rhmtc/openshift-migration-hookRed Hat / RHEL
Fixed in:runner-rhel8@sha256:419c11ecd25664d16f77aec6589c9fa183832947766f75575dfab4bc059fe876_amd64RHSA-2024:7164
rhmtc/openshift-migration-logRed Hat / RHEL
Fixed in:reader-rhel8@sha256:6886c4d68d7c6100b5eb7239ae8ce14871403a71ce69b35c42c0ce238b32ff87_amd64RHSA-2024:7164
rhmtc/openshift-migration-logRocky
Fixed in:reader-rhel8@sha256:6886c4d68d7c6100b5eb7239ae8ce14871403a71ce69b35c42c0ce238b32ff87_amd64RHSA-2024:7164
rhmtc/openshift-migration-mustRed Hat / RHEL
Fixed in:gather-rhel8@sha256:08bb8048bb9fc00ba84e846fce7ce3e37506fbadf077b487c1d3d2dd607b2277_amd64RHSA-2024:7164
rhmtc/openshift-migration-mustRocky
Fixed in:gather-rhel8@sha256:08bb8048bb9fc00ba84e846fce7ce3e37506fbadf077b487c1d3d2dd607b2277_amd64RHSA-2024:7164
rhmtc/openshift-migration-rsyncRocky
Fixed in:transfer-rhel8@sha256:b556472a46fbac2508b8f36b975c8fdb26a77a2fc8bd43b2667f9151bf1cbc3f_amd64RHSA-2024:7164
rhmtc/openshift-migration-rsyncRed Hat / RHEL
Fixed in:transfer-rhel8@sha256:b556472a46fbac2508b8f36b975c8fdb26a77a2fc8bd43b2667f9151bf1cbc3f_amd64RHSA-2024:7164
rhmtc/openshift-migration-velero-plugin-forRed Hat / RHEL
Fixed in:mtc-rhel8@sha256:8765eb907963a6677c1af44dee1168d635d243824396f73c829697b1582046e9_amd64RHSA-2024:7164
rhmtc/openshift-migration-velero-plugin-forRocky
Fixed in:mtc-rhel8@sha256:8765eb907963a6677c1af44dee1168d635d243824396f73c829697b1582046e9_amd64RHSA-2024:7164
docker.ioUbuntu
Fixed in:18.09.7-0ubuntu1~16.04.9+esm2USN-7161-2
Fixed in:20.10.21-0ubuntu1~18.04.3+esm1USN-7161-1
Fixed in:20.10.21-0ubuntu1~18.04.3+esm2USN-7161-2
Fixed in:26.1.3-0ubuntu1~20.04.1+esm1USN-7161-2
Fixed in:26.1.3-0ubuntu1~22.04.1+esm1USN-7161-2
Fixed in:26.1.3-0ubuntu1~24.04.1+esm1USN-7161-1
docker.io-appUbuntu
Fixed in:26.1.3-0ubuntu1~20.04.1+esm1USN-7161-2
Fixed in:26.1.3-0ubuntu1~22.04.1+esm1USN-7161-2
Fixed in:26.1.3-0ubuntu1~24.04.1+esm1USN-7161-1

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityHigh
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityNone
AvailabilityNone

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Exploit Intelligence

0.75%probability of exploitation in 30 days
50thpercentile

Moderate risk: more likely to be exploited than 50% of all known CVEs.

References

Vendor Advisory1
Issue Tracking1
Embed a live status badge for CVE-2024-29018
CVE-2024-29018 severity badge

Markdown

[![CVE-2024-29018](https://tridentstack.com/cve/badge/CVE-2024-29018.svg)](https://tridentstack.com/cve/CVE-2024-29018)

HTML

<a href="https://tridentstack.com/cve/CVE-2024-29018"><img src="https://tridentstack.com/cve/badge/CVE-2024-29018.svg" alt="CVE-2024-29018"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2025-04-09.