Skip to content
OpenAdvisories
Medium · 5.8 CVE-2024-56374 BIT-django-2024-56374EUVD-2025-0001GHSA-qcgg-j2x8-h9g8PYSEC-2025-1

Django has a potential denial-of-service vulnerability in IPv6 validation

Published Jan 14, 2025 · Updated Feb 12, 2025 · Assigned by mitre

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 products

VendorProductAffectedFixed
djangoproject Django 4.2 – < 4.2.18, 5.0 – < 5.0.11, 5.1 – < 5.1.5 4.2.18

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 python-django 3:4.2.18-1 —
Debian 13 python-django 3:4.2.18-1 —
Debian 12 python-django 3:3.2.25-0+deb12u1 DSA-6136-1
Debian 11 python-django 2:2.2.28-1~deb11u5 DLA-4030-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS python-django 3:4.2.11-1ubuntu1.5 USN-7205-1
Ubuntu 22.04 LTS python-django 2:3.2.12-2ubuntu1.16 USN-7205-1
Ubuntu 20.04 LTS python-django 2:2.2.12-1ubuntu0.27 USN-7205-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS python-django 1:1.11.11-1ubuntu1.21+esm9 USN-7205-2
Ubuntu Pro 16.04 LTS python-django No fix yet —
Ubuntu Pro 14.04 LTS python-django No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Satellite Utils 6 foreman +1 3.12.0.6-1.el8sat RHSA-2025:2399
Red Hat Satellite Utils 6 satellite +1 6.16.3-2.el8sat RHSA-2025:2399
Red Hat Satellite Maintenance 6 rubygem-foreman_maintain 1:1.7.12-1.el8sat RHSA-2025:2399
Red Hat Satellite Capsule 6 foreman +2 3.12.0.6-1.el8sat RHSA-2025:2399
Red Hat Satellite Capsule 6 foreman-installer +1 1:3.12.0.4-2.el8sat RHSA-2025:2399
Red Hat Satellite Capsule 6 python-django +1 4.2.19-1.el8pc RHSA-2025:4576, RHSA-2025:2399
Red Hat Satellite Capsule 6 python-jinja2 +1 3.1.5-1.el8pc RHSA-2025:4576, RHSA-2025:2399
Red Hat Satellite Capsule 6 python-pulp-cli +3 0.29.2-2.el8pc RHSA-2025:2399
Red Hat Satellite Capsule 6 python-pulp-container +1 2.20.5-1.el8pc RHSA-2025:2399
Red Hat Satellite Capsule 6 python-pulpcore +1 3.49.33-1.el8pc RHSA-2025:2399
Red Hat Satellite Capsule 6 python-requests +1 2.32.3-2.el8pc RHSA-2025:2399
Red Hat Satellite Capsule 6 rubygem-foreman_maintain 1:1.7.12-1.el8sat RHSA-2025:2399
Red Hat Satellite Capsule 6 rubygem-rack 2.2.13-1.el9sat RHSA-2025:4576
Red Hat Satellite Capsule 6 satellite +2 6.16.3-2.el8sat RHSA-2025:2399
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Satellite 6 candlepin +1 4.4.21-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 foreman +14 3.12.0.6-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 foreman-installer +1 1:3.12.0.4-2.el8sat RHSA-2025:2399
Red Hat Satellite 6 python-django +1 4.2.19-1.el8pc RHSA-2025:4576, RHSA-2025:2399
Red Hat Satellite 6 python-jinja2 +1 3.1.5-1.el8pc RHSA-2025:4576, RHSA-2025:2399
Red Hat Satellite 6 python-pulp-cli +3 0.29.2-2.el8pc RHSA-2025:2399
Red Hat Satellite 6 python-pulp-container +1 2.20.5-1.el8pc RHSA-2025:2399
Red Hat Satellite 6 python-pulpcore +1 3.49.33-1.el8pc RHSA-2025:2399
Red Hat Satellite 6 python-requests +1 2.32.3-2.el8pc RHSA-2025:2399
Red Hat Satellite 6 rubygem-foreman_ansible 14.2.3-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-foreman_maintain 1:1.7.12-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-foreman_openscap 9.0.5-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-foreman_remote_execution +1 13.2.7-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-foreman_theme_satellite 13.3.5-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-graphql 1.13.24-1.el9sat RHSA-2025:4576
Red Hat Satellite 6 rubygem-katello 4.14.0.8-1.el8sat RHSA-2025:2399
Red Hat Satellite 6 rubygem-rack 2.2.13-1.el9sat RHSA-2025:4576
Red Hat Satellite 6 satellite +2 6.16.3-2.el8sat RHSA-2025:2399
Red Hat Satellite 6 scap-security-guide-satellite 1.0.0-1.el8sat RHSA-2025:2399
Red Hat Ansible Automation Platform Inside 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform Developer 2 python3.11-django 4.2.18-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform Developer 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform 2 automation-controller-venv-tower 4.6.7-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform 2 python3.11-django 4.2.18-1.el8ap RHSA-2025:0777
Red Hat Ansible Automation Platform 2 python3.11-jinja2 3.1.5-1.el8ap RHSA-2025:0777
ReleasePackageFixed inAdvisory
SLES 15 SP6 python-Django 4.2.11-150600.3.15.1 SUSE-SU-2025:0149-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python-Django 5.1.5-1.1 openSUSE-SU-2025:14662-1
openSUSE Tumbleweed python-Django4 4.2.18-1.1 openSUSE-SU-2025:14651-1
openSUSE Tumbleweed python-Django5 5.2.16-1.1 openSUSE-SU-2026:11270-1
openSUSE Tumbleweed python-Django6 6.0-1.1 openSUSE-SU-2026:10005-1
openSUSE Leap 15.6 python-Django 4.2.11-150600.3.15.1 SUSE-SU-2025:0149-1
ReleasePackageFixed inAdvisory
Alpine v3.24 py3-django 4.2.20-r0 —
Alpine v3.23 py3-django 4.2.20-r0 —
Alpine v3.22 py3-django 4.2.20-r0 —
Alpine v3.21 py3-django 4.2.20-r0 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling py3-django 5.1.5-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI django >= 5.1, < 5.1.5 5.1.5 GHSA-qcgg-j2x8-h9g8
PyPI django >= 5.0, < 5.0.11 5.0.11 GHSA-qcgg-j2x8-h9g8
PyPI django >= 4.2, < 4.2.18 4.2.18 GHSA-qcgg-j2x8-h9g8
PyPI django >= 5.1, < 5.1.5 · >= 5.0, < 5.0.11 · >= 4.2, < 4.2.18 5.1.5, 5.0.11, 4.2.18 PYSEC-2025-1

Advisories 13

References