CVE-2023-43665

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

Published Nov 3, 2023 CVSS 3.1 · 7.5 High EPSS 1.5% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4210-1 python-django security update
Debian DSA Debian DSA DSA-6136-1 python-django security update
Github GHSA Github GHSA GHSA-h8gc-pgj2-vjm3 Django Denial-of-service in django.utils.text.Truncator
Ubuntu USN Ubuntu USN USN-6414-1 Django vulnerability
Ubuntu USN Ubuntu USN USN-6414-2 Django vulnerabilities
History
Type Values Removed Values Added
Metrics epss

{'score': 0.01381}

epss

{'score': 0.01419}

Type Values Removed Values Added
Metrics epss

{'score': 0.01854}

epss

{'score': 0.01381}

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 4, 2025, 5:12 PM
Reserved
Sep 20, 2023, 12:00 AM
Status
Modified
Published
Nov 3, 2023, 5:15 AM
Modified
Jun 17, 2026, 6:26 AM
Severity
Moderate
Public date
Oct 4, 2023, 3:00 PM