Vulnerability in Carltongibson Django-Filter
CVE-2020-15225
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.018, 78.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Carltongibson Django-Filter — versions < 2.4.0
- Django-Filter Project
- Fedoraproject Fedora — versions 34, 35
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 3 other repositories (ARPSyndicate/cvemon, n0-traces/cve_monitor, r4wr4m/DjangoFilter_DoS_POC). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973 (Third Party Advisory)
- github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85… (Patch, Third Party Advisory)
- github.com/carltongibson/django-filter/releases/tag/2.4.0 (Third Party Advisory, Release Notes)
- pypi.org/project/django-filter/ (Product, Third Party Advisory)
- security.netapp.com/advisory/ntap-20210604-0010/ (Third Party Advisory)
- FEDORA-2021-f213fea441 (vendor-advisory)
- FEDORA-2021-1acbee2459 (vendor-advisory)
- FEDORA-2023-4dee6d0a76 (vendor-advisory)