CVE-2022-28347

Django: SQL injection via QuerySet.explain(options) on PostgreSQL

Published Apr 12, 2022 CVSS 3.1 · 9.8 Critical EPSS 2.9% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-5254-1 python-django security update
EUVD EUVD EUVD-2022-0088 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.
Github GHSA Github GHSA GHSA-w24h-v9qh-8gxj SQL Injection in Django
Ubuntu USN Ubuntu USN USN-5373-1 Django vulnerabilities
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Feb 13, 2025, 4:32 PM
Reserved
Apr 2, 2022, 12:00 AM
Status
Modified
Published
Apr 12, 2022, 5:15 AM
Modified
Jun 17, 2026, 4:38 AM
Severity
Important
Public date
Apr 11, 2022, 8:00 AM