CVE-2022-34265

Publication date 4 July 2022

Last updated 24 July 2024


Ubuntu priority

Cvss 3 Severity Score

9.8 · Critical

Score breakdown

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.

Read the notes from the security team

Status

Package Ubuntu Release Status
python-django 22.04 LTS jammy
Fixed 2:3.2.12-2ubuntu1.1
21.10 impish
Fixed 2:2.2.24-1ubuntu1.5
20.04 LTS focal
Fixed 2:2.2.12-1ubuntu0.12
18.04 LTS bionic
Fixed 1:1.11.11-1ubuntu1.18
16.04 LTS xenial
Not affected
14.04 LTS trusty
Not affected

Notes


alexmurray

original advisory only lists 3.2.x and 4.x as affected but looks like 1.11.x as used in bionic and 2.2.x as used in focal/impish are also likely vulnerable too

Severity score breakdown

Parameter Value
Base score 9.8 · Critical
Attack vector Network
Attack complexity Low
Privileges required None
User interaction None
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References

Related Ubuntu Security Notices (USN)

Other references