{"id":"CVE-2023-43665","aliases":["CVE-2023-43665","GHSA-h8gc-pgj2-vjm3","BIT-DJANGO-2023-43665","PYSEC-2023-226"],"related":[],"kind":"vulnerability","state":"published","title":"Django Denial-of-service in django.utils.text.Truncator","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En Django 3.2 anterior a 3.2.22, 4.1 anterior a 4.1.12 y 4.2 anterior a 4.2.6, los métodos django.utils.text.Truncator chars() y palabras() (cuando se usan con html=True) están sujetos a un potencial Ataque DoS (denegación de servicio) a través de ciertas entradas con texto HTML muy largo y potencialmente mal formado. Los métodos chars() y palabras() se utilizan para implementar los filtros de plantilla truncatechars_html y truncatewords_html, que por tanto también son vulnerables. NOTA: este problema existe debido a una solución incompleta para CVE-2019-14232.","source":"nvd"}],"published":"2023-11-03T00:00:00.000Z","modified":"2026-09-08T08:46:32.836Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","score":5.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-400","CWE-1284"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.2a1","status":"affected","fixed":"3.2.22"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.1a1","status":"affected","fixed":"4.1.12"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2a1","status":"affected","fixed":"4.2.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.2","fixed":"3.2.22"},{"status":"affected","introduced":"4.1","fixed":"4.1.12"},{"status":"affected","introduced":"4.2","fixed":"4.2.6"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"39"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.22"},{"type":"ecosystem","introduced":"4.1","status":"affected","fixed":"4.1.12"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.6"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.22"},{"type":"semver","introduced":"4.1.0","status":"affected","fixed":"4.1.12"},{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.6"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["permissions-required","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://docs.djangoproject.com/en/4.2/releases/security/","tags":["advisory","patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2023/oct/04/security-releases/","tags":["advisory","article","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/","tags":["advisory","mailing-list","third-party-advisory","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20231221-0001/","tags":["web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/","tags":["vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/04/1","tags":["mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43665","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/4.2/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-226.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20231221-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2023/oct/04/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-h8gc-pgj2-vjm3","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-43665","url":"https://www.cve.org/CVERecord?id=CVE-2023-43665","licence":"CVE Terms of Use","modified":"2025-11-04T17:12:41.936Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-h8gc-pgj2-vjm3","url":"https://github.com/advisories/GHSA-h8gc-pgj2-vjm3","licence":"CC-BY-4.0","modified":"2025-11-04T20:42:38.556Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-43665","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43665","licence":"Public domain","modified":"2026-06-17T06:26:11.360Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-226","url":"https://osv.dev/vulnerability/PYSEC-2023-226","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:03.986Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2023-43665","url":"https://osv.dev/vulnerability/BIT-DJANGO-2023-43665","licence":"Apache-2.0","modified":"2026-09-08T08:46:32.836Z"}],"updatedAt":"2026-11-25T22:58:30.003Z","epss":{"score":0.01462,"percentile":0.74369,"date":"2026-12-01T12:00:22.000Z"}}