{"id":"CVE-2024-36105","aliases":["CVE-2024-36105","GHSA-pmrx-695r-4349","PYSEC-2026-1292"],"related":[],"kind":"vulnerability","state":"published","title":"dbt allows Binding to an Unrestricted IP Address via socketsocket","summary":"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`.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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`.","source":"cvelist"},{"lang":"en","text":"### Summary\n\nBinding to `INADDR_ANY (0.0.0.0)` or `IN6ADDR_ANY (::)` exposes an application on all network interfaces, increasing the risk of unauthorized access.\n\nWhile 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). \n\n### Details\n\nAs 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 `\"::\"`. \n\nhttps://github.com/dbt-labs/dbt-core/blob/main/core/dbt/task/docs/serve.py#L23C38-L23C39\n\nThe text around this code also imply the intention is to host docs only on localhost.\n\n### PoC\n\nTo recreate, run the docs ServeTask.run() to stand up the HTTP server.  Then run `netstat` to see what addresses this process is bound.\n\n### Impact\n\nA 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.\n\nFurther references:\nhttps://docs.python.org/3/library/socket.html#socket-families\nhttps://docs.securesauce.dev/rules/PY030\nhttps://cwe.mitre.org/data/definitions/1327.html\n\n### Patches\nThe issue has has been mitigated in [dbt-core v1.6.15](https://github.com/dbt-labs/dbt-core/releases/tag/v1.6.15), [dbt-core v1.7.15](https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.15), and [dbt-core v1.8.1](https://github.com/dbt-labs/dbt-core/releases/tag/v1.8.1) by binding to localhost explicitly by default in `dbt docs serve` (https://github.com/dbt-labs/dbt-core/issues/10209).","format":"markdown","source":"ghsa"},{"lang":"es","text":"dbt permite a los ingenieros y analistas de datos transformar sus datos utilizando las mismas prácticas que utilizan los ingenieros de software para crear aplicaciones. Antes de las versiones 1.6.15, 1.7.15 y 1.8.1, el enlace a `INADDR_ANY (0.0.0.0)` o `IN6ADDR_ANY (::)` expone una aplicación en todas las interfaces de red, lo que aumenta el riesgo de acceso no autorizado. Como se indica en los documentos de Python, se acepta una forma especial para la dirección en lugar de una dirección de host: `''` representa `INADDR_ANY`, equivalente a `\"0.0.0.0\"`. En sistemas con IPv6, '' representa `IN6ADDR_ANY`, que equivale a `\"::\"`. Un usuario que entrega documentos en una red pública no segura puede, sin saberlo, alojar un sitio web no seguro (http) al que cualquier usuario/sistema remoto pueda acceder en la misma red. El problema se ha mitigado en dbt-core v1.6.15, dbt-core v1.7.15 y dbt-core v1.8.1 vinculando explícitamente a localhost de forma predeterminada en \"dbt docsserve\".","source":"nvd"}],"published":"2024-05-27T17:17:39.875Z","modified":"2026-09-10T03:49:18.769Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-1327"],"affected":[{"ranges":[{"version":"< 1.6.15","status":"affected"},{"version":">= 1.7.0, < 1.7.15","status":"affected"},{"version":"= 1.8.0","status":"affected"}],"vendor":"dbt-labs","product":"dbt-core","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"1.6.15","status":"affected"},{"type":"custom","introduced":"1.7.0","fixed":"1.7.15","status":"affected"}],"vendor":"dbt-labs","product":"dbt-core","cpe":"cpe:2.3:a:dbt-labs:dbt-core:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"version":"1.8.0","status":"affected"}],"vendor":"dbt-labs","product":"dbt-core","cpe":"cpe:2.3:a:dbt-labs:dbt-core:1.8.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.15"}],"ecosystem":"PyPI","package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.7.0","status":"affected","fixed":"1.7.15"}],"ecosystem":"PyPI","package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"1.8.0","status":"affected","fixed":"1.8.1"}],"ecosystem":"PyPI","package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.6.15"},{"type":"ecosystem","introduced":"1.7.0","status":"affected","fixed":"1.7.15"},{"type":"ecosystem","introduced":"1.8.0","status":"affected","fixed":"1.8.1"}],"ecosystem":"PyPI","package":"dbt-core","purl":"pkg:pypi/dbt-core","source":"pysec"}],"references":[{"url":"https://github.com/dbt-labs/dbt-core/security/advisories/GHSA-pmrx-695r-4349","tags":["web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/issues/10209","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/pull/10208","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/commit/0c08d7a19ad1740be3cb0b2e6d9d64f6537176f7","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://cwe.mitre.org/data/definitions/1327.html","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.python.org/3/library/socket.html#socket-families","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.securesauce.dev/rules/PY030","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/blob/main/core/dbt/task/docs/serve.py#L23C38-L23C39","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/releases/tag/v1.6.15","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.15","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core/releases/tag/v1.8.1","tags":["web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36105","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/dbt-labs/dbt-core","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/dbt-core","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-pmrx-695r-4349","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2024-08-21T13:52:53.518Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-36105","url":"https://www.cve.org/CVERecord?id=CVE-2024-36105","licence":"CVE Terms of Use","modified":"2024-08-21T14:20:58.463Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pmrx-695r-4349","url":"https://github.com/advisories/GHSA-pmrx-695r-4349","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:18.769Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-36105","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-36105","licence":"Public domain","modified":"2026-06-17T07:36:06.907Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1292","url":"https://osv.dev/vulnerability/PYSEC-2026-1292","licence":"CC-BY-4.0","modified":"2026-07-07T17:46:33.764Z"}],"updatedAt":"2026-11-25T22:58:40.952Z","epss":{"score":0.0071,"percentile":0.54743,"date":"2026-12-01T12:00:22.000Z"}}