CVE-2024-27351In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and…
- 5.3MediumCVSS base score
- 1.9%Exploitation in 30 daysEPSS · top 20% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
Description
In Django 3.2 before 3.2.25, 4.2 before 4.2.11, and 5.0 before 5.0.3, the django.utils.text.Truncator.words() method (with html=True) and the truncatewords_html template filter are subject to a potential regular expression denial-of-service attack via a crafted string. NOTE: this issue exists because of an incomplete fix for CVE-2019-14232 and CVE-2023-43665.
Timeline
ID reserved
By mitre
- 19 days later
· 19 days later
Published
- 20 months later
· 20 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| CISA-ADPADP (enrichment) | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
| NVDNVD · Modified | 3.1 | Medium5.3 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H |
- EPSS (exploitation in 30 days)
- 1.9% · top 20% of all CVEs (17 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.
Affected products
n/a
- affected n/a
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- PyPIDjangoGHSA-vm8q-m57g-pff3 (opens in a new tab)
References
References13
- https://groups.google.com/forum/#%21forum/django-announce (opens in a new tab)x_transferred
- https://docs.djangoproject.com/en/5.0/releases/security/ (opens in a new tab)x_transferred
- https://www.djangoproject.com/weblog/2024/mar/04/security-releases/ (opens in a new tab)x_transferred
- FEDORA-2024-5c7fb64c74 (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2024-2ec03ca8cb (opens in a new tab)vendor-advisoryx_transferred
- FEDORA-2024-84fbbbb914 (opens in a new tab)vendor-advisoryx_transferred
- [oss-security] 20240304 Django: CVE-2024-27351: Potential regular expression denial-of-service in django.utils.text.Truncator.words() (opens in a new tab)mailing-listx_transferred
- https://github.com/django/django/commit/3394fc6132436eca89e997083bae9985fb7e761e (opens in a new tab)
- https://github.com/django/django/commit/3c9a2771cc80821e041b16eb36c1c37af5349d4a (opens in a new tab)
- https://github.com/django/django/commit/072963e4c4d0b3a7a8c5412bc0c7d27d1a9c3521 (opens in a new tab)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/ (opens in a new tab)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6/ (opens in a new tab)
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX/ (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2024-0039 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-vm8q-m57g-pff3 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2024-27351)Record last updated .