ADVISORIES

Ubuntu CVE Tracker

UBUNTU-CVE-2022-34265

Details

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.

Affected packages

EcosystemPackageAffected versions
Ubuntu:18.04:LTSpython-django
All versions before 1:1.11.11-1ubuntu1.18 (fixed in 1:1.11.11-1ubuntu1.18)
Ubuntu:20.04:LTSpython-django
All versions before 2:2.2.12-1ubuntu0.12 (fixed in 2:2.2.12-1ubuntu0.12)
Ubuntu:22.04:LTSpython-django
All versions before 2:3.2.12-2ubuntu1.1 (fixed in 2:3.2.12-2ubuntu1.1)

References