{"id":"CVE-2020-15225","published":"2021-04-29T00:00:00Z","modified":"2024-08-04T13:08:22Z","title":"Denial of Service vulnerability in django-filter","vendor":"carltongibson","product":"django-filter","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01797,"percentile":0.78996,"provenance":"source"},"cwes":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"}],"references":[{"url":"https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973","tags":[]},{"url":"https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b","tags":[]},{"url":"https://github.com/carltongibson/django-filter/releases/tag/2.4.0","tags":[]},{"url":"https://pypi.org/project/django-filter/","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0010/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK/","tags":["vendor-advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX/","tags":["vendor-advisory"]}],"priority":{"score":21.0,"factors":[{"name":"EPSS percentile","points":15.8},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"carltongibson","affectedVersions":[{"vendor":"carltongibson","product":"django-filter","versions":["< 2.4.0"]}],"affected":[{"ecosystem":"PyPI","package":"django-filter","vulnerableRanges":["<2.4.0"],"patched":["2.4.0"],"from":["GHSA-x7gm-rfgv-w973","PYSEC-2021-64"],"provenance":"source"}],"summary":{"text":"The flaw is in django-filter's NumberFilter, the component that converts user-supplied filter values to integers, where automatically generated instances could be exploited by maliciously crafted exponential-format input with very large exponents. An attacker with network access can send such input without authenticating or requiring any user interaction or non-default configuration, causing a denial of service; the fix in version 2.4.0 and later applies a MaxValueValidator with a default limit of 1e50, and users who cannot upgrade may apply an equivalent validator manually.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:11:11Z"},"euvd":{"id":"EUVD-2021-0053","exploited":false,"provenance":"source"}}