CVE-2020-15225
Denial of Service vulnerability in django-filter
Reported by github_m · Published April 29, 2021
django-filter is fixed in 340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b and 2.4.0 (PyPI)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| django-filter | PyPI | 340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b, 2.4.0 |
| django-filter | django-filter_project | 2.4.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| carltongibson | django-filter | < 2.4.0 |
| carltongibson | django-filter | |
| PyPI | django-filter | 0 |
| carltongibson | django-filter | 0 |
Timeline
- Sep 28, 2020 CVE Published
- Apr 30, 2021 EPSS Score (30 in total, the first dated here)
- Mar 9, 2026 Security Advisory
- Mar 13, 2026 CVE Updated
- Sep 4, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-15225
vulnetix vdb fixes CVE-2020-15225
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-15225/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2021-f213fea441 vendor-advisory
- FEDORA-2021-1acbee2459 vendor-advisory
- FEDORA-2023-4dee6d0a76 vendor-advisory
- https://nvd.nist.gov/vuln/detail/CVE-2020-15225 advisory
- https://github.com/advisories/GHSA-x7gm-rfgv-w973 advisory
- https://github.com/carltongibson/django-filter url
- https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml advisory
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX url
- https://pypi.org/project/django-filter url
- https://security.netapp.com/advisory/ntap-20210604-0010 advisory