Skip to content
Fencer Vulns
high 7.5

CVE-2023-43665 json

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

published 2023-11-03 3 y ago modified 2026-09-08 2 mo ago also BIT-django-2023-43665 , EUVD-2023-0070 , GHSA-h8gc-pgj2-vjm3 , PYSEC-2023-226

cvss
7.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
1.5%
EPSS 1.5% chance of exploitation in 30 days, percentile 73%
public exploits
0
none known

Summary

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.

Patch / fix

  • pypi django 3.2.22, 4.1.12, 4.2.6
  • bitnami django 3.2.22, 4.1.12, 4.2.6
  • djangoproject django 3.2.22, 4.1.12, 4.2.6
  • python-django Debian 12 3:3.2.25-0+deb12u1
  • python-django Debian 14, Debian 13 3:4.2.6-1

debian advisories DEBIAN-CVE-2023-43665

  • python-django Ubuntu 20.04 LTS 2:2.2.12-1ubuntu0.20
  • python-django Ubuntu 22.04 LTS 2:3.2.12-2ubuntu1.9
  • python-django Ubuntu 24.04 LTS 3:4.2.4-1ubuntu2
  • python-django Ubuntu Pro 18.04 LTS 1:1.11.11-1ubuntu1.21+esm2

ubuntu advisories UBUNTU-CVE-2023-43665

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

  • foreman satellite utils 6.15, satellite capsule 6.15, satellite 6.15 3.9.1.6-1.el8sat
  • foreman-cli satellite utils 6.15, satellite 6.15 3.9.1.6-1.el8sat
  • foreman-ec2 satellite 6.15 3.9.1.6-1.el8sat
  • foreman-pcp satellite 6.15 3.9.1.6-1.el8sat
  • puppetserver satellite capsule 6.15, satellite 6.15 7.14.0-1.el8sat
  • rubygem-puma satellite 6.15 6.4.2-1.el8sat
  • foreman-ovirt satellite 6.15 3.9.1.6-1.el8sat
  • foreman-redis satellite 6.15 3.9.1.6-1.el8sat

red hat advisories RHSA-2024:2010RHSA-2024:1878RHSA-2024:1536RHSA-2023:6158RHSA-2023:5758

  • python-Django1 OpenStack Cloud Crowbar 9, OpenStack Cloud 9 1.11.29-3.53.1
  • python-Django OpenStack Cloud Crowbar 8, OpenStack Cloud 8, HPE Helion OpenStack 8 1.11.29-3.54.1

suse advisories SUSE-SU-2023:4426-1SUSE-SU-2023:4232-1

  • python-Django5 openSUSE Tumbleweed 5.2.16-1.1
  • python-Django openSUSE Tumbleweed 5.2.16-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.30-4.1
  • python-Django6 openSUSE Tumbleweed 6.0-1.1
  • python-Django4 openSUSE Tumbleweed 4.2.14-1.1
  • python-Django openSUSE Tumbleweed 4.2.6-1.1
  • python-Django1 Package Hub 15 SP5, openSUSE Leap 15.5 1.11.29-bp155.4.6.1
  • python-Django1 Package Hub 15 SP4, openSUSE Leap 15.4 1.11.29-bp154.2.9.1

opensuse advisories openSUSE-SU-2026:11270-1openSUSE-SU-2026:11248-1openSUSE-SU-2026:11235-1openSUSE-SU-2026:10005-1openSUSE-SU-2024:14208-1openSUSE-SU-2024:13334-1

  • py3-django Alpine 3.24, Alpine 3.23, Alpine 3.22 +4 more 4.2.6-r0

alpine advisories ALPINE-CVE-2023-43665

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-2023-43665 updated cvss 7.5

python-django: Denial-of-service possibility in django.utils.text.Truncator

  • Red Hat Certification for Red Hat Enterprise Linux 7 python-django
    affected: no fix available “Fix deferred”
  • Red Hat OpenStack Platform 16.1 python-django20, python3-django20, python-django20-bash-completion Red Hat OpenStack Platform 16.2 python-django20, python3-django20, python-django20-bash-completion
    affected: no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 18.0 python-django
    affected: no fix available
  • Red Hat Storage 3 python-django, python2-django, python-django-bash-completion
    affected: no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 python39-django 3.2.22-1.el8ap, python3x-django 3.2.22-1.el8ap, automation-controller-venv-tower 4.4.7-1.el8ap Red Hat Ansible Automation Platform 2.4 for RHEL 9 python-django 3.2.22-1.el9ap, python3-django 3.2.22-1.el9ap, automation-controller-venv-tower 4.4.7-1.el9ap
    fixed: vendor fix RHSA-2023:6158
  • Red Hat Satellite 6.14 for RHEL 8 python-django 3.2.22-1.el8pc, python39-django 3.2.22-1.el8pc
    fixed: vendor fix RHSA-2024:1536
  • Red Hat Satellite 6.15 for RHEL 8 python-django 4.2.9-1.el8pc, python3.11-django 4.2.9-1.el8pc
    fixed: vendor fix RHSA-2024:2010
  • Red Hat RHUI 4 for RHEL 8 python-django 4.2.11-1.el8ui, python3.11-django 4.2.11-1.el8ui
    fixed: vendor fix RHSA-2024:1878
show 1 more
  • Red Hat Ansible Automation Platform 2.4 for RHEL 8 ansible-core 2.15.5-1.el8ap, ansible-test 2.15.5-1.el8ap, python39-urllib3 1.26.18-1.el8ap, python3x-urllib3 1.26.18-1.el8ap, automation-controller 4.4.6-1.el8ap, automation-controller 4.4.7-1.el8ap, +7 more Red Hat Ansible Automation Platform 2.4 for RHEL 9 ansible-core 2.15.5-1.el9ap, ansible-test 2.15.5-1.el9ap, python-urllib3 1.26.18-1.el9ap, python3-urllib3 1.26.18-1.el9ap, automation-controller 4.4.6-1.el9ap, automation-controller 4.4.7-1.el9ap, +7 more Red Hat OpenStack Platform 17.0 python3-django Red Hat OpenStack Platform 17.1 python-django, python3-django Red Hat Satellite 6.14 for RHEL 8 candlepin 4.3.12-1.el8sat, satellite 6.14.3-1.el8sat, python-flake8 5.0.0-0.1.el8pc, python-jinja2 3.1.3-0.1.el8pc, python-mccabe 0.7.0-0.1.el8pc, satellite-cli 6.14.3-1.el8sat, +27 more Red Hat Satellite 6.15 for RHEL 8 cjson 1.7.14-5.el8sat, libsolv 0.7.22-6.el8pc, katello 4.11.0-1.el8sat, libcomps 0.1.18-8.el8pc, python-jq 1.6.0-3.el8pc, foreman 3.9.1.6-1.el8sat, +677 more
    +1 more products
    Red Hat RHUI 4 for RHEL 8 libsolv 0.7.22-6.el8ui, libcomps 0.1.18-8.el8ui, python-jq 1.6.0-3.el8ui, python-xlrd 2.0.1-8.el8ui, python-xlwt 1.3.0-6.el8ui, python-yarl 1.8.2-4.el8ui, +201 more
    not 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

Exploit prediction

1.46% chance of exploitation in the next 30 days, higher than 73% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
GitHub 3.1 5.9 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD 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
>=3.2a1, <3.2.22
>=4.1a1, <4.1.12
>=4.2a1, <4.2.6
>=3.2, <3.2.22
>=4.1, <4.1.12
>=4.2, <4.2.6
3.2.22
4.1.12
4.2.6
bitnami django
>=3.2.0, <3.2.22
>=4.1.0, <4.1.12
>=4.2.0, <4.2.6
3.2.22
4.1.12
4.2.6

Classification

Weakness
  • CWE-1284 Improper Validation of Specified Quantity in Input
  • CWE-400 Uncontrolled Resource Consumption
Technology feeds

References

Sources

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.