PT-2024-2427 · Docker+7 · Moby+8

Cibofo

·

Published

2024-03-19

·

Updated

2026-03-27

·

CVE-2024-29018

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Moby versions prior to 23.0.11 Moby versions prior to 25.0.4 Moby versions prior to 26.0.0
Description The issue is related to the networking implementation in Moby, which allows for the creation of custom networks with their own IP address range and gateway. When a container is attached to an internal network, it is precluded from communicating with any networks the host has access to. However, due to the design of the dockerd service, internal networks can unexpectedly forward DNS requests to an external nameserver. This can be exploited by an attacker to exfiltrate data from a compromised container by encoding it in DNS queries. The --internal flag is used to designate a network as internal, and the internal attribute in a docker-compose.yml file may also be used to mark a network as internal.
Recommendations For Moby versions prior to 23.0.11, update to version 23.0.11 or later to prevent forwarding DNS requests from internal networks. For Moby versions prior to 25.0.4, update to version 25.0.4 or later to prevent forwarding DNS requests from internal networks. For Moby versions prior to 26.0.0, update to version 26.0.0 or later to prevent forwarding DNS requests from internal networks. As a temporary 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.

Exploit

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2024-11151
ALT-PU-2024-11263
ALT-PU-2024-13162
ALT-PU-2024-4305
AZL-36900
AZL-40034
BDU:2024-02382
CVE-2024-29018
GHSA-MQ39-4GV4-MVPX
GO-2024-2659
MGASA-2025-0189
OESA-2024-1417
OESA-2024-1464
OESA-2024-1465
OESA-2024-1466
OESA-2024-1467
OESA-2024-1468
OPENSUSE-SU-2024:14597-1
OPENSUSE-SU-2024:14598-1
OPENSUSE-SU-2025_0226-1
OPENSUSE-SU-2025_0776-1
OPENSUSE-SU-2025_1062-1
SUSE-SU-2025:0226-1
SUSE-SU-2025:03540-1
SUSE-SU-2025:03545-1
SUSE-SU-2025:0776-1
SUSE-SU-2025:0992-1
SUSE-SU-2025:1062-1
SUSE-SU-2025:1102-1
SUSE-SU-2025:20205-1
SUSE-SU-2025:20259-1
SUSE-SU-2025_0226-1
SUSE-SU-2025_0776-1
SUSE-SU-2025_0992-1
SUSE-SU-2026:0972-1
SUSE-SU-2026:1118-1
USN-7161-1
USN-7161-2

Affected Products

Alt Linux
Astra Linux
Debian
Docker
Linuxmint
Moby
Red Os
Suse
Ubuntu