Skip to content
OpenAdvisories
Medium · 5.9 CVE-2023-43665 BIT-django-2023-43665EUVD-2023-0070GHSA-h8gc-pgj2-vjm3PYSEC-2023-226

Django Denial-of-service in django.utils.text.Truncator

Published Nov 3, 2023 · Updated Nov 4, 2025 · Assigned by mitre

Description

In Django 3.2 before 3.2.22, 4.1 before 4.1.12, and 4.2 before 4.2.6, the django.utils.text.Truncator chars() and words() methods (when used with html=True) are subject to a potential DoS (denial of service) attack via certain inputs with very long, potentially malformed HTML text. The chars() and words() methods are used to implement the truncatechars_html and truncatewords_html template filters, which are thus also vulnerable. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232.

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.6-1 —
Debian 13 python-django 3:4.2.6-1 —
Debian 12 python-django 3:3.2.25-0+deb12u1 DSA-6136-1
Debian 11 python-django 2:2.2.28-1~deb11u7 DLA-4210-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS python-django 3:4.2.4-1ubuntu2 —
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.9 USN-6414-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.20 USN-6414-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+esm2 USN-6414-2
Ubuntu Pro 16.04 LTS python-django No fix yet —
Ubuntu Pro 14.04 LTS python-django No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 foreman +1 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite Capsule 6 python-aiohttp +1 3.9.2-0.1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite Capsule 6 python-django +1 3.2.22-1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite Capsule 6 python-galaxy-importer +1 0.4.18-2.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite Capsule 6 python-jinja2 +1 3.1.3-0.1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite Capsule 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python3.11-aiohttp 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python3.11-django 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python3.11-galaxy-importer 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 python3.11-jinja2 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite Capsule 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 foreman +14 3.9.1.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 puppetserver 7.14.0-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 python-aiohttp +1 3.9.2-0.1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite 6 python-django +1 3.2.22-1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite 6 python-galaxy-importer +1 0.4.18-2.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite 6 python-jinja2 +1 3.1.3-0.1.el8pc RHSA-2024:2010, RHSA-2024:1536
Red Hat Satellite 6 python-pycryptodomex +1 3.20.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python-pygments +1 2.17.0-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python3.11-aiohttp 3.9.2-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python3.11-django 4.2.9-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 python3.11-galaxy-importer 0.4.19-2.el8pc RHSA-2024:2010
Red Hat Satellite 6 python3.11-jinja2 3.1.3-1.el8pc RHSA-2024:2010
Red Hat Satellite 6 rubygem-activesupport 6.1.7.6-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-audited 5.4.2-1.el8sat RHSA-2024:2010
Red Hat Satellite 6 rubygem-puma 6.4.2-1.el8sat RHSA-2024:2010
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
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 Ansible Automation Platform Inside 2 ansible-core 2.15.5-1.el8ap RHSA-2023:5758
Red Hat Ansible Automation Platform Developer 2 ansible-core 2.15.5-1.el8ap RHSA-2023:5758
Red Hat Ansible Automation Platform 2 ansible-core 2.15.5-1.el8ap RHSA-2023:5758
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.4.6-1.el8ap RHSA-2023:6158, RHSA-2023:5758
Red Hat Ansible Automation Platform 2 python-django +1 3.2.22-1.el9ap RHSA-2023:5758
Red Hat Ansible Automation Platform 2 python-urllib3 +1 1.26.18-1.el9ap RHSA-2023:6158
Red Hat Ansible Automation Platform 2 python39-django +1 3.2.22-1.el8ap RHSA-2023:5758
Red Hat Ansible Automation Platform 2 python39-urllib3 +1 1.26.18-1.el8ap RHSA-2023:6158
ReleasePackageFixed inAdvisory
SUSE Package Hub 15 SP5 python-Django 2.2.28-bp155.7.6.1 openSUSE-SU-2023:0309-1
SUSE Package Hub 15 SP5 python-Django1 1.11.29-bp155.4.6.1 openSUSE-SU-2023:0390-1
SUSE Package Hub 15 SP4 python-Django 2.2.28-bp154.2.15.1 openSUSE-SU-2023:0310-1
SUSE Package Hub 15 SP4 python-Django1 1.11.29-bp154.2.9.1 openSUSE-SU-2023:0389-1
SUSE OpenStack Cloud Crowbar 9 python-Django1 1.11.29-3.53.1 SUSE-SU-2023:4426-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SUSE OpenStack Cloud Crowbar 8 python-Django 1.11.29-3.54.1 SUSE-SU-2023:4232-1
SUSE OpenStack Cloud 9 python-Django1 1.11.29-3.53.1 SUSE-SU-2023:4426-1
SUSE OpenStack Cloud 8 python-Django 1.11.29-3.54.1 SUSE-SU-2023:4232-1
SUSE HPE Helion OpenStack 8 python-Django 1.11.29-3.54.1 SUSE-SU-2023:4232-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 4.2.6-1.1 openSUSE-SU-2026:11248-1, openSUSE-SU-2024:13334-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.2.28-bp155.7.6.1 openSUSE-SU-2023:0309-1
openSUSE Leap 15.5 python-Django1 1.11.29-bp155.4.6.1 openSUSE-SU-2023:0390-1
openSUSE Leap 15.4 python-Django 2.2.28-bp154.2.15.1 openSUSE-SU-2023:0310-1
openSUSE Leap 15.4 python-Django1 1.11.29-bp154.2.9.1 openSUSE-SU-2023:0389-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 4.2.6-r0 —
Alpine v3.23 py3-django 4.2.6-r0 —
Alpine v3.22 py3-django 4.2.6-r0 —
Alpine v3.21 py3-django 4.2.6-r0 —
Alpine v3.20 py3-django 4.2.6-r0 —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 py3-django 4.2.6-r0 —
Alpine v3.18 py3-django 4.2.6-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 3.2a1, < 3.2.22 3.2.22 GHSA-h8gc-pgj2-vjm3
PyPI django >= 4.1a1, < 4.1.12 4.1.12 GHSA-h8gc-pgj2-vjm3
PyPI django >= 4.2a1, < 4.2.6 4.2.6 GHSA-h8gc-pgj2-vjm3
PyPI django >= 3.2, < 3.2.22 · >= 4.1, < 4.1.12 · >= 4.2, < 4.2.6 3.2.22, 4.1.12, 4.2.6 PYSEC-2023-226

Advisories 23

References