{"id":"CVE-2024-56374","published":"2025-01-14T00:00:00Z","modified":"2025-02-12T20:31:20Z","title":"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","vendor":"djangoproject","product":"Django","tier":"tail","description":{"text":"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.)","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01277,"percentile":0.70675,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":[]},{"url":"https://groups.google.com/g/django-announce","tags":[]},{"url":"https://www.djangoproject.com/weblog/2025/jan/14/security-releases/","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2025/01/14/2","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00024.html","tags":[]}],"priority":{"score":18.2,"factors":[{"name":"EPSS percentile","points":14.13},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"djangoproject","affectedVersions":[{"vendor":"djangoproject","product":"Django","versions":[">= 4.2, < 4.2.18",">= 5.0, < 5.0.11",">= 5.1, < 5.1.5"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-01-15T19:40:35.398718Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"Django","vulnerableRanges":[">=5.1, <5.1.5",">=5.0, <5.0.11",">=4.2, <4.2.18"],"patched":["5.1.5","5.0.11","4.2.18"],"from":["GHSA-qcgg-j2x8-h9g8","PYSEC-2025-1"],"provenance":"source"}],"summary":{"text":"The flaw is in Django's IPv6 validation, where strings passed to it lack an upper-bound length limit; it affects the private functions clean_ipv6_address and is_valid_ipv6_address and the django.forms.GenericIPAddressField form field, while the django.db.models.GenericIPAddressField model field is not affected. An attacker who can send network requests to an application using the affected form field can submit oversized IPv6 strings to cause a denial of service, with no authentication, user interaction, or special configuration required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:36:48Z"},"euvd":{"id":"EUVD-2025-0001","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-djangoproject-django-cve-2014-0474","parents":[{"from":"CVE-2014-0474","to":"CVE-2024-56374","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["django/db/models/fields/__init__.py"],"commits":["https://github.com/django/django/commit/5f0829a27e85d89ad8c433f5c6a7a7d17c9e9292","https://github.com/django/django/commit/985434fb1d6bf2335bf96c6ebf91c3674f1f399f","https://github.com/django/django/commit/4806731e58f3e8700a3c802e77899d54ac6021fe","https://github.com/django/django/commit/ad866a1ca3e7d60da888d25d27e46a8adb2ed36e"],"basis":"shared function","functions":["__init__"]}]}],"packageHistory":[{"cve":"CVE-2024-45231","published":"2024-10-08","fixed":"5.1.1","kev":false},{"cve":"CVE-2024-53907","published":"2024-12-06","fixed":"5.1.4","kev":false},{"cve":"CVE-2024-53908","published":"2024-12-06","fixed":"5.1.4","kev":false},{"cve":"CVE-2024-56374","published":"2025-01-14","fixed":"5.1.5","kev":false},{"cve":"CVE-2025-26699","published":"2025-03-06","fixed":"5.1.7","kev":false,"link":{"from":"CVE-2024-56374","to":"CVE-2025-26699","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"4.2.18","toFixed":"4.2.20","daysApart":51},{"kind":"version-step","provenance":"source","package":"PyPI:Django","fromFixed":"5.0.11","toFixed":"5.0.13","daysApart":51}]}},{"cve":"CVE-2025-27556","published":"2025-04-02","fixed":"5.1.8","kev":false},{"cve":"CVE-2025-32873","published":"2025-05-08","fixed":"5.2.1","kev":false}],"package":"PyPI:Django"}}