GitHub Advisory Database
GHSA-p6m5-h7pp-v2x5
Django Regex Algorithmic Complexity Causes Denial of Service
Details
Algorithmic complexity vulnerability in the forms library in Django 1.0 before 1.0.4 and 1.1 before 1.1.1 allows remote attackers to cause a denial of service (CPU consumption) via a crafted (1) EmailField (email address) or (2) URLField (URL) that triggers a large amount of backtracking in a regular expression.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | django | From 1.0 before 1.0.4 (fixed in 1.0.4) |
| PyPI | django | From 1.1 before 1.1.1 (fixed in 1.1.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2009-3695
- https://github.com/django/django/commit/594a28a9044120bed58671dde8a805c9e0f6c79a
- https://github.com/django/django/commit/e3e992e18b368fcd56aabafc1b5bf80a6e11b495
- https://exchange.xforce.ibmcloud.com/vulnerabilities/53727
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2009-4.yaml
- https://web.archive.org/web/20091013093057/http://secunia.com/advisories/36968
- https://web.archive.org/web/20091017070244/http://secunia.com/advisories/36948
- https://web.archive.org/web/20200228171918/http://www.securityfocus.com/bid/36655
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550457
- http://groups.google.com/group/django-users/browse_thread/thread/15df9e45118dfc51
- http://www.debian.org/security/2009/dsa-1905
- http://www.djangoproject.com/weblog/2009/oct/09/security
- http://www.openwall.com/lists/oss-security/2009/10/13/6