CVE-2022-28347
Django: SQL injection via QuerySet.explain(options) on PostgreSQL
Einstufung nach Quelle
Trivys eigenes Label ist CRITICAL. Kritisch laut NVD, GHSA, Bitnami. Niedriger laut Red Hat (hoch), Ubuntu (hoch).
Beschreibung
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.
Betroffene Pakete und behobene Versionen
| Quelle | Paket | Behoben in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | django | 2.2.28, 3.2.13, 4.0.4 |
| pip::GitHub Security Advisory pip | django | 2.2.28, 3.2.13, 4.0.4 |
| alpine 3.16 | py3-django | 3.2.13-r0 |
| alpine 3.17 | py3-django | 3.2.13-r0 |
| alpine 3.18 | py3-django | 3.2.13-r0 |
| alpine 3.19 | py3-django | 3.2.13-r0 |
| alpine 3.20 | py3-django | 3.2.13-r0 |
| alpine 3.21 | py3-django | 3.2.13-r0 |
| alpine 3.22 | py3-django | 3.2.13-r0 |
| alpine 3.23 | py3-django | 3.2.13-r0 |
| alpine 3.24 | py3-django | 3.2.13-r0 |
| alpine edge | py3-django | 3.2.13-r0 |
Alle 30 Einträge aus 23 Quellen zeigen
| Quelle | Paket | Behoben in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | django | 2.2.28, 3.2.13, 4.0.4 |
| pip::GitHub Security Advisory pip | django | 2.2.28, 3.2.13, 4.0.4 |
| alpine 3.16 | py3-django | 3.2.13-r0 |
| alpine 3.17 | py3-django | 3.2.13-r0 |
| alpine 3.18 | py3-django | 3.2.13-r0 |
| alpine 3.19 | py3-django | 3.2.13-r0 |
| alpine 3.20 | py3-django | 3.2.13-r0 |
| alpine 3.21 | py3-django | 3.2.13-r0 |
| alpine 3.22 | py3-django | 3.2.13-r0 |
| alpine 3.23 | py3-django | 3.2.13-r0 |
| alpine 3.24 | py3-django | 3.2.13-r0 |
| alpine edge | py3-django | 3.2.13-r0 |
| debian 11 | python-django | 2:2.2.28-1~deb11u1 |
| debian 12 | python-django | 2:3.2.13-1 |
| debian 13 | python-django | 2:3.2.13-1 |
| debian 14 | python-django | 2:3.2.13-1 |
| echo | python-django | 2:3.2.13-1 |
| Red Hat | graphite-web | kein Fix angegeben |
| Red Hat | python-django | kein Fix angegeben |
| Red Hat | python-django-bash-completion | kein Fix angegeben |
| Red Hat | python-pulp-container | kein Fix angegeben |
| Red Hat | python2-django | kein Fix angegeben |
| Red Hat | python3-django | kein Fix angegeben |
| Red Hat | python3-pulp-container | kein Fix angegeben |
| seal Red Hat 8 | libsolv | 0.7.20-6.el8+sp999 |
| seal Red Hat 8 | seal-libsolv | 0.7.20-6.el8+sp999 |
| ubuntu 20.04 | python-django | 2:2.2.12-1ubuntu0.11 |
| ubuntu 20.04-ESM | python-django | 2:2.2.12-1ubuntu0.11 |
| ubuntu 21.10 | python-django | 2:2.2.24-1ubuntu1.4 |
| ubuntu 22.04 | python-django | 3.2.12-2ubuntu1 |
Referenzen
- http://www.openwall.com/lists/oss-security/2022/04/11/1
- https://access.redhat.com/security/cve/CVE-2022-28347
- https://docs.djangoproject.com/en/4.0/releases/security
- https://docs.djangoproject.com/en/4.0/releases/security/
- https://github.com/advisories/GHSA-w24h-v9qh-8gxj
- https://github.com/django/django
- https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402
- https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5
Alle 23 Referenzen
- https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81
- https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml
- https://groups.google.com/forum/#!forum/django-announce
- https://groups.google.com/forum/#%21forum/django-announce
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/
- https://nvd.nist.gov/vuln/detail/CVE-2022-28347
- https://ubuntu.com/security/notices/USN-5373-1
- https://www.cve.org/CVERecord?id=CVE-2022-28347
- https://www.debian.org/security/2022/dsa-5254
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases
- https://www.djangoproject.com/weblog/2022/apr/11/security-releases/