CVEfocus › CVE database › CVE-2020-15225

CVE-2020-15225Denial of Service vulnerability in django-filter

CVSS 7.5 HighEPSS 1.8% (higher than 79% of CVEs)Published 2021-04-29Updated 2024-08-04Assigner: GitHub_M

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.

CWE-681

What to do

Fixed builds are available from Debian, PyPI: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
1Fix pending
3Under investigation
5Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10django-filterFix pendingUBUNTU-CVE-2020-15225
Ubuntu 26.04django-filterUnder investigationUBUNTU-CVE-2020-15225
Ubuntu 25.10django-filterWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-15225
Ubuntu 24.04django-filterUnder investigationUBUNTU-CVE-2020-15225
Ubuntu 22.04django-filterUnder investigationUBUNTU-CVE-2020-15225
Ubuntu 20.04django-filterWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-15225
Ubuntu 18.04django-filterWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-15225
Ubuntu 16.04django-filterWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2020-15225
Ubuntu 14.04django-filterWill not fix
Ubuntu decided not to fix this in this release
Debian 14django-filterFixed2.4.0-1DEBIAN-CVE-2020-15225
Debian 13django-filterFixed2.4.0-1DEBIAN-CVE-2020-15225
Debian 12django-filterFixed2.4.0-1DEBIAN-CVE-2020-15225
PyPI librarydjango-filterFixed2.4.0PYSEC-2021-64

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.