Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. sqlparse
  4. ›
  5. GHSA-2m57-hf25-phgg

GHSA-2m57-hf25-phgg: sqlparse parsing heavily nested list leads to Denial of Service

April 15, 2024

Passing a heavily nested list to sqlparse.parse() leads to a Denial of Service due to RecursionError.

References

  • github.com/advisories/GHSA-2m57-hf25-phgg
  • github.com/andialbrecht/sqlparse
  • github.com/andialbrecht/sqlparse/commit/b4a39d9850969b4e1d6940d32094ee0b42a2cf03
  • github.com/andialbrecht/sqlparse/security/advisories/GHSA-2m57-hf25-phgg

Code Behaviors & Features

Detect and mitigate GHSA-2m57-hf25-phgg 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 0.5.0

Fixed versions

  • 0.5.0

Solution

Upgrade to version 0.5.0 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

pypi/sqlparse/GHSA-2m57-hf25-phgg.yml

Spotted a mistake? Edit the file on GitLab.

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

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