---
title: "Django 4.0.6 リリースノート"
version: 5.2
locale: ja
source: https://docs.djangoproject.com/ja/5.2/releases/4.0.6/
canonical: https://djangodocs.dev/ja/5.2/releases/4.0.6/
---
# Django 4.0.6 リリースノート

*2022年7月4日*

Django 4.0.6 では 4.0.5 における深刻度 "high" のセキュリティの問題を修正しました。

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

[`Trunc()`](/ja/5.2/ref/models/database-functions/#django.db.models.functions.Trunc) and
[`Extract()`](/ja/5.2/ref/models/database-functions/#django.db.models.functions.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.
