Live threats

All CVEs / Django-filter Project

CVE-2020-15225Django-filter Project Django-filter

Medium 6.5

Priority
39
CVSS 3.1
6.5
EPSS
1.8%
probability of exploitation in 30 days · percentile 79
Auth required
Yes
Published
Apr 29, 2021
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-681
Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

django-filter is a generic system for filtering Django QuerySets based on user selections. In django-filter before version 2.4.0, automatically generated `NumberFilter` instances, whose value was later converted to an integer, were subject to potential DoS from maliciously input using exponential format with sufficiently large exponents. Version 2.4.0+ applies a `MaxValueValidator` with a a default `limit_value` of 1e50 to the form field used by `NumberFilter` instances. In addition, `NumberFilter` implements the new `get_max_validator()` which should return a configured validator instance to customise the limit, or else `None` to disable the additional validation. Users may manually apply an equivalent validator if they are not able to upgrade.

Original NVD text.

What to do

  1. Apply the vendor's security update for Django-filter.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI django-filter < 2.4.0 2.4.0 pip install "django-filter>=2.4.0"
PyPI django-filter < 2.4.0 2.4.0 pip install "django-filter>=2.4.0"

Per OSV / GitHub Advisories (GHSA-x7gm-rfgv-w973, PYSEC-2021-64). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
django-filter_projectdjango-filter< 2.4.0
fedoraprojectfedora34
fedoraprojectfedora35

Official sources

References

Links published by the sources. Open them with care.