原始 OSV JSON{
"id": "GHSA-x7gm-rfgv-w973",
"aliases": [
"CVE-2020-15225"
],
"details": "### 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. \n",
"summary": "Potential DoS with NumberFilter conversion to integer values.",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.4.0"
}
]
}
],
"package": {
"name": "django-filter",
"ecosystem": "PyPI"
}
}
],
"modified": "2024-09-16T22:10:02Z",
"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_V4",
"score": "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"
}
],
"published": "2020-09-28T19:05:29Z",
"references": [
{
"url": "https://github.com/carltongibson/django-filter/security/advisories/GHSA-x7gm-rfgv-w973",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15225",
"type": "ADVISORY"
},
{
"url": "https://github.com/carltongibson/django-filter/commit/340cf7a23a2b3dcd7183f6a0d6c383e85b130d2b",
"type": "WEB"
},
{
"url": "https://github.com/carltongibson/django-filter",
"type": "PACKAGE"
},
{
"url": "https://github.com/carltongibson/django-filter/releases/tag/2.4.0",
"type": "WEB"
},
{
"url": "https://github.com/pypa/advisory-database/tree/main/vulns/django-filter/PYSEC-2021-64.yaml",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/DPHENTRHRAYFXYPPBT7JRHZRWILRY44S",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/FAT2ZAEF6DM3VFSOHKB7X3ASSHGQHJAK",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/SVJ7AYU6FUSU3F653YCGW5LFD3IULRSX",
"type": "WEB"
},
{
"url": "https://pypi.org/project/django-filter",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20210604-0010",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-681"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2021-04-29T21:15:00Z",
"github_reviewed_at": "2020-09-28T19:04:39Z"
}
}