{"id":"CVE-2024-56374","aliases":["CVE-2024-56374","GHSA-qcgg-j2x8-h9g8","BIT-DJANGO-2024-56374","PYSEC-2025-1"],"related":[],"kind":"vulnerability","state":"published","title":"Django has a potential denial-of-service vulnerability in IPv6 validation","summary":"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.)","summarySource":"cvelist","descriptions":[{"lang":"en","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.)","source":"cvelist"},{"lang":"en","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.)","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se descubrió un problema en Django 5.1 antes de 5.1.5, 5.0 antes de 5.0.11 y 4.2 antes de 4.2.18. La falta de aplicación de un límite superior en las cadenas que se pasan al realizar la validación de IPv6 podría provocar un posible ataque de denegación de servicio. Las funciones privadas y no documentadas clean_ipv6_address e is_valid_ipv6_address son vulnerables, al igual que el campo de formulario django.forms.GenericIPAddressField. (El campo de modelo django.db.models.GenericIPAddressField no se ve afectado).","source":"nvd"}],"published":"2025-01-14T00:00:00.000Z","modified":"2026-09-10T03:50:22.125Z","severity":{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","score":5.8,"rating":"MEDIUM"},"severities":[{"scorer":"mitre","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","score":5.8,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L","score":5.8,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-770"],"affected":[{"ranges":[{"type":"custom","introduced":"4.2","fixed":"4.2.18","status":"affected"},{"type":"custom","introduced":"5.0","fixed":"5.0.11","status":"affected"},{"type":"custom","introduced":"5.1","fixed":"5.1.5","status":"affected"}],"vendor":"djangoproject","product":"Django","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.5"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.11"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.18"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.5"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.11"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.18"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"4.2","fixed":"4.2.18"},{"status":"affected","introduced":"5.0","fixed":"5.0.11"},{"status":"affected","introduced":"5.1","fixed":"5.1.5"}],"vendor":"djangoproject","product":"django","cpe":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"5.1","status":"affected","fixed":"5.1.5"},{"type":"ecosystem","introduced":"5.0","status":"affected","fixed":"5.0.11"},{"type":"ecosystem","introduced":"4.2","status":"affected","fixed":"4.2.18"}],"ecosystem":"PyPI","package":"django","purl":"pkg:pypi/django","source":"pysec"},{"ranges":[{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"5.1.5"}],"ecosystem":"Bitnami","package":"django","purl":"pkg:bitnami/django","source":"bitnami"}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"https://groups.google.com/g/django-announce","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://www.djangoproject.com/weblog/2025/jan/14/security-releases/","tags":["advisory","article","vendor-advisory"],"sources":["cvelist","nvd","pysec","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2025/01/14/2","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00024.html","tags":["advisory","mailing-list","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56374","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/django/django/commit/4806731e58f3e8700a3c802e77899d54ac6021fe","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/ad866a1ca3e7d60da888d25d27e46a8adb2ed36e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/ca2be7724e1244a4cb723de40a070f873c6e94bf","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django/commit/e8d4a2005955dcf962193600b53bf461b190b455","tags":["web"],"sources":["ghsa"]},{"url":"https://docs.djangoproject.com/en/dev/releases/security","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/django/django","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2025-1.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://www.djangoproject.com/weblog/2025/jan/14/security-releases","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-qcgg-j2x8-h9g8","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2025-01-15T19:40:35.398Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-56374","url":"https://www.cve.org/CVERecord?id=CVE-2024-56374","licence":"CVE Terms of Use","modified":"2025-02-12T20:31:20.698Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qcgg-j2x8-h9g8","url":"https://github.com/advisories/GHSA-qcgg-j2x8-h9g8","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:22.125Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-56374","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-56374","licence":"Public domain","modified":"2026-06-17T08:12:08.040Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2025-1","url":"https://osv.dev/vulnerability/PYSEC-2025-1","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:06.456Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-DJANGO-2024-56374","url":"https://osv.dev/vulnerability/BIT-DJANGO-2024-56374","licence":"Apache-2.0","modified":"2026-09-08T08:46:36.480Z"}],"updatedAt":"2026-11-25T22:58:51.027Z","epss":{"score":0.01277,"percentile":0.70792,"date":"2026-12-01T12:00:22.000Z"}}