{"api_version":"1","generated_at":"2026-04-22T23:09:05+00:00","cve":"CVE-2021-35042","urls":{"html":"https://cve.report/CVE-2021-35042","api":"https://cve.report/api/cve/CVE-2021-35042.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2021-35042","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2021-35042"},"summary":{"title":"CVE-2021-35042","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.","state":"PUBLIC","assigner":"cve@mitre.org","published_at":"2021-07-02 10:15:00","updated_at":"2023-11-07 03:36:00"},"problem_types":["CWE-89"],"metrics":[],"references":[{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/","name":"FEDORA-2021-78e501d62a","refsource":"","tags":[],"title":"[SECURITY] Fedora 34 Update: python-django-3.1.13-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/forum/#%21forum/django-announce","name":"https://groups.google.com/forum/#%21forum/django-announce","refsource":"","tags":[],"title":"Redirecting to Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/","name":"FEDORA-2021-78e501d62a","refsource":"FEDORA","tags":[],"title":"[SECURITY] Fedora 34 Update: python-django-3.1.13-1.fc34 - package-announce - Fedora Mailing-Lists","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://groups.google.com/forum/#!forum/django-announce","name":"https://groups.google.com/forum/#!forum/django-announce","refsource":"MISC","tags":[],"title":"Redirecting to Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","name":"https://docs.djangoproject.com/en/3.2/releases/security/","refsource":"MISC","tags":[],"title":"Archive of security issues | Django documentation | Django","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.openwall.com/lists/oss-security/2021/07/02/2","name":"https://www.openwall.com/lists/oss-security/2021/07/02/2","refsource":"CONFIRM","tags":[],"title":"oss-security - Django: CVE-2021-35042: Potential SQL injection via unsanitized\n QuerySet.order_by() input","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/","name":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/","refsource":"CONFIRM","tags":[],"title":"Django security releases issued: 3.2.5 and 3.1.13 | Weblog | Django","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://security.netapp.com/advisory/ntap-20210805-0008/","name":"https://security.netapp.com/advisory/ntap-20210805-0008/","refsource":"CONFIRM","tags":[],"title":"CVE-2021-35042 Django Vulnerability in NetApp Products | NetApp Product Security","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-35042","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-35042","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2021","cve_id":"35042","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"djangoproject","cpe5":"django","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2021","cve_id":"35042","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"fedoraproject","cpe5":"fedora","cpe6":"34","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2021-35042","qid":"281824","title":"Fedora Security Update for python (FEDORA-2021-78e501d62a)"},{"cve":"CVE-2021-35042","qid":"296060","title":"Oracle Solaris 11.4 Support Repository Update (SRU) 37.0.1.101.1 Missing (CPUJUL2021)"},{"cve":"CVE-2021-35042","qid":"375743","title":"Django Framework SQL Injection Vulnerability"},{"cve":"CVE-2021-35042","qid":"501675","title":"Alpine Linux Security Update for py3-django"},{"cve":"CVE-2021-35042","qid":"505299","title":"Alpine Linux Security Update for py3-django"},{"cve":"CVE-2021-35042","qid":"980629","title":"Python (pip) Security Update for Django (GHSA-xpfp-f569-q3p2)"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2021-35042","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"url":"https://groups.google.com/forum/#!forum/django-announce","refsource":"MISC","name":"https://groups.google.com/forum/#!forum/django-announce"},{"url":"https://docs.djangoproject.com/en/3.2/releases/security/","refsource":"MISC","name":"https://docs.djangoproject.com/en/3.2/releases/security/"},{"refsource":"CONFIRM","name":"https://www.openwall.com/lists/oss-security/2021/07/02/2","url":"https://www.openwall.com/lists/oss-security/2021/07/02/2"},{"refsource":"CONFIRM","name":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/","url":"https://www.djangoproject.com/weblog/2021/jul/01/security-releases/"},{"refsource":"CONFIRM","name":"https://security.netapp.com/advisory/ntap-20210805-0008/","url":"https://security.netapp.com/advisory/ntap-20210805-0008/"},{"refsource":"FEDORA","name":"FEDORA-2021-78e501d62a","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/SS6NJTBYWOX6J7G4U3LUOILARJKWPQ5Y/"}]}},"nvd":{"publishedDate":"2021-07-02 10:15:00","lastModifiedDate":"2023-11-07 03:36:00","problem_types":["CWE-89"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":9.8,"baseSeverity":"CRITICAL"},"exploitabilityScore":3.9,"impactScore":5.9},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:P/I:P/A:P","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL","baseScore":7.5},"severity":"HIGH","exploitabilityScore":10,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"3.2","versionEndExcluding":"3.2.5","cpe_name":[]},{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:*","versionStartIncluding":"3.1","versionEndExcluding":"3.1.13","cpe_name":[]}]},{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:o:fedoraproject:fedora:34:*:*:*:*:*:*:*","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2021","CveId":"35042","Ordinal":"210523","Title":"CVE-2021-35042","CVE":"CVE-2021-35042","Year":"2021"},"notes":[{"CveYear":"2021","CveId":"35042","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2021","CveId":"35042","Ordinal":"2","NoteData":"2021-07-02","Type":"Other","Title":"Published"},{"CveYear":"2021","CveId":"35042","Ordinal":"3","NoteData":"2021-08-17","Type":"Other","Title":"Modified"}]}}}