{"id":"CVE-2020-15225","aliases":["CVE-2020-15225","GHSA-x7gm-rfgv-w973","PYSEC-2021-64"],"related":[],"kind":"vulnerability","state":"published","title":"Denial of Service vulnerability in django-filter","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"django-filter es un sistema genérico para filtrar Django QuerySets en función de las selecciones del usuario.&#xa0;En django-filter anterior a la versión 2.4.0, las instancias de \"NumberFilter\" generadas automáticamente, cuyo valor se convirtió más tarde en un entero, estaban sujetas a posibles DoS de la entradas maliciosas usando un formato exponencial con exponentes suficientemente grandes.&#xa0;La versión 2.4.0+ aplica un \"MaxValueValidator\" con un \"limit_value\" predeterminado de 1e50 al campo de formulario usado por unas instancias de \"NumberFilter\".&#xa0;Además, \"NumberFilter\" implementa el nuevo \"get_max_validator()\" que debería devolver una instancia de validación configurada para personalizar el límite, o bien \"None\" para deshabilitar una comprobación adicional.&#xa0;Los usuarios pueden aplicar manualmente un validador equivalente si no pueden actualizar.","source":"nvd"}],"published":"2020-09-28T19:05:29.000Z","modified":"2026-07-08T06:27:58.269Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":6.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:S/C:N/I:N/A:P","score":4,"rating":"MEDIUM"}],"cwes":["CWE-681"],"affected":[{"ranges":[{"version":"< 2.4.0","status":"affected"}],"vendor":"carltongibson","product":"django-filter","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"django-filter","purl":"pkg:pypi/django-filter","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.4.0"}],"vendor":"django-filter_project","product":"django-filter","cpe":"cpe:2.3:a:django-filter_project:django-filter:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"34"},{"status":"affected","version":"35"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b"},{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.4.0"}],"ecosystem":"PyPI","package":"django-filter","purl":"pkg:pypi/django-filter","repo":"https://github.com/carltongibson/django-filter","source":"pysec"}],"references":[{"url":"https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973","tags":["advisory","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b","tags":["fix","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://github.com/carltongibson/django-filter/releases/tag/2.4.0","tags":["release-notes","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pypi.org/project/django-filter/","tags":["package","product","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0010/","tags":["third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX/","tags":["vendor-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15225","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/carltongibson/django-filter","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/django-filter","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20210604-0010","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-15225","url":"https://www.cve.org/CVERecord?id=CVE-2020-15225","licence":"CVE Terms of Use","modified":"2024-08-04T13:08:22.886Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-x7gm-rfgv-w973","url":"https://github.com/advisories/GHSA-x7gm-rfgv-w973","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:58.269Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-15225","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-15225","licence":"Public domain","modified":"2026-06-17T02:56:18.477Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-64","url":"https://osv.dev/vulnerability/PYSEC-2021-64","licence":"CC-BY-4.0","modified":"2023-11-08T04:02:34.315Z"}],"updatedAt":"2026-11-25T22:57:57.820Z","epss":{"score":0.01797,"percentile":0.79124,"date":"2026-12-02T12:00:21.000Z"}}