cve.bz

CVE-2023-43665

7.5 highEPSS 1.5%Fix available

High (7.5). EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in django 3.2.22, 4.1.12, 4.2.6.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 74th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-1284 Improper Validation of Specified Quantity in Input
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-43665 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-43665?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-43665?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-43665 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
djangoproject:djangofrom 3.2 before 3.2.22
djangoproject:djangofrom 4.1 before 4.1.12
djangoproject:djangofrom 4.2 before 4.2.6
fedoraproject:fedora39

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-h8gc-pgj2-vjm3PyPIdjango>=3.2a1 <3.2.223.2.22
GHSA-h8gc-pgj2-vjm3PyPIdjango>=4.1a1 <4.1.124.1.12
GHSA-h8gc-pgj2-vjm3PyPIdjango>=4.2a1 <4.2.64.2.6
PYSEC-2023-226PyPIdjango>=3.2 <3.2.22
>=4.1 <4.1.12
>=4.2 <4.2.6
3.2.22, 4.1.12, 4.2.6

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11python-django2:2.2.28-1~deb11u7DLA-4210-1
Debian12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2023-43665 DSA-6136-1
Debian13, 14python-django3:4.2.6-1DEBIAN-CVE-2023-43665
Ubuntu20.04:LTSpython-django2:2.2.12-1ubuntu0.20UBUNTU-CVE-2023-43665 USN-6414-1
Ubuntu22.04:LTSpython-django2:3.2.12-2ubuntu1.9UBUNTU-CVE-2023-43665 USN-6414-1
Ubuntu24.04:LTSpython-django3:4.2.4-1ubuntu2UBUNTU-CVE-2023-43665
UbuntuPro:14.04:LTS, Pro:16.04:LTSpython-djangono fix listedUBUNTU-CVE-2023-43665
UbuntuPro:18.04:LTSpython-django1:1.11.11-1ubuntu1.21+esm2UBUNTU-CVE-2023-43665 USN-6414-2
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.4.6-1.el8apRHSA-2023:5758
Red Hatansible_automation_platform:2.4::el8automation-controller-venv-tower0:4.4.7-1.el8apRHSA-2023:6158
Red Hatansible_automation_platform:2.4::el8python39-django, python3x-django0:3.2.22-1.el8apRHSA-2023:5758
Red Hatansible_automation_platform:2.4::el8python39-urllib3, python3x-urllib30:1.26.18-1.el8apRHSA-2023:6158
Red Hatansible_automation_platform:2.4::el8, ansible_automation_platform_developer:2.4::el8, ansible_automation_platform_inside:2.4::el8ansible-core0:2.15.5-1.el8apRHSA-2023:5758
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.4.6-1.el9apRHSA-2023:5758
Red Hatansible_automation_platform:2.4::el9automation-controller-venv-tower0:4.4.7-1.el9apRHSA-2023:6158
Red Hatansible_automation_platform:2.4::el9python-django, python3-django0:3.2.22-1.el9apRHSA-2023:5758
Red Hatansible_automation_platform:2.4::el9python-urllib3, python3-urllib30:1.26.18-1.el9apRHSA-2023:6158
Red Hatansible_automation_platform:2.4::el9, ansible_automation_platform_developer:2.4::el9, ansible_automation_platform_inside:2.4::el9ansible-core0:2.15.5-1.el9apRHSA-2023:5758
Red Hatrhui:4::el8python-aiohttp, python3.11-aiohttp, python-aiohttp-debugsource and 1 more0:3.9.2-1.el8uiRHSA-2024:1878
Red Hatrhui:4::el8python-cryptography, python3.11-cryptography, python-cryptography-debugsource and 1 more0:41.0.6-1.el8uiRHSA-2024:1878
20 more for Red Hat in the JSON and on Red Hat's page.
SUSEHPE Helion OpenStack 8, OpenStack Cloud 8, OpenStack Cloud Crowbar 8python-Django1.11.29-3.54.1SUSE-SU-2023:4232-1
SUSEOpenStack Cloud 9, OpenStack Cloud Crowbar 9python-Django11.11.29-3.53.1SUSE-SU-2023:4426-1
SUSEPackage Hub 15 SP4python-Django2.2.28-bp154.2.15.1openSUSE-SU-2023:0310-1
SUSEPackage Hub 15 SP4python-Django11.11.29-bp154.2.9.1openSUSE-SU-2023:0389-1
SUSEPackage Hub 15 SP5python-Django2.2.28-bp155.7.6.1openSUSE-SU-2023:0309-1
SUSEPackage Hub 15 SP5python-Django11.11.29-bp155.4.6.1openSUSE-SU-2023:0390-1
openSUSELeap 15.4python-Django2.2.28-bp154.2.15.1openSUSE-SU-2023:0310-1
openSUSELeap 15.4python-Django11.11.29-bp154.2.9.1openSUSE-SU-2023:0389-1
openSUSELeap 15.5python-Django2.2.28-bp155.7.6.1openSUSE-SU-2023:0309-1
openSUSELeap 15.5python-Django11.11.29-bp155.4.6.1openSUSE-SU-2023:0390-1
openSUSETumbleweedpython-Django4.2.6-1.1openSUSE-SU-2024:13334-1
openSUSETumbleweedpython-Django5.2.16-1.1openSUSE-SU-2026:11248-1
openSUSETumbleweedpython-Django44.2.14-1.1openSUSE-SU-2024:14208-1
openSUSETumbleweedpython-Django44.2.30-4.1openSUSE-SU-2026:11235-1
openSUSETumbleweedpython-Django55.2.16-1.1openSUSE-SU-2026:11270-1
openSUSETumbleweedpython-Django66.0-1.1openSUSE-SU-2026:10005-1
Alpinev3.18, v3.19, v3.20 and 4 morepy3-django4.2.6-r0ALPINE-CVE-2023-43665

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Ansible Automation Platform 2.4 for RHEL 8python3x-django-0:3.2.22-1.el8apFixed 2023-10-16RHSA-2023:5758
Red Hat Ansible Automation Platform 2.4 for RHEL 8automation-controller-0:4.4.7-1.el8apFixed 2023-10-30RHSA-2023:6158
Red Hat Ansible Automation Platform 2.4 for RHEL 9python-django-0:3.2.22-1.el9apFixed 2023-10-16RHSA-2023:5758
Red Hat Ansible Automation Platform 2.4 for RHEL 9automation-controller-0:4.4.7-1.el9apFixed 2023-10-30RHSA-2023:6158
Red Hat Satellite 6.14 for RHEL 8python-django-0:3.2.22-1.el8pcFixed 2024-03-27RHSA-2024:1536
Red Hat Satellite 6.15 for RHEL 8python-django-0:4.2.9-1.el8pcFixed 2024-04-23RHSA-2024:2010
RHUI 4 for RHEL 8python-django-0:4.2.11-1.el8uiFixed 2024-04-18RHSA-2024:1878
Red Hat Certification for Red Hat Enterprise Linux 7python-djangoFix deferred
Red Hat OpenStack Platform 16.1python-django20Out of support scope
Red Hat OpenStack Platform 16.2python-django20Out of support scope
Red Hat OpenStack Platform 17.0python-djangoNot affected
Red Hat OpenStack Platform 17.1python-djangoNot affected
Red Hat OpenStack Platform 18.0python-djangoAffected
Red Hat Storage 3python-djangoWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-43665.

References

Check your stackJSON