Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ GHSA-p72q-h37j-3hq7 — dbt-core

🟠 CVSS 8.0 — High ✅ No Known Exploit CWE-673 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

dbt uses a SQLparse version with a high vulnerability

Summary

Using a version of sqlparse that has a security vulnerability and no way to update in current version of dbt core. Snyk recommends using sqlparse==0.5 but this causes a conflict with dbt. Snyk states the issues is a recursion error: SNYK-PYTHON-SQLPARSE-6615674.

Details

Dependency conflict error message:

```sh

The conflict is caused by:

The user requested sqlparse==0.5

dbt-core 1.7.10 depends on sqlparse<0.5 and >=0.2.3

```

Resolution was to pin sqlparse >=0.5.0, <0.6.0 in dbt-core, patched in 1.6.13 and 1.7.13.

PoC

From Snyk:

```python

import sqlparse

sqlparse.parse('[' * 10000 + ']' * 10000)

```

Impact

Snyk classifies it as high 7.5/10.

Patches

The bug has been fixed in [dbt-core v1.6.13](https://github.com/dbt-labs/dbt-core/releases/tag/v1.6.13) and [dbt-core v1.7.13](https://github.com/dbt-labs/dbt-core/releases/tag/v1.7.13).

Mitigations

Bump dbt-core 1.6 and 1.7 dependencies to 1.6.13 and 1.7.13 respectively

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality none, integrity none, availability high.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: None.
  • Integrity impact: None.
  • Availability impact: High — total loss, or loss the attacker controls.

Weakness class

GHSA-p72q-h37j-3hq7 is classified as CWE-673: External Influence of Sphere Definition. The product does not prevent the definition of control spheres from external actors.

Affected software

GHSA-p72q-h37j-3hq7 is recorded against 1 package.

  • dbt-core (from 1.7.0 up to 1.7.13)

Timeline and source

Published on 22 April 2024 and last revised on 5 December 2024. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

github.com (Web)
github.com (Web)
github.com (Package)
security.snyk.io (Web)

Other advisories for this package

dbt-core has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-673: External Influence of Sphere Definition) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CWE CWE-673
Public Exploit ✅ No
Source OSV
Published 2024-04-22
Updated 2026-08-20
Modified 2024-12-05
Fix URL N/A

Affected Packages

Software From version Fixed in
dbt-core 1.7.0 1.7.13

Similar Threats

Site Security Check

Is dbt-core part of your stack?

GHSA-p72q-h37j-3hq7 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesGitHub AdvisoryGitHub Advisory Undated
✓