GHSA-gvg8-93h5-g6qq — django
Fix: django/django@e891a84GHSA-gvg8-93h5-g6qq is a SQL Injection vulnerability in django. A fix is available for django — see the affected versions and patch details below.
Django has an SQL Injection issue
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-gvg8-93h5-g6qq.
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
Real-World Exposure
django🐍django🐍djangoReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
An issue was discovered in 6.0 before 6.0.2, 5.2 before 5.2.11, and 4.2 before 4.2.28.
FilteredRelation is subject to SQL injection in column aliases via control characters, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to QuerySet methods annotate(), aggregate(), extra(), values(), values_list(), and alias(). Earlier, unsupported Django series (such as 5.0.x, 4.1.x, and 3.2.x) were not evaluated and may also be affected.
Django would like to thank Solomon Kebede for reporting this issue.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | django | ≥ 6.0a1&&< 6.0.2 | 6.0.2pip install --upgrade 'django==6.0.2' |
| 🐍PyPI | django | ≥ 5.2a1&&< 5.2.11 | 5.2.11pip install --upgrade 'django==5.2.11' |
| 🐍PyPI | django | ≥ 4.2a1&&< 4.2.28 | 4.2.28pip install --upgrade 'django==4.2.28' |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for django, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update django to 6.0.2 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-gvg8-93h5-g6qq is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-gvg8-93h5-g6qq can be triaged on real exposure rather than presence alone.
Tailored to GHSA-gvg8-93h5-g6qq. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
This IMPORTANT SQL injection flaw in Django allows a remote attacker to execute arbitrary SQL commands by crafting column aliases. This vulnerability affects Red Hat products that incorporate Django, such as Red Hat Ansible Automation Platform, Red Hat Discovery, Red Hat Satellite, Insights, and Ansible Services,…
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | python3.12-django-0:4.2.28-1.el8ap | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | python3.12-django-0:4.2.28-1.el9ap | RHSA-2026:3958 |
| Red Hat Satellite 6.16 for RHEL 8 | python-django-0:4.2.28-0.1.el8pc | RHSA-2026:5971 |
| Red Hat Satellite 6.17 for RHEL 9 | foreman-0:3.14.0.14-1.el9sat | RHSA-2026:5970 |
| Red Hat Satellite 6.18 for RHEL 9 | python3.12-django-0:4.2.30-1.el9pc | RHSA-2026:14835 |
| Red Hat Ansible Automation Platform 2.5 | ansible-automation-platform-25/lightspeed-rhel8:1772214630 | RHSA-2026:3962 |
| Red Hat Ansible Automation Platform 2.6 | ansible-automation-platform-26/lightspeed-rhel9:1772552788 | RHSA-2026:3960 |
| Red Hat Discovery 2 | discovery/discovery-server-rhel9:1770913597 | RHSA-2026:2694 |
Frequently Asked Questions
Is GHSA-gvg8-93h5-g6qq in your dependencies?
O3 Security finds GHSA-gvg8-93h5-g6qq across PyPI dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.