CVE-2024-53907 json
Django denial-of-service in django.utils.html.strip_tags()
published 2024-12-06 23 mo ago modified 2026-09-10 59 d ago also BIT-django-2024-53907 , EUVD-2024-0048 , GHSA-8498-2h75-472j , PYSEC-2024-156
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.4%
- EPSS 1.4% chance of exploitation in 30 days, percentile 72%
- public exploits
- 0
- none known
Summary
An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before 4.2.17. The strip_tags() method and striptags template filter are subject to a potential denial-of-service attack via certain inputs containing large sequences of nested incomplete HTML entities.
Patch / fix
- pypi django 4.2.17, 5.0.10, 5.1.4
- bitnami django 4.2.17, 5.1.4
- djangoproject django 4.2.17, 5.0.10, 5.1.4
- python-django Debian 12 3:3.2.25-0+deb12u1
- python-django Debian 14, Debian 13 3:4.2.17-1
debian advisories DEBIAN-CVE-2024-53907
- python-django Ubuntu 20.04 LTS 2:2.2.12-1ubuntu0.26
- python-django Ubuntu 22.04 LTS 2:3.2.12-2ubuntu1.15
- python-django Ubuntu 24.04 LTS 3:4.2.11-1ubuntu1.4
- python-django Ubuntu Pro 16.04 LTS 1.8.7-1ubuntu5.15+esm8
- python-django Ubuntu Pro 18.04 LTS 1:1.11.11-1ubuntu1.21+esm8
ubuntu advisories UBUNTU-CVE-2024-53907
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- python3.11-django ansible automation platform developer 2.5, ansible automation platform 2.5 4.2.18-1.el8ap
- python3.11-django ansible automation platform developer 2.5, ansible automation platform 2.5 4.2.18-1.el9ap
- python3.11-jinja2 ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 3.1.5-1.el8ap
- python3.11-jinja2 ansible automation platform inside 2.5, ansible automation platform developer 2.5, ansible automation platform 2.5 3.1.5-1.el9ap
- automation-controller-venv-tower ansible automation platform 2.5 4.6.7-1.el8ap
- automation-controller-venv-tower ansible automation platform 2.5 4.6.7-1.el9ap
- python3.11-aiohttp ansible automation platform 2.5 3.10.11-1.el8ap
- python3.11-aiohttp ansible automation platform 2.5 3.10.11-1.el9ap
red hat advisories RHSA-2025:0777RHSA-2025:0340
- python-Django SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 4.2.11-150600.3.12.1
suse advisories SUSE-SU-2024:4285-1
- python-Django5 openSUSE Tumbleweed 5.2.16-1.1
- python-Django6 openSUSE Tumbleweed 6.0-1.1
- python-Django Package Hub 15 SP5, openSUSE Leap 15.5 2.2.28-bp155.7.21.1
- python-Django openSUSE Tumbleweed 5.1.4-1.1
- python-Django4 openSUSE Tumbleweed 4.2.17-1.1
opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:0408-1openSUSE-SU-2024:14568-1openSUSE-SU-2024:14565-1
- py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +1 more 4.2.20-r0
alpine advisories ALPINE-CVE-2024-53907
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-53907 updated cvss 6.5
django: Potential denial-of-service in django.utils.html.strip_tags()
-
Red Hat Ansible Automation Platform 1.2 python3.11-djangoaffected: workaround, no fix available
-
Red Hat Ansible Automation Platform 2 python3.11-django, ansible-automation-platform-25/lightspeed-rhel8, ansible-automation-platform-25/platform-resource-runner-rhel9affected: workaround, no fix available, no fix planned “Will not fix”
-
Red Hat Discovery 1 for RHEL 9 discovery/discovery-ui-rhel9 1.12.0-1, discovery/discovery-server-rhel9 1.12.0-1fixed: vendor fix RHSA-2025:1249
-
Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/hub-rhel8 4.9.2-34, ansible-automation-platform-24/ee-29-rhel8 1.0.0-432, ansible-automation-platform-24/hub-web-rhel8 4.9.2-32, ansible-automation-platform-24/controller-rhel8 4.5.15-2, ansible-automation-platform-24/de-minimal-rhel8 1.0.7-53, ansible-automation-platform-24/ee-minimal-rhel8 1.0.0-789, +24 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-automation-platform-24/de-minimal-rhel9 1.0.7-54, ansible-automation-platform-24/ee-minimal-rhel9 1.0.0-788, ansible-automation-platform-24/de-supported-rhel9 1.0.7-62, ansible-automation-platform-24/ee-supported-rhel9 1.0.0-860, ansible-automation-platform-24/ansible-builder-rhel9 3.0.1-110, ansible-automation-platform-24/ansible-python-base-rhel9 1.0.0-682, +1 morefixed: vendor fix RHSA-2024:11144
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 python3.11-django 4.2.18-1.el8ap, automation-controller-venv-tower 4.6.6-1.el8ap, ansible-automation-platform-25/hub-rhel8 4.10.1-17, ansible-automation-platform-25/receptor-rhel8 1.5.1-6, ansible-automation-platform-25/hub-web-rhel8 4.10.1-14, ansible-automation-platform-25/de-minimal-rhel8 1.1.2-7, +28 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 python3.11-django 4.2.18-1.el9ap, automation-controller-venv-tower 4.6.6-1.el9ap, ansible-automation-platform-25/de-minimal-rhel9 1.1.2-6, ansible-automation-platform-25/de-supported-rhel9 1.1.2-5, ansible-automation-platform-25/ee-minimal-rhel9 1.0.0-790, ansible-automation-platform-25/ee-supported-rhel9 1.0.0-861, +4 morefixed: vendor fix RHSA-2024:11146
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-24/de-supported-rhel8, ansible-automation-platform-24/ee-dellemc-openmanage-rhel8not affected: component not present
-
Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-core 2.16.14-2.el8ap, ansible-test 2.16.14-2.el8ap, python3.11-yarl 1.13.1-1.el8ap, python3.11-aiodns 3.2.0-1.el8ap, python3.11-jinja2 3.1.5-1.el8ap, python3.11-aiohttp 3.10.11-1.el8ap, +33 more Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-core 2.16.14-2.el9ap, ansible-test 2.16.14-2.el9ap, python3.11-yarl 1.13.1-1.el9ap, python3.11-aiodns 3.2.0-1.el9ap, python3.11-jinja2 3.1.5-1.el9ap, python3.11-aiohttp 3.10.11-1.el9ap, +33 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
1.39% chance of exploitation in the next 30 days, higher than 72% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | django | >=5.1.0, <5.1.4 >=4.2.0, <4.2.17 >=5.0.0, <5.0.10 >=5.1, <5.1.4 >=5.0, <5.0.10 >=4.2, <4.2.17 |
5.1.4 4.2.17 5.0.10 |
| bitnami | django | >=4.2.0, <4.2.17 >=5.0.0, <5.1.4 |
4.2.17 5.1.4 |
Affected products
- djangoproject django
Classification
- Weakness
-
- CWE-770 Allocation of Resources Without Limits or Throttling
- Technology feeds
References
-
docs.djangoproject.com
/en/dev/releases/security/
patch, vendor-advisory, advisory, web
-
groups.google.com
/g/django-announce
web, release-notes, article
-
openwall.com
/lists/oss-security/2024/12/04/3
web, mailing-list, third-party-advisory, advisory
-
lists.debian.org
/debian-lts-announce/2024/12/msg00028.html
web, mailing-list, third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2024-53907
advisory, web
-
docs.djangoproject.com
/en/dev/releases/security
web
-
github.com
/django/django
package
-
github.com
/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-156.yaml
web
-
djangoproject.com
/weblog/2024/dec/04/security-releases
web
-
github.com
/advisories/GHSA-8498-2h75-472j
advisory
Sources
- CVE List CVE-2024-53907
- GitHub Advisory GHSA-8498-2h75-472j
- NVD CVE-2024-53907
- OSV BIT-django-2024-53907
- OSV PYSEC-2024-156
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.