{"id":"UBUNTU-CVE-2020-15225","details":"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.","modified":"2026-05-20T16:04:11.695717236Z","published":"2021-04-29T21:15:00Z","upstream":["CVE-2020-15225"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2020-15225"},{"type":"REPORT","url":"https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973"},{"type":"REPORT","url":"https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b"},{"type":"REPORT","url":"https://pypi.org/project/django-filter/"},{"type":"REPORT","url":"https://github.com/carltongibson/django-filter/releases/tag/2.4.0"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2020-15225"}],"affected":[{"package":{"name":"django-filter","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.9.2-1","0.11.0-1","0.11.0-2"],"ecosystem_specific":{"binaries":[{"binary_name":"django-filter","binary_version":"0.11.0-2"},{"binary_name":"python-django-filter","binary_version":"0.11.0-2"},{"binary_version":"0.11.0-2","binary_name":"python-django-filters"},{"binary_name":"python3-django-filters","binary_version":"0.11.0-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.0.4-1","1.0.4-2","1.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-django-filters","binary_version":"1.1.0-1"},{"binary_name":"python3-django-filters","binary_version":"1.1.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-django-filters","binary_version":"2.1.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.4.0-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-django-filters","binary_version":"2.4.0-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["23.2-3","23.3post1-1","23.4-1","23.5-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-django-filters","binary_version":"23.5-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.1-1","25.1-2"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-django-filters","binary_version":"25.1-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}},{"package":{"name":"django-filter","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/django-filter?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["25.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"25.1-2","binary_name":"python3-django-filters"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2020/UBUNTU-CVE-2020-15225.json"}}],"schema_version":"1.7.5","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_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"},{"type":"Ubuntu","score":"medium"}]}