PYSEC-2021-64

See a problem?
Import Source
https://github.com/pypa/advisory-database/blob/main/vulns/django-filter/PYSEC-2021-64.yaml
JSON Data
https://api.test.osv.dev/v1/vulns/PYSEC-2021-64
Aliases
Published
2021-04-29T21:15:00Z
Modified
2023-11-01T04:52:01.128513Z
Summary
[none]
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.

References

Affected packages

PyPI / django-filter

Package

Affected ranges

Type
GIT
Repo
https://github.com/carltongibson/django-filter
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.4.0

Affected versions

0.*

0.1.0
0.2.0
0.5.0
0.5.1
0.5.2
0.5.3
0.5.4
0.6a1
0.6
0.7
0.8
0.9.0
0.9.1
0.9.2
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

1.*

1.0.0
1.0.1
1.0.2
1.0.3
1.0.4
1.1.0

2.*

2.0.0.dev1
2.0.0
2.1.0
2.2.0
2.3.0