Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. dbt-core
  4. ›
  5. CVE-2024-36105

CVE-2024-36105: dbt allows Binding to an Unrestricted IP Address via socketsocket

May 28, 2024

Binding to INADDR_ANY (0.0.0.0) or IN6ADDR_ANY (::) exposes an application on all network interfaces, increasing the risk of unauthorized access.

While doing some static analysis and code inspection, I found the following code binding a socket to INADDR_ANY by passing "" as the address. This effectively binds to any network interface on the local system, not just localhost (127.0.0.1).

References

  • cwe.mitre.org/data/definitions/1327.html
  • docs.python.org/3/library/socket.html
  • docs.securesauce.dev/rules/PY030
  • github.com/advisories/GHSA-pmrx-695r-4349
  • github.com/dbt-labs/dbt-core
  • github.com/dbt-labs/dbt-core/blob/main/core/dbt/task/docs/serve.py
  • github.com/dbt-labs/dbt-core/commit/0c08d7a19ad1740be3cb0b2e6d9d64f6537176f7
  • github.com/dbt-labs/dbt-core/issues/10209
  • github.com/dbt-labs/dbt-core/pull/10208
  • github.com/dbt-labs/dbt-core/releases/tag/v1.6.15
  • github.com/dbt-labs/dbt-core/releases/tag/v1.7.15
  • github.com/dbt-labs/dbt-core/releases/tag/v1.8.1
  • github.com/dbt-labs/dbt-core/security/advisories/GHSA-pmrx-695r-4349
  • nvd.nist.gov/vuln/detail/CVE-2024-36105

Code Behaviors & Features

Detect and mitigate CVE-2024-36105 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.6.15, all versions starting from 1.7.0 before 1.7.15, all versions starting from 1.8.0 before 1.8.1, version 1.8.0

Fixed versions

  • 1.6.15
  • 1.7.15
  • 1.8.1

Solution

Upgrade to versions 1.6.15, 1.7.15, 1.8.1 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-1327: Binding to an Unrestricted IP Address

Source file

pypi/dbt-core/CVE-2024-36105.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.