CVE-2024-45230
JSON

7.5high

Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
25.8% (higher than 98% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-5hgc-2vfp-mqvcBIT-DJANGO-2024-45230PYSEC-2024-102

Description

An issue was discovered in Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
djangoproject djangofrom 5.1 before 5.1.1, from 5.0 before 5.0.9, from 4.2 before 4.2.16, from 4.2.0 before 4.2.16, 5.1CVE List, NVD
django (PyPI)from 5.1 before 5.1.1, from 5.0 before 5.0.9, from 4.2 before 4.2.16GitHub Advisory Database, PyPA Advisory Database
django (Bitnami)from 4.2.0 before 4.2.16, from 5.0.0 before 5.0.9, from 5.1.0 before 5.2.5Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-120CWE-400

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

An issue was discovered in Django 5.1 before 5.1.1, 5.0 before 5.0.9, and 4.2 before 4.2.16. The urlize() and urlizetrunc() template filters are subject to a potential denial-of-service attack via very large inputs with a specific sequence of characters.

NVD (es)

Se descubrió un problema en Django 5.1 anterior a 5.1.1, 5.0 anterior a 5.0.9 y 4.2 anterior a 4.2.16. Los filtros de plantilla urlize() y urlizetrunc() están sujetos a un posible ataque de denegación de servicio mediante entradas muy grandes con una secuencia específica de caracteres.

References

https://docs.djangoproject.com/en/dev/releases/security/advisory, vendor-advisory, web
https://groups.google.com/forum/#%21forum/django-announcepermissions-required, web
https://www.djangoproject.com/weblog/2024/sep/03/security-releases/advisory, article, vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2024-45230advisory, web
https://github.com/django/django/commit/022ab0a75c76ab2ea31dfcc5f2cf5501e378d397web
https://github.com/django/django/commit/813de2672bd7361e9a453ab62cd6e52f96b6525bweb
https://github.com/django/django/commit/d147a8ebbdf28c17cafbbe2884f0bc57e2bf82e2web
https://docs.djangoproject.com/en/dev/releases/securityweb
https://github.com/django/djangopackage
https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-102.yamlweb
https://www.djangoproject.com/weblog/2024/sep/03/security-releasesweb
https://github.com/advisories/GHSA-5hgc-2vfp-mqvcadvisory

Sources

SourceRecordLicence
CVE ListCVE-2024-45230 changed 2025-03-17CVE Terms of Use
GitHub Advisory DatabaseGHSA-5hgc-2vfp-mqvc changed 2024-10-30CC-BY-4.0
NVDCVE-2024-45230 changed 2026-06-17Public domain
PyPA Advisory DatabasePYSEC-2024-102 changed 2026-06-10CC-BY-4.0
Bitnami Vulnerability DatabaseBIT-DJANGO-2024-45230 changed 2026-09-08Apache-2.0