{"id":"GHSA-x7gm-rfgv-w973","summary":"Potential DoS with NumberFilter conversion to integer values.","details":"### Impact\n\nAutomatically 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. \n\n### Patches\n\nVersion 2.4.0+ applies a `MaxValueValidator` with a a default `limit_value` of 1e50 to the form field used by `NumberFilter` instances. \n\nIn 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. \n\n### Workarounds\n\nUsers may manually apply an equivalent validator if they are not able to upgrade.  \n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the django-filter repo](https://github.com/carltongibson/django-filter)\n\nThanks to Marcin Waraksa for the report. \n","aliases":["CVE-2020-15225","PYSEC-2021-64"],"modified":"2026-07-08T06:27:58.269813345Z","published":"2020-09-28T19:05:29Z","database_specific":{"severity":"HIGH","github_reviewed":true,"github_reviewed_at":"2020-09-28T19:04:39Z","nvd_published_at":"2021-04-29T21:15:00Z","cwe_ids":["CWE-681"]},"references":[{"type":"WEB","url":"https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15225"},{"type":"WEB","url":"https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b"},{"type":"PACKAGE","url":"https://github.com/carltongibson/django-filter"},{"type":"WEB","url":"https://github.com/carltongibson/django-filter/releases/tag/2.4.0"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX"},{"type":"WEB","url":"https://pypi.org/project/django-filter"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20210604-0010"}],"affected":[{"package":{"name":"django-filter","ecosystem":"PyPI","purl":"pkg:pypi/django-filter"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.4.0"}]}],"versions":["0.1.0","0.10.0","0.11.0","0.12.0","0.13.0","0.14.0","0.15.0","0.15.1","0.15.2","0.15.3","0.2.0","0.5.0","0.5.1","0.5.2","0.5.3","0.5.4","0.6","0.6a1","0.7","0.8","0.9.0","0.9.1","0.9.2","1.0.0","1.0.1","1.0.2","1.0.3","1.0.4","1.1.0","2.0.0","2.0.0.dev1","2.1.0","2.2.0","2.3.0"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/09/GHSA-x7gm-rfgv-w973/GHSA-x7gm-rfgv-w973.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"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"}]}