CVE-2023-43665
Last modified
CVE-2023-43665 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 1.24% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Djangoproject | Django | >= 3.2, < 3.2.22 |
| Djangoproject | Django | >= 4.1, < 4.1.12 |
| Djangoproject | Django | >= 4.2, < 4.2.6 |
| Fedoraproject | Fedora | 39 |
References
- https://docs.djangoproject.com/en/4.2/releases/security/Patch, Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/Mailing List, Third Party Advisory
- https://docs.djangoproject.com/en/4.2/releases/security/Patch, Vendor Advisory
- https://groups.google.com/forum/#%21forum/django-announcePermissions Required
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/Mailing List, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-43665?
How severe is CVE-2023-43665?
How do I fix CVE-2023-43665?
Are you affected by CVE-2023-43665?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
