Name | CVE-2022-34265 |
Description | 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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-3164-1, DSA-5254-1, ELA-640-1 |
Debian Bugs | 1014541 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | jessie, jessie (lts) | 1.7.11-1+deb8u17 | fixed |
stretch (security) | 1:1.10.7-2+deb9u17 | vulnerable | |
stretch (lts), stretch | 1:1.10.7-2+deb9u23 | fixed | |
buster, buster (lts) | 1:1.11.29-1+deb10u12 | fixed | |
buster (security) | 1:1.11.29-1+deb10u11 | fixed | |
bullseye (security), bullseye | 2:2.2.28-1~deb11u2 | fixed | |
bookworm (security), bookworm | 3:3.2.19-1+deb12u1 | fixed | |
sid, trixie | 3:4.2.16-1 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|---|---|---|---|---|---|
python-django | source | jessie | (not affected) | |||
python-django | source | stretch | 1:1.10.7-2+deb9u18 | ELA-640-1 | ||
python-django | source | buster | 1:1.11.29-1+deb10u2 | DLA-3164-1 | ||
python-django | source | bullseye | 2:2.2.28-1~deb11u1 | DSA-5254-1 | ||
python-django | source | (unstable) | 2:4.0.6-1 | 1014541 |
https://www.openwall.com/lists/oss-security/2022/07/04/2
https://www.djangoproject.com/weblog/2022/jul/04/security-releases/
https://github.com/django/django/commit/54eb8a374d5d98594b264e8ec22337819b37443c (main)
https://github.com/django/django/commit/0dc9c016fadb71a067e5a42be30164e3f96c0492 (4.0.6)
https://github.com/django/django/commit/a9010fe5555e6086a9d9ae50069579400ef0685e (3.2.14)
[jessie] - python-django <not-affected> (database functions such as Trunc and Extract added later)