Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | python-django | 1.1.1-1 | — |
| Debian 13 | python-django | 1.1.1-1 | — |
| Debian 12 | python-django | 1.1.1-1 | — |
| Debian 5.0 | python-django | 1.0.2-1+lenny2 | DSA-1905-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.0, < 1.0.4 | 1.0.4 | GHSA-p6m5-h7pp-v2x5 |
| PyPI | django | >= 1.1, < 1.1.1 | 1.1.1 | GHSA-p6m5-h7pp-v2x5 |
| PyPI | django | >= 1.0, < 1.0.4 · >= 1.1, < 1.1.1 | 1.0.4, 1.1.1 | PYSEC-2009-4 |
Advisories 1
- DSA-1905-1 python-django - denial of service Debian Security (DSA / DLA) · Mar 9, 2026
References
- 36655 vdb-entry
- django-emailfield-urlfield-dos(53727) vdb-entry
- http://www.djangoproject.com/weblog/2009/oct/09/security/
- 36948 third-party-advisory
- 36968 third-party-advisory
- DSA-1905 vendor-advisory
- http://groups.google.com/group/django-users/browse_thread/thread/15df9e45118dfc51/
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=550457
- [oss-security] 20091013 Re: Duplicate CVE assignment notification [was: CVE id request: django] mailing-list
- ADV-2009-2871 vdb-entry