Description
An issue was discovered in Django 5.0 before 5.0.8 and 4.2 before 4.2.15. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.
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:4.2.15-1 | — |
| Debian 13 | python-django | 3:4.2.15-1 | — |
| Debian 12 | python-django | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | python-django | 3:4.2.11-1ubuntu1.2 | USN-6946-1 |
| Ubuntu 22.04 LTS | python-django | 2:3.2.12-2ubuntu1.13 | USN-6946-1 |
| Ubuntu 20.04 LTS | python-django | 2:2.2.12-1ubuntu0.24 | USN-6946-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+esm6 | USN-6946-1 |
| 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 Rhui 4 | python-aiohttp +1 | 3.9.4-1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-cryptography +1 | 42.0.8-1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-django +1 | 4.2.15-1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-grpcio +1 | 1.65.4-1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-gunicorn +1 | 22.0.0-1.0.1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-jinja2 +1 | 3.1.4-1.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-requests +1 | 2.32.3-2.el8ui | RHSA-2025:1335 |
| Red Hat Rhui 4 | python-sqlparse +1 | 0.5.0-1.el8ui | RHSA-2025:1335 |
| Red Hat Ansible Automation Platform Inside 2 | python-zipp +1 | 3.19.2-1.el9ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform Inside 2 | python39-zipp | 3.19.2-1.el8ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform Developer 2 | automation-controller +1 | 4.5.10-1.el8ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform Developer 2 | python-zipp +1 | 3.19.2-1.el9ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform Developer 2 | python39-zipp | 3.19.2-1.el8ap | RHSA-2024:6428 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Ansible Automation Platform 2 | automation-controller +4 | 4.5.10-1.el8ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python-django +1 | 4.2.15-1.el9ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python-grpcio +1 | 1.58.3-1.el9ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python-zipp +1 | 3.19.2-1.el9ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python39-django +1 | 4.2.15-1.el8ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python39-grpcio +1 | 1.58.3-1.el8ap | RHSA-2024:6428 |
| Red Hat Ansible Automation Platform 2 | python39-zipp | 3.19.2-1.el8ap | RHSA-2024:6428 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP6 | python-Django | 4.2.11-150600.3.6.1 | SUSE-SU-2024:2816-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP5 | python-Django | 2.2.28-bp155.7.15.1 | openSUSE-SU-2024:0272-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python-Django | 5.0.8-1.1 | openSUSE-SU-2026:11248-1, openSUSE-SU-2024:14247-1 |
| openSUSE Tumbleweed | python-Django4 | 4.2.15-1.1 | openSUSE-SU-2026:11235-1, openSUSE-SU-2024:14248-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.6 | python-Django | 4.2.11-150600.3.6.1 | SUSE-SU-2024:2816-1 |
| openSUSE Leap 15.5 | python-Django | 2.0.7-150000.1.27.1 | openSUSE-SU-2024:0272-1, SUSE-SU-2024:2861-1, SUSE-SU-2024:2817-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | py3-django | 4.2.16-r0 | — |
| Alpine v3.23 | py3-django | 4.2.16-r0 | — |
| Alpine v3.22 | py3-django | 4.2.16-r0 | — |
| Alpine v3.21 | py3-django | 4.2.16-r0 | — |
| Alpine v3.20 | py3-django | 4.2.16-r0 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | django | >= 5.0, < 5.0.8 | 5.0.8 | GHSA-795c-9xpc-xw6g |
| PyPI | django | >= 4.2, < 4.2.15 | 4.2.15 | GHSA-795c-9xpc-xw6g |
| PyPI | django | >= 5.0, < 5.0.8 · >= 4.2, < 4.2.15 | 5.0.8, 4.2.15 | PYSEC-2024-68 |
Advisories 14
- RHSA-2025:1335 Red Hat Security Advisory: RHUI 4.11 security, bugfix, and enhancement update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2024:6428 Red Hat Security Advisory: Red Hat Ansible Automation Platform 2.4 Product Security and Bug Fix Update Red Hat Security Advisories (RHSA) · Oct 17, 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-2024-1775 Django: Mehrere Schwachstellen 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
- USN-6946-1 python-django vulnerabilities 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
- SUSE-SU-2024:2817-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14247-1 python310-Django-5.0.8-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2816-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2024:2861-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:0272-1 Security update for python-Django SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:14248-1 python310-Django4-4.2.15-1.1 on GA media SUSE / openSUSE Security Updates · May 7, 2025