dbt-redshift is vulnerable to Regular Expression Denial of Service (ReDoS)
77
High Risk
The dbt-redshift adapter calls sqlparse.split() on every executed statement inside its add_query() connection path. It pins sqlparse>=0.5.0,<0.6.0, holding the parser on a version whose lexer is affected by an upstream ReDoS issue, so crafted SQL containing pathological dollar-quoted literals or multiline-comment patterns drives the tokenizer into super-linear regex backtracking. Processing such input through any query path such as run, build, test, seed, snapshot, or hooks consumes unbounded CPU and can hang the invocation with no length limit or timeout. The fix relaxes the sqlparse upper bound so the patched, ReDoS-resistant lexer is used.
You are affected if you are using a version that falls within the vulnerable range and untrusted or externally influenced SQL can reach query execution, for example models, seeds, hooks, or package dependencies contributed by parties you do not fully trust.
dbt-redshift is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 1.5.0 - 1.11.0.
Upgrade the dbt-redshift library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant