{"id":"CVE-2024-27351","aliases":["CVE-2024-27351","GHSA-vm8q-m57g-pff3","BIT-DJANGO-2024-27351","PYSEC-2024-47"],"related":[],"kind":"vulnerability","state":"published","title":"Regular expression denial-of-service in Django","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En Django 3.2 anterior a 3.2.25, 4.2 anterior a 4.2.11 y 5.0 anterior a 5.0.3, el método django.utils.text.Truncator.words() (con html=True) y el filtro de plantilla truncatewords_html están sujetos a un potencial Ataque de denegación de servicio de expresión regular a través de una cadena manipulada. NOTA: este problema existe debido a una solución incompleta para CVE-2019-14232 y CVE-2023-43665.","source":"nvd"}],"published":"2024-03-15T00:00:00.000Z","modified":"2026-09-10T03:50:10.784Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H","score":5.3,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-1333"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"5.0","fixed":"5.0.3","status":"affected"}],"vendor":"django-rest-framework","product":"django_rest_framework","cpe":"cpe:2.3:a:django-rest-framework:django_rest_framework:*:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.25"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.11"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.3"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"3.2","fixed":"3.2.25"},{"status":"affected","introduced":"4.2","fixed":"4.2.11"},{"status":"affected","introduced":"5.0","fixed":"5.0.3"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"3.2","status":"affected","fixed":"3.2.25"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.11"},{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.3"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"3.2.0","status":"affected","fixed":"3.2.25"},{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.11"},{"type":"semver","introduced":"5.0.0","status":"affected","fixed":"5.0.3"}],"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","pysec","bitnami"]},{"url":"https://docs.djangoproject.com/en/5.0/releases/security/","tags":["advisory","release-notes","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2024/mar/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/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX/","tags":["broken-link","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6/","tags":["broken-link","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D/","tags":["broken-link","vendor-advisory","web","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2024/03/04/1","tags":["discussion","mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/django/django/commit/3394fc6132436eca89e997083bae9985fb7e761e","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/django/django/commit/3c9a2771cc80821e041b16eb36c1c37af5349d4a","tags":["fix","patch","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/django/django/commit/072963e4c4d0b3a7a8c5412bc0c7d27d1a9c3521","tags":["fix","patch","web"],"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://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX/","tags":["web"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27351","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://docs.djangoproject.com/en/5.0/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-2024-47.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6","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/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2024/mar/04/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-vm8q-m57g-pff3","tags":["advisory","web"],"sources":["pysec","bitnami"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-04-20T19:41:21.960Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-27351","url":"https://www.cve.org/CVERecord?id=CVE-2024-27351","licence":"CVE Terms of Use","modified":"2025-11-04T18:30:07.884Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-vm8q-m57g-pff3","url":"https://github.com/advisories/GHSA-vm8q-m57g-pff3","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:10.784Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-27351","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-27351","licence":"Public domain","modified":"2026-06-17T07:19:42.607Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2024-47","url":"https://osv.dev/vulnerability/PYSEC-2024-47","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:04.763Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-27351","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-27351","licence":"Apache-2.0","modified":"2026-09-08T08:46:37.523Z"}],"updatedAt":"2026-11-25T22:58:37.600Z","epss":{"score":0.01854,"percentile":0.79778,"date":"2026-12-01T12:00:22.000Z"}}