# CVE-2024-27351: Regular expression denial-of-service in Django

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.85%, higher than 79% of CVEs (2026-12-01)
- Published: 2024-03-15T00:00:00.000Z
- Modified: 2026-09-10T03:50:10.784Z
- Also known as: GHSA-vm8q-m57g-pff3, BIT-DJANGO-2024-27351, PYSEC-2024-47
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- django-rest-framework django_rest_framework: from 5.0 before 5.0.3
- django (PyPI): from 3.2 before 3.2.25; from 4.2 before 4.2.11; from 5.0 before 5.0.3
- djangoproject django: from 3.2 before 3.2.25; from 4.2 before 4.2.11; from 5.0 before 5.0.3
- django (Bitnami): from 3.2.0 before 3.2.25; from 4.2.0 before 4.2.11; from 5.0.0 before 5.0.3

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://groups.google.com/forum/#%21forum/django-announce> (permissions-required, web)
- <https://docs.djangoproject.com/en/5.0/releases/security/> (advisory, release-notes, vendor-advisory, web)
- <https://www.djangoproject.com/weblog/2024/mar/04/security-releases/> (advisory, article, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX/> (broken-link, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6/> (broken-link, vendor-advisory, web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/> (broken-link, vendor-advisory, web)
- <http://www.openwall.com/lists/oss-security/2024/03/04/1> (discussion, mailing-list, web)
- <https://github.com/django/django/commit/3394fc6132436eca89e997083bae9985fb7e761e> (fix, patch, web)
- <https://github.com/django/django/commit/3c9a2771cc80821e041b16eb36c1c37af5349d4a> (fix, patch, web)
- <https://github.com/django/django/commit/072963e4c4d0b3a7a8c5412bc0c7d27d1a9c3521> (fix, patch, web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6/> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-27351> (advisory, web)
- <https://docs.djangoproject.com/en/5.0/releases/security> (web)
- <https://github.com/django/django> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-47.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D> (web)
- <https://www.djangoproject.com/weblog/2024/mar/04/security-releases> (web)
- <https://github.com/advisories/GHSA-vm8q-m57g-pff3> (advisory, web)

## Sources

- CVE List: [CVE-2024-27351](https://www.cve.org/CVERecord?id=CVE-2024-27351), CVE Terms of Use, modified 2025-11-04
- GitHub Advisory Database: [GHSA-vm8q-m57g-pff3](https://github.com/advisories/GHSA-vm8q-m57g-pff3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2024-27351](https://nvd.nist.gov/vuln/detail/CVE-2024-27351), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2024-47](https://osv.dev/vulnerability/PYSEC-2024-47), CC-BY-4.0, modified 2026-06-10
- Bitnami Vulnerability Database: [BIT-DJANGO-2024-27351](https://osv.dev/vulnerability/BIT-DJANGO-2024-27351), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-27351 · Whole record: https://cve.day/CVE-2024-27351.json · Rebuilt by cve.day 2026-11-25T22:58:37.600Z
