CVE-2022-28346
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
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 18.66% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 97.0% of scored records. A rank, not a probability.
- NVD base score
- 9.8 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Important. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2022-04-12 00:00Z4 YR AGO
- Last updated
- 2025-02-13 16:32Z1 YR AGO
- Reserved
- 2022-04-02
- Assigning CNA
- mitre
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- CWE-89Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')Base
- Data version
- 5.1
- Document digest
- 651cb14d6b34da0abfe4c056068e881beac6f469b6f54c189eddd2829f020e17
05 Affected products
06 References
- groups.google.comhttps://groups.google.com/forum/#%21forum/django-announce
- docs.djangoproject.comhttps://docs.djangoproject.com/en/4.0/releases/security/
- www.openwall.comhttp://www.openwall.com/lists/oss-security/2022/04/11/1
- www.djangoproject.comhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases/
- lists.debian.org[debian-lts-announce] 20220414 [SECURITY] [DLA 2982-1] python-django security updatehttps://lists.debian.org/debian-lts-announce/2022/04/msg00013.html
- security.netapp.comhttps://security.netapp.com/advisory/ntap-20220609-0002/
- www.debian.orgDSA-5254https://www.debian.org/security/2022/dsa-5254
- lists.fedoraproject.orgFEDORA-2023-8fed428c5ehttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- lists.fedoraproject.orgFEDORA-2023-a53ab7c969https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
07 Fixed in
Arch Linux
- python-django Fixed in 4.0.4-1
Source: Arch Linux Security Tracker, the Arch Linux security team. Reformatted by exploit.cc.
Debian 12
- python-django Fixed in 2:3.2.13-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- python-django Fixed in 2:3.2.13-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- python-django Fixed in 2:3.2.13-1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 18.04 LTS
- python-django Fixed in 1:1.11.11-1ubuntu1.17
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 20.04 LTS
- python-django Fixed in 2:2.2.12-1ubuntu0.11
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 14.04 LTS
- python-django Fixed in 1.6.11-0ubuntu1.3+esm5Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu Pro 16.04 LTS
- python-django Fixed in 1.8.7-1ubuntu5.15+esm5Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.