Name | CVE-2022-28347 |
Description | A SQL injection issue was discovered in QuerySet.explain() in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. This occurs by passing a crafted dictionary (with dictionary expansion) as the **options argument, and placing the injection payload in an option name. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DSA-5254-1 |
Debian Bugs | 1009677 |
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|---|---|---|
python-django (PTS) | bullseye (security), bullseye | 2:2.2.28-1~deb11u2 | fixed |
bookworm, bookworm (security) | 3:3.2.19-1+deb12u1 | fixed | |
trixie | 3:4.2.16-1 | fixed | |
sid | 3:4.2.17-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 | stretch | (not affected) | |||
python-django | source | buster | (not affected) | |||
python-django | source | bullseye | 2:2.2.28-1~deb11u1 | DSA-5254-1 | ||
python-django | source | (unstable) | 2:3.2.13-1 | 1009677 |
[buster] - python-django <not-affected> (Vulnerable code not present)
[stretch] - python-django <not-affected> (Vulnerable code not present)
https://www.djangoproject.com/weblog/2022/apr/11/security-releases/
https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81 (main)
https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402 (4.0.4)
https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d (3.2.13)
https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5 (2.2.28)