CVE-2024-24680: Django denial-of-service attack in the intcomma template filter
An issue was discovered in Django 3.2 before 3.2.24, 4.2 before 4.2.10, and Django 5.0 before 5.0.2. The intcomma template filter was subject to a potential denial-of-service attack when used with very long strings.
Published Feb 7, 2024 · Updated Nov 4, 2025
Affected packages
django
- Ecosystem
- PyPI
- Affected
- >= 4.2, < 4.2.10
- Fixed in
- 4.2.10
- Check
pip show django
django
- Ecosystem
- PyPI
- Affected
- >= 5.0, < 5.0.2
- Fixed in
- 5.0.2
- Check
pip show django
Django
- Ecosystem
- PyPI
- Affected
- >= 3.2, < 3.2.24
- Fixed in
- 3.2.24
- Check
pip show Django
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
An issue was discovered in Django 3.2 before 3.2.24, 4.2 before 4.2.10, and Django 5.0 before 5.0.2. The intcomma template filter was subject to a potential denial-of-service attack when used with very long strings.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-24680
- https://groups.google.com/forum/#%21forum/django-announce
- https://github.com/django/django/commit/16a8fe18a3b81250f4fa57e3f93f0599dc4895bc
- https://github.com/django/django/commit/55519d6cf8998fe4c8f5c8abffc2b10a7c3d14e9
- https://github.com/django/django/commit/572ea07e84b38ea8de0551f4b4eda685d91d09d2
- https://github.com/django/django/commit/c1171ffbd570db90ca206c30f8e2b9f691243820
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2024-28.yaml
- https://docs.djangoproject.com/en/5.0/releases/security
- https://www.djangoproject.com/weblog/2024/feb/06/security-releases
- https://lists.fedoraproject.org/archives/list/[email protected]/message/ZQJOMNRMVPCN5WMIZ7YSX5LQ7IR2NY4D
- https://lists.fedoraproject.org/archives/list/[email protected]/message/D2JIRXEDP4ZET5KFMAPPYSK663Q52NEX
- https://lists.fedoraproject.org/archives/list/[email protected]/message/SN2PLJGYSAAG5KUVIUFJYKD3BLQ4OSN6
- https://github.com/advisories/GHSA-xxj9-f6rv-m3x4
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More PyPI vulnerabilities
All PyPI entriesCVE-2026-15307
Django GeoDjango spatial lookups allow file writes and outbound requests through GDAL raster parsing
high8.8Aug 4, 2026CVE-2026-15830
Django GeoDjango vulnerable to denial of service through deeply nested geometry collections
medium5.3Aug 4, 2026CVE-2026-48588
Django: cache middleware may expose private responses when unrelated request cookies are present
low3.1Jul 7, 2026CVE-2026-53877
Django: GDALRaster may over-read heap memory when constructed from bytes
medium4.8Jul 7, 2026CVE-2026-53878
Django: DomainNameValidator permits newline characters that may enable HTTP header injection
medium6.1Jul 7, 2026CVE-2026-35193
Django: UpdateCacheMiddleware may disclose private cached responses by omitting Authorization from Vary
low3.1Jun 3, 2026
