{"cve":"CVE-2021-35042","nvd":{"published":"2021-07-02T10:15:07.653","modified":"2026-06-17T03:57:01.887","status":"Modified","description":"Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection if order_by is untrusted input from a client of a web application.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-89"],"references":["https://docs.djangoproject.com/en/3.2/releases/security/","https://groups.google.com/forum/#%21forum/django-announce","https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/","https://security.netapp.com/advisory/ntap-20210805-0008/","https://www.djangoproject.com/weblog/2021/jul/01/security-releases/"],"products":["djangoproject:django","fedoraproject:fedora"],"source":"nvd","synced_at":"2026-10-19T21:20:07.141963181+00:00"},"epss":{"cve":"CVE-2021-35042","score":0.44369,"percentile":0.98763,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-xpfp-f569-q3p2","url":"https://osv.dev/vulnerability/GHSA-xpfp-f569-q3p2","summary":"SQL Injection in Django","modified":"2025-02-21T05:30:56.014475Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.2a1 <3.2.5"],"fixed":["3.2.5"]},{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.0a1 <3.1.13"],"fixed":["3.1.13"]}]},{"id":"PYSEC-2021-109","url":"https://osv.dev/vulnerability/PYSEC-2021-109","summary":"","modified":"2023-12-06T01:01:17.903404Z","packages":[{"ecosystem":"PyPI","name":"django","purl":"pkg:pypi/django","ranges":[">=3.1 <3.1.13",">=3.2 <3.2.5"],"fixed":["3.1.13","3.2.5"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}