{"schema_version":"1.9.0","id":"BIT-django-2021-35042","published":"2024-03-06T10:54:20.393Z","modified":"2026-09-08T08:46:26.608240638Z","aliases":["CVE-2021-35042","GHSA-xpfp-f569-q3p2","PYSEC-2021-109"],"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.","affected":[{"package":{"name":"django","ecosystem":"Bitnami","purl":"pkg:bitnami/django"},"ranges":[{"type":"SEMVER","events":[{"introduced":"3.1.0"},{"fixed":"3.1.13"},{"introduced":"3.2.0"},{"fixed":"3.2.5"}]}],"database_specific":{"source":"https://github.com/bitnami/vulndb/tree/main/data/django/BIT-django-2021-35042.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}],"references":[{"type":"ADVISORY","url":"https://docs.djangoproject.com/en/3.2/releases/security/"},{"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":"ADVISORY","url":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/"},{"type":"ADVISORY","url":"https://www.openwall.com/lists/oss-security/2021/07/02/2"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35042"}],"database_specific":{"cpes":["cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*"],"severity":"Critical"}}