GitHub Advisoryadvisory · PyPI

GHSA-w24h-v9qh-8gxj SQL Injection in Django

CRITICAL Published 2022-04-13 Modified 2024-09-20 Official page ↗
Aliases
CVE-2022-28347
Ecosystem
PyPI
Packages
Django
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-89
Reviewed
2022-04-22

Affected packages

• PyPI Django: >= 2.2, < 2.2.28 → fixed in 2.2.28 • PyPI Django: >= 3.2, < 3.2.13 → fixed in 3.2.13 • PyPI Django: >= 4.0, < 4.0.4 → fixed in 4.0.4

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.

Related

Alias · CVE (1)

  • CVE-2022-28347 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. vulnerability

Weakness · CWE (1)

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

References