Description
In Django 3.2 before 3.2.20, 4 before 4.1.10, and 4.2 before 4.2.3, EmailValidator and URLValidator are subject to a potential ReDoS (regular expression denial of service) attack via a very large number of domain name labels of emails and URLs.
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 | 3:3.2.20-1 | — |
| Debian 13 | python-django | 3:3.2.20-1 | — |
| Debian 12 | python-django | 3:3.2.19-1+deb12u1 | DSA-5465-1 |
| Debian 11 | python-django | 2:2.2.28-1~deb11u2 | DSA-5465-1 |
| Debian 10 | python-django | 1:1.11.29-1+deb10u9 | DLA-3500-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 22.04 LTS | python-django | 2:3.2.12-2ubuntu1.7 | USN-6203-1 |
| Ubuntu 20.04 LTS | python-django | 2:2.2.12-1ubuntu0.18 | USN-6203-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 18.04 LTS | python-django | 1:1.11.11-1ubuntu1.21+esm1 | USN-6203-2 |
| Ubuntu Pro 16.04 LTS | python-django | No fix yet | — |
| Ubuntu Pro 14.04 LTS | python-django | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Satellite Utils 6 | foreman +1 | 3.5.1.23-1.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite Capsule 6 | foreman +1 | 3.5.1.23-1.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite Capsule 6 | puppet-agent | 7.26.0-3.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite Capsule 6 | puppetserver | 7.11.0-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite Capsule 6 | python-django +1 | 3.2.21-1.el8pc | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite Capsule 6 | python-future +1 | 0.18.3-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite Capsule 6 | python-gitpython +1 | 3.1.32-1.el8pc | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite Capsule 6 | python-pulp-ansible +1 | 1:0.16.0-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite Capsule 6 | python-requests +1 | 2.31.0-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite Capsule 6 | python-sqlparse +1 | 0.4.4-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite Capsule 6 | rubygem-rack | 2.2.7-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | foreman +12 | 3.5.1.23-1.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite 6 | foreman-redis | 3.7.0.9-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | puppet-agent | 7.26.0-3.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite 6 | puppetserver | 7.11.0-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | python-django +1 | 3.2.21-1.el8pc | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite 6 | python-future +1 | 0.18.3-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite 6 | python-gitpython +1 | 3.1.32-1.el8pc | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite 6 | python-pulp-ansible +1 | 1:0.16.0-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite 6 | python-requests +1 | 2.31.0-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite 6 | python-sqlparse +1 | 0.4.4-1.el8pc | RHSA-2023:6818 |
| Red Hat Satellite 6 | rubygem-actionpack +2 | 6.1.7.3-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | rubygem-git | 1.18.0-1.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
| Red Hat Satellite 6 | rubygem-globalid | 1.1.0-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | rubygem-kubeclient | 4.10.1-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | rubygem-rack | 2.2.7-1.el8sat | RHSA-2023:6818 |
| Red Hat Satellite 6 | yggdrasil-worker-forwarder | 0.0.3-1.el8sat | RHSA-2023:6818, RHSA-2023:5931 |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Rhui 4 | python-aiohttp +1 | 3.9.2-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-cryptography +1 | 41.0.6-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-django +1 | 4.2.11-1.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-ecdsa +1 | 0.18.0-4.el8ui | RHSA-2024:1878 |
| Red Hat Rhui 4 | python-jinja2 +1 | 3.1.3-1.el8ui | RHSA-2024:1878 |
| Red Hat OpenStack 17 | python-django +1 | 2.2.24-5.el9ost | RHSA-2024:0212 |
| Red Hat Ansible Automation Platform Inside 2 | python-cryptography +1 | 38.0.4-2.el9ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform Inside 2 | python39-cryptography +1 | 38.0.4-2.el8ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform Developer 2 | python-cryptography +1 | 38.0.4-2.el9ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform Developer 2 | python39-cryptography +1 | 38.0.4-2.el8ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | automation-controller +1 | 4.4.2-1.el8ap | RHSA-2023:4692 |
| Red Hat Ansible Automation Platform 2 | automation-eda-controller +2 | 1.0.1-1.el8ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | python-cryptography +1 | 38.0.4-2.el9ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | python-django +1 | 3.2.20-1.el9ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | python39-cryptography +1 | 38.0.4-2.el8ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | python39-django +1 | 3.2.20-1.el8ap | RHSA-2023:4693 |
| Red Hat Ansible Automation Platform 2 | python39-requests +1 | 2.31.0-1.el8ap | RHSA-2023:4693 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | python-Django | 2.2.28-bp155.7.3.1 | openSUSE-SU-2023:0178-1 |
| SUSE Package Hub 15 SP5 | python-Django1 | 1.11.29-bp155.4.3.1 | openSUSE-SU-2023:0176-1 |
| SUSE Package Hub 15 SP4 | python-Django | 2.2.28-bp154.2.12.1 | openSUSE-SU-2023:0174-1 |
| SUSE Package Hub 15 SP4 | python-Django1 | 1.11.29-bp154.2.6.1 | openSUSE-SU-2023:0177-1 |
| SUSE OpenStack Cloud Crowbar 9 | python-Django1 | 1.11.29-3.47.1 | SUSE-SU-2023:3202-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE OpenStack Cloud Crowbar 8 | python-Django | 1.11.29-3.48.1 | SUSE-SU-2023:3167-1 |
| SUSE OpenStack Cloud 9 | python-Django1 | 1.11.29-3.47.1 | SUSE-SU-2023:3202-1 |
| SUSE OpenStack Cloud 8 | python-Django | 1.11.29-3.48.1 | SUSE-SU-2023:3167-1 |
| SUSE HPE Helion OpenStack 8 | python-Django | 1.11.29-3.48.1 | SUSE-SU-2023:3167-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 4.2.3-1.1 | openSUSE-SU-2026:11248-1, openSUSE-SU-2024:13044-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.14-1.1 | openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14208-1 |
| openSUSE Tumbleweed | python-Django5 | 5.2.16-1.1 | openSUSE-SU-2026:11270-1 |
| openSUSE Tumbleweed | python-Django6 | 6.0-1.1 | openSUSE-SU-2026:10005-1 |
| openSUSE Leap 15.5 | python-Django | 2.0.7-150000.1.11.1 | openSUSE-SU-2023:0178-1, SUSE-SU-2023:2839-1 |
| openSUSE Leap 15.5 | python-Django1 | 1.11.29-bp155.4.3.1 | openSUSE-SU-2023:0176-1 |
| openSUSE Leap 15.4 | python-Django | 2.2.28-bp154.2.12.1 | openSUSE-SU-2023:0174-1 |
| openSUSE Leap 15.4 | python-Django1 | 1.11.29-bp154.2.6.1 | openSUSE-SU-2023:0177-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 3.2a1, < 3.2.20 | 3.2.20 | GHSA-jh3w-4vvf-mjgr |
| PyPI | django | >= 4.0a1, < 4.1.10 | 4.1.10 | GHSA-jh3w-4vvf-mjgr |
| PyPI | django | >= 4.2a1, < 4.2.3 | 4.2.3 | GHSA-jh3w-4vvf-mjgr |
| PyPI | django | >= 4.2, < 4.2.3 · >= 4.0, < 4.1.10 · >= 3.2, < 3.2.20 | 4.2.3, 4.1.10, 3.2.20 | PYSEC-2023-100 |
Advisories 25
- RHSA-2023:6818 Red Hat Security Advisory: Satellite 6.14 security and bug fix update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2023:5931 Red Hat Security Advisory: Satellite 6.13.5 Async Security Update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2024:1878 Red Hat Security Advisory: RHUI 4.8 Release - Security Updates, Bug Fixes, and Enhancements Red Hat Security Advisories (RHSA) · Sep 9, 2026
- RHSA-2024:0212 Red Hat Security Advisory: Red Hat OpenStack Platform 17.1 (python-django) security update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2023:4693 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- RHSA-2023:4692 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Aug 20, 2026
- openSUSE-SU-2026:11270-1 python313-Django5-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 15, 2026
- WID-SEC-2023-1629 Django: Schwachstelle ermöglicht Denial of Service BSI CERT-Bund (WID) · Jul 13, 2026
- openSUSE-SU-2026:11248-1 python313-Django-5.2.16-1.1 on GA media SUSE / openSUSE Security Updates · Jul 11, 2026
- openSUSE-SU-2026:11235-1 python313-Django4-4.2.30-4.1 on GA media SUSE / openSUSE Security Updates · Jul 10, 2026
- WID-SEC-2023-2917 Xerox FreeFlow Print Server: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 30, 2026
- USN-6203-2 python-django vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- USN-6203-1 python-django vulnerability Ubuntu Security Notices (USN) · Apr 27, 2026
- openSUSE-SU-2026:10005-1 python312-Django6-6.0-1.1 on GA media SUSE / openSUSE Security Updates · Mar 23, 2026
- DSA-5465-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-3500-1 python-django - security update Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2023:0174-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0176-1 Security update for python-Django1 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13044-1 python310-Django-4.2.3-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:3202-1 Security update for python-Django1 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:3167-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0178-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2023:0177-1 Security update for python-Django1 SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14208-1 python310-Django4-4.2.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2023:2839-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://groups.google.com/forum/#%21forum/django-announce
- https://docs.djangoproject.com/en/4.2/releases/security/
- https://www.djangoproject.com/weblog/2023/jul/03/security-releases/
- [debian-lts-announce] 20230719 [SECURITY] [DLA 3500-1] python-django security update mailing-list
- DSA-5465 vendor-advisory
- FEDORA-2023-cc023fabb7 vendor-advisory
- FEDORA-2023-9d36d373f1 vendor-advisory
- FEDORA-2024-84fbbbb914 vendor-advisory