Feed
5.9MEDIUM
CVE-2023-43665Django Denial-of-service in django.utils.text.Truncator
A medium-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 1.5% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 1.5%
- percentile 75%
- Fix
- Named by a source
- CVE published 3 Nov 2023
Reference
None of the "Needs attention" rules apply right now.
EPSS 1.5% (+2) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 3.2.22 / 4.1.12 / 4.2.6 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473
- Commit / pull request: https://github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8
- Commit / pull request: https://github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 3.2a1, < 3.2.22Fixed in3.2.22OSV (GHSA-h8gc-pgj2-vjm3)
- Affected>= 4.1a1, < 4.1.12Fixed in4.1.12OSV (GHSA-h8gc-pgj2-vjm3)
- Affected>= 4.2a1, < 4.2.6Fixed in4.2.6OSV (GHSA-h8gc-pgj2-vjm3)
- Affected>= 3.2, < 3.2.22Fixed in3.2.22OSV (PYSEC-2023-226)
- Affected>= 4.1, < 4.1.12Fixed in4.1.12OSV (PYSEC-2023-226)
- Affected>= 4.2, < 4.2.6Fixed in4.2.6OSV (PYSEC-2023-226)
Confirmed facts
- CVSS
- 5.9 MEDIUM (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-h8gc-pgj2-vjm3)
- Attack vector
- network
- Attack complexity
- high
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-1284, CWE-400
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2023-43665
- commit / pull requesthttps://github.com/django/django/commit/be9c27c4d18c2e6a5be8af4e53c0797440794473
- commit / pull requesthttps://github.com/django/django/commit/c7b7024742250414e426ad49fb80db943e7ba4e8
- commit / pull requesthttps://github.com/django/django/commit/ccdade1a0262537868d7ca64374de3d957ca50c5
- otherhttps://docs.djangoproject.com/en/4.2/releases/security
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2023-226.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://groups.google.com/forum/#%21forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU
- otherhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/HJFRPUHDYJHBH3KYHSPGULQM4JN7BMSU
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- otherhttps://security.netapp.com/advisory/ntap-20231221-0001
- otherhttps://www.djangoproject.com/weblog/2023/oct/04/security-releases
- otherhttp://www.openwall.com/lists/oss-security/2024/03/04/1
- otherhttps://www.djangoproject.com/weblog/2023/oct/04/security-releases/
- otherhttps://docs.djangoproject.com/en/4.2/releases/security/
- advisoryhttps://github.com/advisories/GHSA-h8gc-pgj2-vjm3
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-h8gc-pgj2-vjm3 (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2023-226 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 46 min ago · osv 46 min ago · nvd 46 min ago · epss 45 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2023-43665, GHSA-h8gc-pgj2-vjm3, PYSEC-2023-226