CVE-2020-15225
Django-filter Project Django-filter vulnerability
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 products
Django-filter, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Django-filter Project Django-filter runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b · Patch
- github.com/carltongibson/django-filter/releases/tag/2.4.0 · Third Party Advisory
- github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973 · Third Party Advisory
- pypi.org/project/django-filter/ · Third Party Advisory
- security.netapp.com/advisory/ntap-20210604-0010/ · Third Party Advisory
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/D
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/F
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/S
- nvd.nist.gov/vuln/detail/CVE-2020-15225
- cve.org/CVERecord?id=CVE-2020-15225
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.