Skip to content
OpenAdvisories
High · 7.5 CVE-2024-53907 BIT-django-2024-53907EUVD-2024-0048GHSA-8498-2h75-472jPYSEC-2024-156

Django denial-of-service in django.utils.html.strip_tags()

Published Dec 6, 2024 · Updated Dec 31, 2024 · Assigned by mitre

Description

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.

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 3:4.2.17-1 —
Debian 13 python-django 3:4.2.17-1 —
Debian 12 python-django 3:3.2.25-0+deb12u1 DSA-6136-1
Debian 11 python-django 2:2.2.28-1~deb11u3 DLA-4006-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS python-django 3:4.2.11-1ubuntu1.4 USN-7136-1
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.15 USN-7136-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.26 USN-7136-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS python-django 1:1.11.11-1ubuntu1.21+esm8 USN-7136-2
Ubuntu Pro 16.04 LTS python-django 1.8.7-1ubuntu5.15+esm8 USN-7136-2
Ubuntu Pro 14.04 LTS python-django No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Ansible Automation Platform Inside 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform Developer 2 python3.11-django 4.2.18-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform Developer 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.6.6-1.el8ap RHSA-2025:0777, RHSA-2025:0340
Red Hat Ansible Automation Platform 2 automation-gateway-server 2.5.20250115-1.el8ap RHSA-2025:0340
Red Hat Ansible Automation Platform 2 python3.11-aiohttp 3.10.11-1.el8ap RHSA-2025:0340
Red Hat Ansible Automation Platform 2 python3.11-django 4.2.18-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-Django 4.2.11-150600.3.12.1 SUSE-SU-2024:4285-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-Django 2.2.28-bp155.7.21.1 openSUSE-SU-2024:0408-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 5.1.4-1.1 openSUSE-SU-2024:14568-1
openSUSE Tumbleweed python-Django4 4.2.17-1.1 openSUSE-SU-2024:14565-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.12.1 SUSE-SU-2024:4285-1
openSUSE Leap 15.5 python-Django 2.2.28-bp155.7.21.1 openSUSE-SU-2024:0408-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 4.2.20-r0 —
Alpine v3.23 py3-django 4.2.20-r0 —
Alpine v3.22 py3-django 4.2.20-r0 —
Alpine v3.21 py3-django 4.2.20-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-django 5.1.4-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 5.1.0, < 5.1.4 5.1.4 GHSA-8498-2h75-472j
PyPI django >= 4.2.0, < 4.2.17 4.2.17 GHSA-8498-2h75-472j
PyPI django >= 5.0.0, < 5.0.10 5.0.10 GHSA-8498-2h75-472j
PyPI django >= 5.1, < 5.1.4 5.1.4 GHSA-8498-2h75-472j
PyPI django >= 5.0, < 5.0.10 5.0.10 GHSA-8498-2h75-472j
PyPI django >= 4.2, < 4.2.17 4.2.17 GHSA-8498-2h75-472j
PyPI django >= 5.1, < 5.1.4 · >= 5.0, < 5.0.10 · >= 4.2, < 4.2.17 5.1.4, 5.0.10, 4.2.17 PYSEC-2024-156

Advisories 13

References