CVE-2023-43665
Django Denial-of-service in django.utils.text.Truncator
5.9
MEDIUM
CVSS 3.1
EPSS 2.8%
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.
How to fix CVE-2023-43665
To remediate CVE-2023-43665, upgrade the affected package to a fixed version below.
- —upgrade to 3.2.22 or later
- —upgrade to 2:2.2.28-1~deb11u7 or later
- —upgrade to 3.2.22 or later
- —upgrade to 3.2.22 or later
Is CVE-2023-43665 being exploited?
Low — EPSS is 2.8%, meaning exploitation activity has not been observed at scale.
Affected packages (4)
- >= 3.2.0, < 3.2.22, >= 4.1.0, < 4.1.12, >= 4.2.0, < 4.2.6
- from 0, < 2:2.2.28-1~deb11u7
- >= 3.2a1, < 3.2.22
- >= 3.2, < 3.2.22, >= 4.1, < 4.1.12, >= 4.2, < 4.2.6
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 4.0 | — | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N |
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |