# CVE-2020-15225: Denial of Service vulnerability in django-filter

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.80%, higher than 79% of CVEs (2026-12-02)
- Published: 2020-09-28T19:05:29.000Z
- Modified: 2026-07-08T06:27:58.269Z
- Also known as: GHSA-x7gm-rfgv-w973, PYSEC-2021-64
- Weaknesses: CWE-681
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- carltongibson django-filter: < 2.4.0
- django-filter (PyPI): before 2.4.0; before 340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b
- django-filter_project django-filter: before 2.4.0
- fedoraproject fedora: 34; 35

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 4.0 Medium `AV:N/AC:L/Au:S/C:N/I:N/A:P`

## References

- <https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973> (advisory, third-party-advisory, web)
- <https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b> (fix, patch, third-party-advisory, web)
- <https://github.com/carltongibson/django-filter/releases/tag/2.4.0> (release-notes, third-party-advisory, web)
- <https://pypi.org/project/django-filter/> (package, product, third-party-advisory)
- <https://security.netapp.com/advisory/ntap-20210604-0010/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK/> (vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX/> (vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15225> (advisory)
- <https://github.com/carltongibson/django-filter> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK> (web)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX> (web)
- <https://pypi.org/project/django-filter> (web)
- <https://security.netapp.com/advisory/ntap-20210604-0010> (web)

## Sources

- CVE List: [CVE-2020-15225](https://www.cve.org/CVERecord?id=CVE-2020-15225), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-x7gm-rfgv-w973](https://github.com/advisories/GHSA-x7gm-rfgv-w973), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15225](https://nvd.nist.gov/vuln/detail/CVE-2020-15225), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2021-64](https://osv.dev/vulnerability/PYSEC-2021-64), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-15225 · Whole record: https://cve.day/CVE-2020-15225.json · Rebuilt by cve.day 2026-11-25T22:57:57.820Z
