NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · PyPI

CVE-2024-56374: Django has a potential denial-of-service vulnerability in IPv6 validation

mediumCVSS 3.1 5.8GHSA-qcgg-j2x8-h9g8

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 cleanipv6address and isvalidipv6address are vulnerable, as is the django.forms.GenericIPAddressField form field.

Published Jan 14, 2025 · Updated May 20, 2025

Affected packages

Django

Ecosystem
PyPI
Affected
>= 5.1, < 5.1.5
Fixed in
5.1.5
Check
pip show Django

Django

Ecosystem
PyPI
Affected
>= 5.0, < 5.0.11
Fixed in
5.0.11
Check
pip show Django

Django

Ecosystem
PyPI
Affected
>= 4.2, < 4.2.18
Fixed in
4.2.18
Check
pip show Django

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to zly123987.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More PyPI vulnerabilities

All PyPI entries