CVE-2009-3695:
Django Regex Algorithmic Complexity Causes Denial of Service
7.5
CVSS ScoreBasic Information
CVE ID
GHSA ID
EPSS Score
-
CWE
Published
5/2/2022
Updated
9/16/2024
KEV Status
No
Technology
Python
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
Django | pip | >= 1.0, < 1.0.4 | 1.0.4 |
Django | pip | >= 1.1, < 1.1.1 | 1.1.1 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from inefficient regular expressions in Django's EmailField and URLField validation. The commit diff shows direct modifications to these regex patterns (email_re and url_re) in fields.py, replacing the backtracking-prone patterns. The CVE description explicitly identifies these fields as attack vectors, and the added test cases in fields.py confirm the exploit scenarios. The regex changes specifically limit repetition quantifiers and domain label lengths to prevent catastrophic backtracking.