Description
An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. The Trunc() and Extract() database functions are subject to SQL injection if untrusted data is used as a kind/lookup_name value. Applications that constrain the lookup name and kind choice to a known safe list are unaffected.
Remediation
References
Related Vulnerabilities
Apache Tomcat CVE-2016-6794 Vulnerability (CVE-2016-6794)
WordPress Plugin Better Search Replace Multiple Unspecified Vulnerabilities (1.0.3)
MediaWiki Incorrect Permission Assignment for Critical Resource Vulnerability (CVE-2023-45364)
ownCloud Exposure of Resource to Wrong Sphere Vulnerability (CVE-2020-36252)