CVE-2024-45230
HIGH 7.5CVSS 3.1Django vulnerable to denial-of-service attack via the urlize() and urlizetrunc() template filters
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.
- Published
- 8 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-120CWE-400
- Also known as
- BIT-django-2024-45230GHSA-5hgc-2vfp-mqvcPYSEC-2024-102
- Sources
- NVDJSONOSV GHSA-5hgc-2vfp-mqvcJSONOSV PYSEC-2024-102JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 4.2.0, < 4.2.16 | 4.2.16 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* |
>= 5.0, < 5.0.9 | 5.0.9 |
| NVD | djangoproject | djangocpe:2.3:a:djangoproject:django:5.1:*:*:*:*:*:*:* |
= 5.1 | |
| OSV | PyPI | django | >= 5.1, < 5.1.1 | 5.1.1 |
| OSV | PyPI | django | >= 5.0, < 5.0.9 | 5.0.9 |
| OSV | PyPI | django | >= 4.2, < 4.2.16 | 4.2.16 |
| OSV | PyPI | django | >= 5.1, < 5.1.1; >= 5.0, < 5.0.9; >= 4.2, < 4.2.16 | 5.1.1, 5.0.9, 4.2.16 |
References
- https://docs.djangoproject.com/en/dev/releases/security/ · Vendor Advisory, WEB
- https://groups.google.com/forum/#%21forum/django-announce · Permissions Required, WEB
- https://www.djangoproject.com/weblog/2024/sep/03/security-releases/ · Vendor Advisory, WEB, ARTICLE
- https://nvd.nist.gov/vuln/detail/CVE-2024-45230 · ADVISORY
- https://github.com/django/django/commit/022ab0a75c76ab2ea31dfcc5f2cf5501e378d397 · WEB
- https://github.com/django/django/commit/813de2672bd7361e9a453ab62cd6e52f96b6525b · WEB
- https://github.com/django/django/commit/d147a8ebbdf28c17cafbbe2884f0bc57e2bf82e2 · WEB
- https://github.com/django/django · PACKAGE
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-102.yaml · WEB
- https://github.com/advisories/GHSA-5hgc-2vfp-mqvc · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 8 Oct 2024)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Oct 2024)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Oct 2024)