Improper Control of a Resource Through its Lifetime Affecting github.com/docker/docker/libnetwork package, versions <25.0.5>=26.0.0-rc1 <26.0.0-rc3


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMDOCKERDOCKERLIBNETWORK-6474507
  • published21 Mar 2024
  • disclosed20 Mar 2024
  • credityair zak

Introduced: 20 Mar 2024

CVE-2024-29018  (opens in a new tab)
CWE-669  (opens in a new tab)

How to fix?

Upgrade github.com/docker/docker/libnetwork to version 25.0.5, 26.0.0-rc3 or higher.

Overview

github.com/docker/docker/libnetwork is a package that provides a native Go implementation for connecting containers

Affected versions of this package are vulnerable to Improper Control of a Resource Through its Lifetime in allowing DNS requests from internal networks to be forwarded to an external nameserver, violating the documented expectation that the --internal option will "completely isolate" the internal network. An attacker in control of the authoritative nameserver for a domain could indirectly exfiltrate data through DNS queries made by a compromised container.

Workaround

This vulnerability can be avoided by running containers with a custom address for the --dns argument to docker run.

CVSS Scores

version 3.1