CVE-2025-67726: Python Parseparam Quadratic Dos

A quadratic time complexity (O(n^2)) vulnerability exists due to recalculating quote counts from the start of a string inside a loop. Since Python's `cgi` module was deprecated, this vulnerable pattern was often copied into third-party libraries. An attacker can cause a Denial of Service (DoS) by providing a maliciously crafted header parameter containing ma

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2025-67726-python-parseparam-quadratic-dos --engine opengrep

Description

A quadratic time complexity (O(n^2)) vulnerability exists due to recalculating quote counts from the start of a string inside a loop. Since Python's `cgi` module was deprecated, this vulnerable pattern was often copied into third-party libraries. An attacker can cause a Denial of Service (DoS) by providing a maliciously crafted header parameter containing ma