Lucene search

K
osvGoogleOSV:GHSA-P64X-8RXX-WF6Q
HistoryJul 05, 2022 - 12:00 a.m.

Django `Trunc()` and `Extract()` database functions vulnerable to SQL Injection

2022-07-0500:00:53
Google
osv.dev
38

0.183 Low

EPSS

Percentile

96.2%

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.

References