CVE-2021-35042

Aliases:GHSA-xpfp-f569-q3p2BIT-django-2021-35042PYSEC-2021-109
Modified
Published: 02 Jul 2021, 09:54
Last modified:04 Aug 2024, 00:33

Vulnerability Summary

Overall Risk (default)
high
70/100
CVSS Score
9.8 CRITICAL
v3.1 (nvd)
EPSS Score
90.9% CRITICAL
91% probability +3.47%
KEV
Not listed
Ransomware
No reports
Public exploits
None found
Dark Web
Not detected

Timeline

02 Jul 2021, 09:54
Published
Vulnerability first disclosed
04 Aug 2024, 00:33
Last Modified
Vulnerability information updated

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 Metrics

  • v4.0CRITICALScore: 9.3CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
  • v3.1CRITICALScore: 9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • v2.0HIGHScore: 7.5AV:N/AC:L/Au:N/C:P/I:P/A:P

EPSS Trends

Current EPSS score: 90.90% Percentile: 100%

Techniques & Countermeasures

  • CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

    The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.

Affected Systems

  • djangoprojectdjango

    ≥ 3.1, < 3.1.13 | ≥ 3.2, < 3.2.5

  • fedoraprojectfedora

    34

  • PyPIdjango

    ≥ 3.2a1, < 3.2.5 | ≥ 3.0a1, < 3.1.13 | ≥ 3.2, < 3.2.5

References (18)