CVE-2024-36105
dbt allows Binding to an Unrestricted IP Address via socketsocket
Check your servers for CVE-2024-36105
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-36105 affects dbt-core, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
dbt enables data analysts and engineers to transform their data using the same practices that software engineers use to build applications. Prior to versions 1.6.15, 1.7.15, and 1.8.1, Binding to `INADDR_ANY (0.0.0.0)` or `IN6ADDR_ANY (::)` exposes an application on all network interfaces, increasing the risk of unauthorized access. As stated in the Python docs, a special form for address is accepted instead of a host address: `''` represents `INADDR_ANY`, equivalent to `"0.0.0.0"`. On systems with IPv6, '' represents `IN6ADDR_ANY`, which is equivalent to `"::"`. A user who serves docs on an unsecured public network, may unknowingly be hosting an unsecured (http) web site for any remote user/system to access on the same network. The issue has has been mitigated in dbt-core v1.6.15, dbt-core v1.7.15, and dbt-core v1.8.1 by binding to localhost explicitly by default in `dbt docs serve`.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality low, integrity none, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.71%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 54.7% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 21 Aug 2024):
- Exploitation
- poc: a proof of concept is public
- Automatable
- yes: an attacker can automate the attack across many targets
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-1327 Binding to an Unrestricted IP Address
Affected products
As the CNA lists them.
Is my server affected?
Find the installed version of dbt-core and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i dbt-core
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2024-36105 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2024-36105RHEL, Rocky, Alma, Fedora
rpm -q dbt-core
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2024-36105Alpine
apk list --installed | grep -i dbt-coreWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-36105
trivy image --scanners vuln IMAGE | grep CVE-2024-36105
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
Other references
- https://github.com/dbt-labs/dbt-core/issues/10209 github.com
- https://github.com/dbt-labs/dbt-core/pull/10208 github.com
- https://github.com/dbt-labs/dbt-core/commit/0c08d7a19ad1740be3cb0b2e6d9d64f6537176f7 github.com
- https://cwe.mitre.org/data/definitions/1327.html cwe.mitre.org
- https://docs.python.org/3/library/socket.html#socket-families docs.python.org
- https://docs.securesauce.dev/rules/PY030 docs.securesauce.dev
- https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/task/docs/serve.py#L23C38-L23C39 github.com
- https://github.com/dbt-labs/dbt-core/releases/tag/v1.6.15 github.com
- https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.15 github.com
- https://github.com/dbt-labs/dbt-core/releases/tag/v1.8.1 github.com
Source: the record CVE-2024-36105 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse