SecurityContext

CVE-2022-28347: Django - SQL Injection

  • Cve: CVE-2022-28347
  • Name: Django - SQL Injection
  • 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.
  • Impact: Attackers can execute arbitrary SQL commands, potentially leading to data leakage, modification, or deletion.
  • Remediation: Update Django to version 2.2.28, 3.2.13, or 4.0.4 or later.
  • Vulnerability type: sql_injection
  • Vulnerability impact: information_disclosure, data_tampering
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02943
  • Epss percentile: 0.87481
  • Assignee: [email protected]
  • Published at: 2022-04-12T05:15:07Z
  • Age in days: 1687
  • Modified at: 2026-06-17T04:38:24Z
  • Patch available: yes
  • References total: 7
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-28347
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-89Improper Neutralization of Special Elements used in an SQL Command

References

Same in every row:

  • Source: nvd
UrlTags
https://docs.djangoproject.com/en/4.0/releases/security/Patch, Vendor Advisory
https://www.djangoproject.com/weblog/2022/apr/11/security-releases/Patch, Vendor Advisory
http://www.openwall.com/lists/oss-security/2022/04/11/1Mailing List, Patch, Third Party Advisory
https://www.debian.org/security/2022/dsa-5254Third Party Advisory
https://groups.google.com/forum/#%21forum/django-announce
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK/
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI/

Products

ProductAffectedPlatform boundSourcesUrl
djangoproject:django>= 4.0, < 4.0.4; >= 3.2, < 3.2.13; >= 2.2, < 2.2.28nonvd/v1/products/djangoproject/django
debian:debian_linux= 11.0nonvd/v1/products/debian/debian_linux

Projects

RepositoryLink kindsIndexedUrl
django/djangocommit, fix, packageyes/v1/repositories/django/django

Index

  • Repositories: 103
  • Repositories high signal: 44
  • Packages: 1

Exploitation

  • Remote: yes
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports