Feed
9.8CRITICAL
CVE-2022-28347SQL Injection in Django
A critical-severity vulnerability reachable over the network, needing no privileges and no user interaction. EPSS estimates a 2.6% chance of exploitation in the next 30 days. A fixed version is named.
- Exploited in the wild
- Not in KEV
- EPSS
- 2.6%
- percentile 86%
- Fix
- Named by a source
- CVE published 12 Apr 2022
Reference
None of the "Needs attention" rules apply right now.
EPSS 2.6% (+3) · Network attack vector (+10) · No privileges required (+5) · No user interaction (+5)
Immediate actions
- django (PyPI): upgrade to 2.2.28 / 3.2.13 / 4.0.4 or later on your release line.
- Commit / pull request: https://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402
- Commit / pull request: https://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5
- Commit / pull request: https://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81
- Commit / pull request: https://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d
Who should check
django (PyPI) pkg:pypi/django
- Affected>= 2.2, < 2.2.28Fixed in2.2.28OSV (PYSEC-2022-191)
- Affected>= 3.2, < 3.2.13Fixed in3.2.13OSV (PYSEC-2022-191)
- Affected>= 4.0, < 4.0.4Fixed in4.0.4OSV (PYSEC-2022-191)
Confirmed facts
- CVSS
- 9.8 CRITICAL (version 3.1)
- Score from
- GitHub Advisory Database (GHSA-w24h-v9qh-8gxj)
- Attack vector
- network
- Attack complexity
- low
- Privileges required
- none
- User interaction
- none
- Weakness
- CWE-89
Unknowns
- We show one CVSS score. Other sources may score this CVE differently.
Advisory text
Quoted from the source advisory (untrusted)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.
Update history
No events recorded. Our history starts on 1 Jan 2025.
References
- advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2022-28347
- commit / pull requesthttps://github.com/django/django/commit/00b0fc50e1738c7174c495464a5ef069408a4402
- commit / pull requesthttps://github.com/django/django/commit/29a6c98b4c13af82064f993f0acc6e8fafa4d3f5
- commit / pull requesthttps://github.com/django/django/commit/6723a26e59b0b5429a0c5873941e01a2e1bdbb81
- commit / pull requesthttps://github.com/django/django/commit/9e19accb6e0a00ba77d5a95a91675bf18877c72d
- otherhttps://docs.djangoproject.com/en/4.0/releases/security
- advisoryhttps://github.com/advisories/GHSA-w24h-v9qh-8gxj
- otherhttps://github.com/django/django
- otherhttps://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2022-191.yaml
- otherhttps://groups.google.com/forum/#!forum/django-announce
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/HWY6DQWRVBALV73BPUVBXC3QIYUM24IK
- otherhttps://lists.fedoraproject.org/archives/list/[email protected]/message/LTZVAKU5ALQWOKFTPISE257VCVIYGFQI
- otherhttps://www.debian.org/security/2022/dsa-5254
- otherhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases
- otherhttp://www.openwall.com/lists/oss-security/2022/04/11/1
- otherhttps://docs.djangoproject.com/en/4.0/releases/security/
- otherhttps://www.djangoproject.com/weblog/2022/apr/11/security-releases/
Sources
- EPSS by FIRST.org, Free to use, attribution requested. Scores generated by Empirical Security.
- GHSA-w24h-v9qh-8gxj (GitHub Advisory Database), CC BY 4.0.
- PYSEC-2022-191 (PyPA Advisory Database), CC BY 4.0.
- OSV.dev, Per database.
This page is our own presentation: records are shortened, normalised and merged. Licences
Last checked: kev 54 min ago · osv 54 min ago · nvd 54 min ago · epss 54 min ago · JSON · ask via MCP: explain_vulnerability
Also known as BIT-django-2022-28347, GHSA-w24h-v9qh-8gxj, PYSEC-2022-191