CVE-2020-15225
Denial of Service vulnerability in django-filter
Also known as GHSA-x7gm-rfgv-w973, PYSEC-2021-64
Mitigation
- Upgrade django-filter to 2.4.0 or later.
Who should check
- Projects that depend on PyPI package django-filter (< 2.4.0)
- Anyone running carltongibson django-filter < 2.4.0
Vulnerability facts
- Affected
- django-filter < 2.4.0
- Fixed in
- 2.4.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 1.80% chance of exploitation in 30 days (percentile 79, 2026-11-26)
- CWE
- CWE-681
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI django-filter | < 2.4.0 | 2.4.0 | osv |
| carltongibson django-filter | < 2.4.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-15225. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-15225.md Affected: django-filter < 2.4.0 Fixed in: 2.4.0 Steps: 1. Search this machine and project for django-filter (PyPI), carltongibson django-filter: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
- https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX/
- https://nvd.nist.gov/vuln/detail/CVE-2020-15225
Patches
Other
- https://github.com/carltongibson/django-filter/releases/tag/2.4.0
- https://pypi.org/project/django-filter/
- https://security.netapp.com/advisory/ntap-20210604-0010/
- https://github.com/carltongibson/django-filter
- https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX
- https://pypi.org/project/django-filter
- https://security.netapp.com/advisory/ntap-20210604-0010
FAQ
Is CVE-2020-15225 being exploited?
There is no confirmed exploitation: CVE-2020-15225 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.80% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-15225?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2020-15225?
django-filter < 2.4.0.
Is there a fix for CVE-2020-15225?
Yes. Fixed in 2.4.0. Upgrade django-filter to 2.4.0 or later.
How do I check if I'm affected by CVE-2020-15225?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.