# CVE-2023-43665: Django Denial-of-service in django.utils.text.Truncator

- Severity: High 7.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.46%, higher than 74% of CVEs (2026-12-01)
- Published: 2023-11-03T00:00:00.000Z
- Modified: 2026-09-08T08:46:32.836Z
- Also known as: GHSA-h8gc-pgj2-vjm3, BIT-DJANGO-2023-43665, PYSEC-2023-226
- Weaknesses: CWE-400, CWE-1284
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django (PyPI): from 3.2a1 before 3.2.22; from 4.1a1 before 4.1.12; from 4.2a1 before 4.2.6; from 3.2 before 3.2.22; from 4.1 before 4.1.12; from 4.2 before 4.2.6
- djangoproject django: from 3.2 before 3.2.22; from 4.1 before 4.1.12; from 4.2 before 4.2.6
- fedoraproject fedora: 39
- django (Bitnami): from 3.2.0 before 3.2.22; from 4.1.0 before 4.1.12; from 4.2.0 before 4.2.6

## Every score

- GitHub: CVSS:3.1 5.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `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: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (permissions-required, web)
- <https://docs.djangoproject.com/en/4.2/releases/security/> (advisory, patch, vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2023/oct/04/security-releases/> (advisory, article, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/> (advisory, mailing-list, third-party-advisory, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20231221-0001/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/> (vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2024/03/04/1> (mailing-list, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-43665> (advisory, web)
- <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://docs.djangoproject.com/en/4.2/releases/security> (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%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D> (web)
- <https://security.netapp.com/advisory/ntap-20231221-0001> (web)
- <https://www.djangoproject.com/weblog/2023/oct/04/security-releases> (web)
- <https://github.com/advisories/GHSA-h8gc-pgj2-vjm3> (advisory)

## Sources

- CVE List: [CVE-2023-43665](https://www.cve.org/CVERecord?id=CVE-2023-43665), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-h8gc-pgj2-vjm3](https://github.com/advisories/GHSA-h8gc-pgj2-vjm3), CC-BY-4.0, modified 2025-11-04
- NVD: [CVE-2023-43665](https://nvd.nist.gov/vuln/detail/CVE-2023-43665), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-226](https://osv.dev/vulnerability/PYSEC-2023-226), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2023-43665](https://osv.dev/vulnerability/BIT-DJANGO-2023-43665), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2023-43665 · Whole record: https://cve.day/CVE-2023-43665.json · Rebuilt by cve.day 2026-11-25T22:58:30.003Z
