{"answers":{"affected":"3 open source packages ship an affected version, including django-filter. It affects 2 products.","exploited":"There is no known exploitation of CVE-2020-15225 in the wild and no public exploit code.","fix":"Upgrade django-filter to 2.4.0 or later.","what":"CVE-2020-15225 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2021."},"fix_prompt":"Check this codebase for CVE-2020-15225 and fix it if it is affected.\n\nWhat it is: CVE-2020-15225 is a high-severity vulnerability in Fedoraproject Fedora, published on 29 Apr 2021. \nExploitation: There is no known exploitation of CVE-2020-15225 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- django-filter (PyPI): affected all versions; fixed in 2.4.0\n- django-filter (PyPI): affected all versions; fixed in 2.4.0\n- django-filter (PyPI): affected all versions; fixed in 2.4.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-15225/ (Markdown: https://insights.sbomify.com/CVE-2020-15225/index.md)","id":"CVE-2020-15225","markdown":"https://insights.sbomify.com/CVE-2020-15225/index.md","name":"CVE-2020-15225","record":{"aliases":["DEBIAN-CVE-2020-15225","GHSA-x7gm-rfgv-w973","MGASA-2021-0511","PYSEC-2021-64","UBUNTU-CVE-2020-15225"],"analysis":null,"analysis_generated_by":null,"assigner":"GitHub_M","cpe":[{"product":"django-filter","vendor":"django-filter_project"},{"product":"fedora","vendor":"fedoraproject"}],"cvss":{"score":7.5,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","version":"3.1"},"cwes":[{"id":"CWE-681","name":"Incorrect Conversion between Numeric Types"}],"description":"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.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Denial of Service vulnerability in django-filter","id":"CVE-2020-15225","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":null,"year":"2020"},"n_packages":3,"n_references":8,"next":{"headline":"SQL Injection in GLPI Search API","id":"CVE-2020-15226"},"packages":[{"ecosystem":"PyPI","fixed":["2.4.0"],"introduced":["0"],"last_affected":[],"package":"django-filter","purl":null,"source":"GHSA-x7gm-rfgv-w973"},{"ecosystem":"PyPI","fixed":["2.4.0"],"introduced":["0"],"last_affected":[],"package":"django-filter","purl":"pkg:pypi/django-filter","source":"GHSA-x7gm-rfgv-w973"},{"ecosystem":"PyPI","fixed":["2.4.0"],"introduced":["0"],"last_affected":[],"package":"django-filter","purl":"pkg:pypi/django-filter","source":"PYSEC-2021-64"}],"prev":{"headline":"Socket syscalls can leak enclave memory contents in Open Enclave","id":"CVE-2020-15224"},"products":["django-filter"],"published":"2021-04-29","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-04","vendors":["carltongibson"]},"summary":null,"url":"https://insights.sbomify.com/CVE-2020-15225/"}