| Name | CVE-2024-56374 |
| Description | An issue was discovered in Django 5.1 before 5.1.5, 5.0 before 5.0.11, and 4.2 before 4.2.18. Lack of upper-bound limit enforcement in strings passed when performing IPv6 validation could lead to a potential denial-of-service attack. The undocumented and private functions clean_ipv6_address and is_valid_ipv6_address are vulnerable, as is the django.forms.GenericIPAddressField form field. (The django.db.models.GenericIPAddressField model field is not affected.) |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| References | DLA-4030-1, DSA-6136-1 |
| Debian Bugs | 1093049 |
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|
| python-django (PTS) | bullseye | 2:2.2.28-1~deb11u2 | vulnerable |
| bullseye (security) | 2:2.2.28-1~deb11u12 | fixed |
| bookworm, bookworm (security) | 3:3.2.25-0+deb12u2 | fixed |
| trixie (security), trixie | 3:4.2.28-0+deb13u1 | fixed |
| forky, sid | 3:5.2.15-2 | fixed |
The information below is based on the following data on fixed versions.
Notes
https://www.djangoproject.com/weblog/2025/jan/14/security-releases/
Fixed by: https://github.com/django/django/commit/ad866a1ca3e7d60da888d25d27e46a8adb2ed36e (4.2.18)