# Documentazione Django 6.0.7

# Note di rilascio di Django 4.0.6

4 Luglio 2022

Django 4.0.6 fixes a security issue with severity «high» in 4.0.5.

## CVE-2022-34265: Potential SQL injection via `Trunc(kind)` and `Extract(lookup_name)` arguments

`Trunc()` and `Extract()` database functions were subject to SQL injection if untrusted data was used as a `kind`/`lookup_name` value.

Applications that constrain the lookup name and kind choice to a known safe list are unaffected.