{"id":"CVE-2023-43665","details":"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.","aliases":["BIT-django-2023-43665","GHSA-h8gc-pgj2-vjm3","PYSEC-2023-226"],"modified":"2026-11-16T10:45:11.463322866Z","published":"2023-11-03T00:00:00Z","related":["SUSE-SU-2023:4232-1","SUSE-SU-2023:4426-1","openSUSE-SU-2023:0309-1","openSUSE-SU-2023:0310-1","openSUSE-SU-2023:0389-1","openSUSE-SU-2023:0390-1","openSUSE-SU-2024:13334-1","openSUSE-SU-2024:14208-1","openSUSE-SU-2026:10005-1","openSUSE-SU-2026:11235-1","openSUSE-SU-2026:11248-1","openSUSE-SU-2026:11270-1"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43665.json"},"references":[{"type":"WEB","url":"https://docs.djangoproject.com/en/4.2/releases/security/"},{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43665.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43665"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20231221-0001/"},{"type":"ARTICLE","url":"http://www.openwall.com/lists/oss-security/2024/03/04/1"},{"type":"ARTICLE","url":"https://www.djangoproject.com/weblog/2023/oct/04/security-releases/"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/django/django","events":[{"introduced":"b6475d7d7940f3ce575e0b0f2d83e517f899b4cf"},{"fixed":"3106e94e52a0a7786d49803c86b3139df113d36d"},{"introduced":"9fee86e44dd83dc968ec443adcde191b3eba1286"},{"fixed":"865974ee933ac0648fabe4458136ce1ceec62192"},{"introduced":"97aa3b7f08f51669e118f3af5ca91026e39664c3"},{"fixed":"c22017bd1dddb5b57d8a179e6378ef0c8d7f5eeb"}],"database_specific":{"extracted_events":[{"cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"3.2"},{"fixed":"3.2.22"}],"source":"CPE_RANGE"},{"cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"4.1"},{"fixed":"4.1.12"}],"source":"CPE_RANGE"},{"source":"CPE_RANGE","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","range":[{"introduced":"4.2"},{"fixed":"4.2.6"}]}]}}],"versions":["3.2.21","3.2.20","3.2.19","3.2.18","3.2.17","3.2.16","3.2.15","3.2.14","3.2.13","3.2.12","3.2.11","3.2.10","3.2.9","3.2.8","3.2.7","3.2.6","3.2.5","3.2.4","3.2.3","3.2.2","3.2.1","3.2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-43665.json"}}],"schema_version":"1.9.2"}