cve.bz

CVE-2023-43665

7.5 highEPSS 1.5%

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

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% chance of exploitation in the next 30 days; higher than 73% of CVEs (scores of 2026-10-31)
CWE
CWE-1284
Published
Modified
Record from
the NVD, synced

Affected

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

References

Check your stackJSON