CVE-2023-43665

Aliases:GHSA-h8gc-pgj2-vjm3BIT-django-2023-43665PYSEC-2023-226
Modified
Published: 03 Nov 2023, 00:00
Last modified:04 Nov 2025, 17:12

Vulnerability Summary

Overall Risk (default)
medium
31/100
CVSS Score
7.5 HIGH
v3.1 (nvd)
EPSS Score
2.79% LOW
3% probability 0.00%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

03 Nov 2023, 00:00
Published
Vulnerability first disclosed
04 Nov 2025, 17:12
Last Modified
Vulnerability information updated

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.

CVSS Metrics

  • v4.0HIGHScore: 8.7CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
  • v3.1HIGHScore: 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • v3.1MEDIUMScore: 5.9CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS Trends

Current EPSS score: 2.79% Percentile: 86%

Techniques & Countermeasures

  • CWE-1284Improper Validation of Specified Quantity in Input

    The product receives input that is expected to specify a quantity (such as size or length), but it does not validate or incorrectly validates that the quantity has the required properties.

Affected Systems

  • djangoprojectdjango

    ≥ 3.2, < 3.2.22 | ≥ 4.1, < 4.1.12 | ≥ 4.2, < 4.2.6

  • fedoraprojectfedora

    39

  • PyPIdjango

    ≥ 3.2a1, < 3.2.22 | ≥ 4.1a1, < 4.1.12 | ≥ 4.2a1, < 4.2.6 | ≥ 4.2, < 4.2.6

References (22)