Security mailing lists by PureSourceCode

CVE-2020-15225

MEDIUM 6.5CVSS 3.1

Potential DoS with NumberFilter conversion to integer values.

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.

Published
29 Apr 2021
Last modified
8 Jul 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-681
Also known as
GHSA-x7gm-rfgv-w973PYSEC-2021-64
Sources
NVDJSONOSV GHSA-x7gm-rfgv-w973JSONOSV PYSEC-2021-64JSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
OSV GitHub CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.0 AV:N/AC:L/Au:S/C:N/I:N/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD django-filter_project django-filter
cpe:2.3:a:django-filter_project:django-filter:*:*:*:*:*:*:*:*
< 2.4.0 2.4.0
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*
= 34
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
OSV PyPI django-filter < 2.4.0 2.4.0

References

History

  • 25 Nov 2026 20:33 UTC · NVD: first stored (published 29 Apr 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 29 Apr 2021)
  • 25 Nov 2026 20:12 UTC · OSV: first stored (published 28 Sep 2020)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.