{"id":"CVE-2021-35042","aliases":["BIT-django-2021-35042","GHSA-xpfp-f569-q3p2","PYSEC-2021-109"],"url":"https://o3.security/vulnerability/CVE-2021-35042","summary":"SQL Injection in Django","details":"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.","published":"2021-07-02T10:15:07.653Z","modified":"2026-07-15T10:14:35.140918490Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":5,"affectedPackages":[{"ecosystem":"PyPI","name":"django","fixedVersion":"3.2.5"},{"ecosystem":"PyPI","name":"django","fixedVersion":"3.1.13"}],"fix":null,"references":[{"type":"WEB","url":"https://groups.google.com/forum/#%21forum/django-announce"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20210805-0008/"},{"type":"FIX","url":"https://docs.djangoproject.com/en/3.2/releases/security/"},{"type":"FIX","url":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/"},{"type":"FIX","url":"https://www.openwall.com/lists/oss-security/2021/07/02/2"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-07-15T10:14:35.140918490Z"}}