{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-43665","id":"CVE-2023-43665","title":"Django Denial-of-service in django.utils.text.Truncator","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,","descriptionLong":"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":"2023-11-03T00:00:00.000Z","updated":"2026-11-16T10:45:11.463322866Z","reserved":"2023-09-20T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"4.0","score":null,"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":"medium","source":"GitHub"},{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"GitHub"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2a1 <3.2.22",">=4.1a1 <4.1.12",">=4.2a1 <4.2.6",">=3.2 <3.2.22",">=4.1 <4.1.12",">=4.2 <4.2.6"],"fixed":["3.2.22","4.1.12","4.2.6"],"advisory":"GHSA-h8gc-pgj2-vjm3"}],"cwes":["CWE-1284","CWE-400"],"aliases":["BIT-django-2023-43665","GHSA-h8gc-pgj2-vjm3","PYSEC-2023-226"],"references":[{"url":"https://groups.google.com/forum/#%21forum/django-announce","tags":["x_transferred","Permissions Required","web"]},{"url":"https://docs.djangoproject.com/en/4.2/releases/security/","tags":["x_transferred","Patch","Vendor Advisory","web"]},{"url":"https://www.djangoproject.com/weblog/2023/oct/04/security-releases/","tags":["x_transferred","Vendor Advisory","article"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU/","tags":["vendor-advisory","x_transferred","Mailing List","Third Party Advisory","advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20231221-0001/","tags":["x_transferred","advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/","tags":["vendor-advisory","x_transferred","advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/04/1","tags":["mailing-list","x_transferred","article","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43665.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43665","tags":["advisory"]},{"url":"https://github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473","tags":["web"]},{"url":"https://github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8","tags":["web"]},{"url":"https://github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5","tags":["web"]},{"url":"https://docs.djangoproject.com/en/4.2/releases/security","tags":["web"]},{"url":"https://github.com/django/django","tags":["package"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-226.yaml","tags":["web"]},{"url":"https://groups.google.com/forum/#!forum/django-announce","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU","tags":["web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D","tags":["web"]},{"url":"https://security.netapp.com/advisory/ntap-20231221-0001","tags":["web"]},{"url":"https://www.djangoproject.com/weblog/2023/oct/04/security-releases","tags":["web"]},{"url":"https://github.com/advisories/GHSA-h8gc-pgj2-vjm3","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01462,"epssPercentile":0.74171,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-43665","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43665","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-43665","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-h8gc-pgj2-vjm3","ok":true,"note":"GHSA-h8gc-pgj2-vjm3"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-43665","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":["django"],"critical":[],"attention":null}