Live threats

All CVEs / Djangoproject

CVE-2024-56374Djangoproject Django

High 7.5 No auth needed

Priority
60
CVSS 3.1
7.5
EPSS
1.7%
probability of exploitation in 30 days · percentile 78
Auth required
No
Published
Jan 14, 2025
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-770
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Django.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django ≥ 5.1 < 5.1.5 5.1.5 pip install "django>=5.1.5"
PyPI django ≥ 5.0 < 5.0.11 5.0.11 pip install "django>=5.0.11"
PyPI django ≥ 4.2 < 4.2.18 4.2.18 pip install "django>=4.2.18"
PyPI django ≥ 5.1 < 5.1.5 5.1.5 pip install "django>=5.1.5"
PyPI django ≥ 5.0 < 5.0.11 5.0.11 pip install "django>=5.0.11"
PyPI django ≥ 4.2 < 4.2.18 4.2.18 pip install "django>=4.2.18"
PyPI django ≥ 5.1 < 5.1.5 5.1.5 pip install "django>=5.1.5"
PyPI django ≥ 5.0 < 5.0.11 5.0.11 pip install "django>=5.0.11"
PyPI django ≥ 4.2 < 4.2.18 4.2.18 pip install "django>=4.2.18"

Per OSV / GitHub Advisories (GHSA-qcgg-j2x8-h9g8, PYSEC-2025-1). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
djangoprojectdjango≥ 4.2 < 4.2.18
djangoprojectdjango≥ 5.0 < 5.0.11
djangoprojectdjango≥ 5.1 < 5.1.5
debiandebian_linux11.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.