CVE-2023-43665
HIGH 7.5CVSS 3.1Django Denial-of-service in django.utils.text.Truncator
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.
- Published
- 3 Nov 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-1284CWE-400
- Also known as
- BIT-django-2023-43665GHSA-h8gc-pgj2-vjm3PYSEC-2023-226
- Sources
- NVDJSONOSV GHSA-h8gc-pgj2-vjm3JSONOSV PYSEC-2023-226JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 3.2, < 3.2.22 | 3.2.22 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.1, < 4.1.12 | 4.1.12 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2, < 4.2.6 | 4.2.6 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* |
= 39 | |
| OSV | PyPI | django | >= 3.2a1, < 3.2.22 | 3.2.22 |
| OSV | PyPI | django | >= 4.1a1, < 4.1.12 | 4.1.12 |
| OSV | PyPI | django | >= 4.2a1, < 4.2.6 | 4.2.6 |
| OSV | PyPI | django | >= 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
- http://www.openwall.com/lists/oss-security/2024/03/04/1 · WEB
- https://docs.djangoproject.com/en/4.2/releases/security/ · Patch, Vendor Advisory, WEB
- https://groups.google.com/forum/#%21forum/django-announce · Permissions Required, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/ · WEB
- https://security.netapp.com/advisory/ntap-20231221-0001/ · WEB
- https://www.djangoproject.com/weblog/2023/oct/04/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/ · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-43665 · ADVISORY
- https://github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473 · WEB
- https://github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8 · WEB
- https://github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-226.yaml · WEB
- https://groups.google.com/forum/#!forum/django-announce · WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU · WEB
- https://github.com/advisories/GHSA-h8gc-pgj2-vjm3 · ADVISORY
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 3 Nov 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 3 Nov 2023)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 3 Nov 2023)