Skip to content
OpenAdvisories
High · 7.5 CVE-2009-3695 EUVD-2009-0004GHSA-p6m5-h7pp-v2x5PYSEC-2009-4

Django Regex Algorithmic Complexity Causes Denial of Service

Published Oct 13, 2009 · Updated Aug 7, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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

EcosystemPackageAffectedFixedRecord
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

References