An issue was discovered in Django 5.1 before 5.1.4, 5.0 before 5.0.10, and 4.2 before…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 5 fixed, 2 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-770.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | 5.1.0 to before 5.1.4 | 5.1.4 | Patch available | GHSA-8498-2h75-472j |
| — | Django (PyPI) | 4.2.0 to before 4.2.17 | 4.2.17 | Patch available | GHSA-8498-2h75-472j |
| — | Django (PyPI) | 5.0.0 to before 5.0.10 | 5.0.10 | Patch available | GHSA-8498-2h75-472j |
| — | django (PyPI) | 5.1 to before 5.1.4 | 5.1.4 | Patch available | GHSA-8498-2h75-472j |
| — | django (PyPI) | 5.0 to before 5.0.10 | 5.0.10 | Patch available | GHSA-8498-2h75-472j |
| — | django (PyPI) | 4.2 to before 4.2.17 | 4.2.17 | Patch available | GHSA-8498-2h75-472j |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected 5.1.0 to before 5.1.4 Fixed in 5.1.4 Patch available GHSA-8498-2h75-472j
- Django (PyPI) Vendor— Affected 4.2.0 to before 4.2.17 Fixed in 4.2.17 Patch available GHSA-8498-2h75-472j
- Django (PyPI) Vendor— Affected 5.0.0 to before 5.0.10 Fixed in 5.0.10 Patch available GHSA-8498-2h75-472j
- django (PyPI) Vendor— Affected 5.1 to before 5.1.4 Fixed in 5.1.4 Patch available GHSA-8498-2h75-472j
- django (PyPI) Vendor— Affected 5.0 to before 5.0.10 Fixed in 5.0.10 Patch available GHSA-8498-2h75-472j
- django (PyPI) Vendor— Affected 4.2 to before 4.2.17 Fixed in 4.2.17 Patch available GHSA-8498-2h75-472j
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 4.2 to before 4.2.17; 5.0 to before 5.0.10; 5.1 to before 5.1.4 | Vulnerable | djangoproject |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 4.2 to before 4.2.17; 5.0 to before 5.0.10; 5.1 to before 5.1.4 Vulnerable ·djangoproject
Remediation
- Fix · GHSA-8498-2h75-472j Django (PyPI) Fixed in 5.1.4 Advisory →
- Fix · GHSA-8498-2h75-472j Django (PyPI) Fixed in 4.2.17 Advisory →
- Fix · GHSA-8498-2h75-472j Django (PyPI) Fixed in 5.0.10 Advisory →
- Fix · GHSA-8498-2h75-472j django (PyPI) Fixed in 5.1.4 Advisory →
- Fix · GHSA-8498-2h75-472j django (PyPI) Fixed in 5.0.10 Advisory →
- Fix · GHSA-8498-2h75-472j django (PyPI) Fixed in 4.2.17 Advisory →
Red Hat 5 advisories
- RHSA-2025:1249 Released 2025-02-10 · Red Hat rating Importantupdated discovery container images
- Discovery 1 for RHEL 9 discovery/discovery-server-rhel9, discovery/discovery-ui-rhel9
- RHSA-2025:0777 Released 2025-01-28 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-controller-venv-tower-4.6.7-1.el8ap, python3.11-django-4.2.18-1.el8ap, python3.11-jinja2-3.1.5-1.el8ap
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-controller-venv-tower-4.6.7-1.el9ap, python3.11-django-4.2.18-1.el9ap, python3.11-jinja2-3.1.5-1.el9ap
- RHSA-2025:0340 Released 2025-01-15 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-controller-venv-tower-4.6.6-1.el8ap, automation-gateway-server-2.5.20250115-1.el8ap, python3.11-aiohttp-3.10.11-1.el8ap
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-controller-venv-tower-4.6.6-1.el9ap, automation-gateway-server-2.5.20250115-1.el9ap, python3.11-aiohttp-3.10.11-1.el9ap
Show 2 more Red Hat advisories
- RHSA-2024:11146 Released 2024-12-17 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Container Release Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 ansible-automation-platform-25/aap-cloud-billing-rhel8, ansible-automation-platform-25/aap-cloud-billing-rhel8-operator, ansible-automation-platform-25/aap-cloud-metrics-collector-rhel8 +29
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 ansible-automation-platform-25/ansible-builder-rhel9, ansible-automation-platform-25/ansible-python-base-rhel9, ansible-automation-platform-25/ansible-python-toolkit-rhel9 +5
- RHSA-2024:11144 Released 2024-12-16 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.4 Container Release Update
- Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-automation-platform-24/aap-cloud-billing-rhel8, ansible-automation-platform-24/aap-cloud-billing-rhel8-operator, ansible-automation-platform-24/aap-cloud-metrics-collector-rhel8 +27
- Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-automation-platform-24/ansible-builder-rhel9, ansible-automation-platform-24/ansible-python-base-rhel9, ansible-automation-platform-24/ansible-python-toolkit-rhel9 +4
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 1.2 | Affected | No fix yet |
| Red Hat Ansible Automation Platform 2 | Affected | No fix yet |
| Discovery 1 for RHEL 9 | Fixed | RHSA-2025:1249 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 8 | Fixed | RHSA-2024:11144 |
| Red Hat Ansible Automation Platform 2.4 for RHEL 9 | Fixed | RHSA-2024:11144 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | Fixed | RHSA-2024:11146, RHSA-2025:0340, RHSA-2025:0777 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | Fixed | RHSA-2024:11146, RHSA-2025:0340, RHSA-2025:0777 |
Not affected: 3 products
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Red Hat Ansible Automation Platform 2.5 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2024-53907
- 2026-10-03 Alias added: GHSA-8498-2h75-472j
- 2026-11-05 Affected versions changed · Red Hat
References
Advisory 3
More djangoproject Django vulnerabilities
- TI-2022-15177 An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. CVSS 3.1CRITICAL 9.8
- TI-2020-05994 Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection… CVSS 3.1CRITICAL 9.8
- TI-2023-10198 An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0… CVSS 3.1HIGH 7.5
- TI-2019-14306 Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. CVSS 3.1CRITICAL 9.8
- TI-2019-10595 An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x… CVSS 3.0CRITICAL 9.8
- TI-2021-14006 Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2024-53907 · CVE Program
- CVE-2024-53907 · NVD
- FIRST EPSS
- GHSA-8498-2h75-472j · GitHub Advisory Database · CC BY 4.0
- CVE-2024-53907 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences