Description
The authentication framework (django.contrib.auth) in Django 1.4.x before 1.4.8, 1.5.x before 1.5.4, and 1.6.x before 1.6 beta 4 allows remote attackers to cause a denial of service (CPU consumption) via a long password which is then hashed.
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.5.4-1 | — |
| Debian 13 | python-django | 1.5.4-1 | — |
| Debian 12 | python-django | 1.5.4-1 | — |
| Debian 7 | python-django | 1.4.5-1+deb7u4 | DSA-2758-1 |
| Debian 6.0 | python-django | 1.2.3-3+squeeze8 | DSA-2758-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 1.4, < 1.4.8 | 1.4.8 | GHSA-4c42-4rxm-x6qf |
| PyPI | django | >= 1.5, < 1.5.4 | 1.5.4 | GHSA-4c42-4rxm-x6qf |
| PyPI | django | >= 1.4, < 1.4.8 · >= 1.5, < 1.5.4 | 1.4.8, 1.5.4 | PYSEC-2013-18 |
Advisories 1
- DSA-2758-1 python-django - denial of service Debian Security (DSA / DLA) · Mar 9, 2026
References
- DSA-2758 vendor-advisory
- [django-developers] 20130914 Set a reasonable upper bound on password length mailing-list
- openSUSE-SU-2013:1541 vendor-advisory
- https://www.djangoproject.com/weblog/2013/sep/15/security/
- openSUSE-SU-2013:1685 vendor-advisory