CVE-2021-35042

Related Vulnerabilities: CVE-2021-35042  

A flaw was found in django. Unsanitized user input passed to ``QuerySet.order_by()`` could bypass intended column reference validation in path marked for deprecation resulting in a potential SQL injection even if a deprecation warning is emitted. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Description

A flaw was found in django. Unsanitized user input passed to ``QuerySet.order_by()`` could bypass intended column reference validation in path marked for deprecation resulting in a potential SQL injection even if a deprecation warning is emitted. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability.

Mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Additional Information

  • Bugzilla 1975918: CVE-2021-35042 django: potential SQL injection via unsanitized QuerySet.order_by() input
  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
  • FAQ: Frequently asked questions about CVE-2021-35042