CVE-2022-28346
publishedDjango: SQL injection in QuerySet.annotate(),aggregate() and extra()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Debian | bullseye | python-django | Advisory build | 2:2.2.28-1~deb11u1 | DSA-5254-1 |
| SUSE / openSUSE | openSUSE-Leap-15.3 | python3-Djangonoarch | Advisory build | 2.2.28-bp153.2.3.1 | OPENSUSE-SU-2023:0005-1 |
| Ubuntu | bionic | python-django | Advisory build | 1:1.11.11-1ubuntu1.17 | USN-5373-1 |
| Rocky Linux | 8 | libdbsrc | Listed in advisory | Not stated | RLSA-2022:5498 |
| Alpine Linux | v3.16 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.17 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
Show 85 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.19 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.20 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.21 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.22 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.23 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Alpine Linux | v3.24 | py3-django | Fixed | 3.2.13-r0 | Package fix record |
| Debian | buster | python-django | Advisory build | 1:1.11.29-1+deb10u3 | DLA-3177-1 |
| Debian | stretch | python-django | Advisory build | 1:1.10.7-2+deb9u16 | DLA-2982-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | python3-Djangonoarch | Advisory build | 2.0.7-150000.1.27.1 | SUSE-SU-2024:2817-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangoaarch64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangoppc64le | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangos390x | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Djangox86_64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python310-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python311-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4aarch64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4ppc64le | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4s390x | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django4x86_64 | Advisory build | 4.2.14-1.1 | OPENSUSE-SU-2024:14208-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6aarch64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6ppc64le | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6s390x | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python312-Django6x86_64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoaarch64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangoppc64le | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangos390x | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Djangox86_64 | Advisory build | 5.1.5-1.1 | OPENSUSE-SU-2025:14662-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4aarch64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4ppc64le | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4s390x | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django4x86_64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5aarch64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5ppc64le | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5s390x | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django5x86_64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6aarch64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6ppc64le | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6s390x | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python313-Django6x86_64 | Advisory build | 6.0-1.1 | OPENSUSE-SU-2026:10005-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4aarch64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4ppc64le | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4s390x | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django4x86_64 | Advisory build | 4.2.30-4.1 | OPENSUSE-SU-2026:11235-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5aarch64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5ppc64le | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5s390x | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python314-Django5x86_64 | Advisory build | 5.2.16-1.1 | OPENSUSE-SU-2026:11270-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangoaarch64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangoppc64le | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangos390x | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python38-Djangox86_64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangoaarch64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangoppc64le | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangos390x | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | python39-Djangox86_64 | Advisory build | 4.0.4-1.1 | OPENSUSE-SU-2024:12094-1 |
| Ubuntu | bionic | python-django-common | Advisory build | 1:1.11.11-1ubuntu1.17 | USN-5373-1 |
| Ubuntu | bionic | python3-django | Advisory build | 1:1.11.11-1ubuntu1.17 | USN-5373-1 |
| Ubuntu | esm | python-django | Advisory build | 1.6.11-0ubuntu1.3+esm5 | USN-5373-2 |
| Ubuntu | focal | python-django | Advisory build | 2:2.2.12-1ubuntu0.11 | USN-5373-1 |
| Ubuntu | focal | python3-django | Advisory build | 2:2.2.12-1ubuntu0.11 | USN-5373-1 |
| Ubuntu | xenial | python-django | Advisory build | 1.8.7-1ubuntu5.15+esm5 | USN-5373-2 |
| Ubuntu | xenial | python-django-common | Advisory build | 1.8.7-1ubuntu5.15+esm5 | USN-5373-2 |
| Ubuntu | xenial | python3-django | Advisory build | 1.8.7-1ubuntu5.15+esm5 | USN-5373-2 |
| Rocky Linux | 8 | libdb-cxxx86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-cxx-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-sql-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-sql-devel-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
| Rocky Linux | 8 | libdb-utils-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2022:5498 |
Description
An issue was discovered in Django 2.2 before 2.2.28, 3.2 before 3.2.13, and 4.0 before 4.0.4. QuerySet.annotate(), aggregate(), and extra() methods are subject to SQL injection in column aliases via a crafted dictionary (with dictionary expansion) as the passed **kwargs.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
9- http://www.openwall.com/lists/oss-security/2022/04/11/1
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://groups.google.com/forum/#%21forum/django-announce
- [debian-lts-announce] 20220414 [SECURITY] [DLA 2982-1] python-django security update https://lists.debian.org/debian-lts-announce/2022/04/msg00013.html
- FEDORA-2023-8fed428c5e https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- FEDORA-2023-a53ab7c969 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://security.netapp.com/advisory/ntap-20220609-0002/
- DSA-5254 https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases/
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- ae5a3a8223dd9ccbd4db356e672160859a5efa0c88adf76f87419484523e7c3c
- Ingested
- 23 Sep 2026, 07:59:37 UTC
- Source record
- Official CVE record