VDB

CVE-2022-28347

CVE-2022-28347 PUBLISHED CVSS 9.800000190734863 CRITICAL

SQL Injection in Django

Reported by mitre · Published April 12, 2022

django is fixed in 4.0.4, 3.2.13 and 2.2.28 (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
djangoPyPI4.0.4, 3.2.13, 2.2.28
djangodjangoproject4.0.4, 3.2.13, 2.2.28

Risk scores

CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
n/an/a*
alpinepy3-django0
PyPIDjango2.2, 3.2, 4.0
archpython-django0

Timeline

  • Apr 12, 2022 CVE Published
  • Apr 12, 2022 EPSS Score (30 in total, the first dated here)
  • Feb 21, 2025 CVE Updated
  • Mar 9, 2026 Security Advisory (3 in total, the first dated here)
  • Jun 27, 2026 Coalition ESS Score
  • Oct 31, 2026 Distribution Patch

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2022-28347
vulnetix vdb fixes CVE-2022-28347

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2022-28347/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›