Vulnerability · Published Jan 14, 2025 · Assigned by mitre

CVE-2024-56374

Medium 5.8

In plain English

A medium-severity resource allocation without limits in Django from djangoproject. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.8Medium
Exploit odds (30 days)1.3%top 29.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.)

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.21py3-django4.2.20-r0ALPINE-CVE-2024-56374
Alpine:v3.22py3-django4.2.20-r0ALPINE-CVE-2024-56374
Alpine:v3.23py3-django4.2.20-r0ALPINE-CVE-2024-56374
Alpine:v3.24py3-django4.2.20-r0ALPINE-CVE-2024-56374
Debian:12python-django3:3.2.25-0+deb12u1DSA-6136-1
Debian:12python-django3:3.2.25-0+deb12u1DEBIAN-CVE-2024-56374
Debian:13python-django3:4.2.18-1DEBIAN-CVE-2024-56374
Debian:14python-django3:4.2.18-1DEBIAN-CVE-2024-56374
PyPIdjango4.2.18GHSA-qcgg-j2x8-h9g8
PyPIdjango5.1.5GHSA-qcgg-j2x8-h9g8
PyPIdjango5.0.11GHSA-qcgg-j2x8-h9g8
PyPIdjango4.2.18GHSA-qcgg-j2x8-h9g8
PyPIdjango4.2.18, 5.0.11, 5.1.5PYSEC-2025-1
PyPIdjango5.0.11GHSA-qcgg-j2x8-h9g8
PyPIdjango5.1.5GHSA-qcgg-j2x8-h9g8
Ubuntu:22.04:LTSpython-django2:3.2.12-2ubuntu1.16USN-7205-1
Ubuntu:22.04:LTSpython-django2:3.2.12-2ubuntu1.16UBUNTU-CVE-2024-56374
Ubuntu:24.04:LTSpython-django3:4.2.11-1ubuntu1.5UBUNTU-CVE-2024-56374
Ubuntu:24.04:LTSpython-django3:4.2.11-1ubuntu1.5USN-7205-1

Affected products (as reported)

VendorProductVersions
djangoproject Django 4.2 – before 4.2.185.0 – before 5.0.115.1 – before 5.1.5

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L

References