Potential SQL injection in column aliases via control characters
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 11 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CISA ADP. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-89.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| djangoproject | Django | 6.0 to before 6.0.2; 5.2 to before 5.2.11; 4.2 to before 4.2.28 | 6.0.2, 5.2.11, 4.2.28 | Patch available | CNA |
| — | Django (PyPI) | 6.0a1 to before 6.0.2 | 6.0.2 | Patch available | GHSA-gvg8-93h5-g6qq |
| — | Django (PyPI) | 5.2a1 to before 5.2.11 | 5.2.11 | Patch available | GHSA-gvg8-93h5-g6qq |
| — | Django (PyPI) | 4.2a1 to before 4.2.28 | 4.2.28 | Patch available | GHSA-gvg8-93h5-g6qq |
- Django Vendordjangoproject Affected 6.0 to before 6.0.2; 5.2 to before 5.2.11; 4.2 to before 4.2.28 Fixed in 6.0.2, 5.2.11, 4.2.28 Patch available CNA
- Django (PyPI) Vendor— Affected 6.0a1 to before 6.0.2 Fixed in 6.0.2 Patch available GHSA-gvg8-93h5-g6qq
- Django (PyPI) Vendor— Affected 5.2a1 to before 5.2.11 Fixed in 5.2.11 Patch available GHSA-gvg8-93h5-g6qq
- Django (PyPI) Vendor— Affected 4.2a1 to before 4.2.28 Fixed in 4.2.28 Patch available GHSA-gvg8-93h5-g6qq
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 4.2 to before 4.2.28; 5.2 to before 5.2.11; 6.0 to before 6.0.2 | Vulnerable | djangoproject |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 4.2 to before 4.2.28; 5.2 to before 5.2.11; 6.0 to before 6.0.2 Vulnerable ·djangoproject
Remediation
- Fix · CNA Django (djangoproject) Fixed in 6.0.2, 5.2.11, 4.2.28
- Fix · GHSA-gvg8-93h5-g6qq Django (PyPI) Fixed in 6.0.2 Advisory →
- Fix · GHSA-gvg8-93h5-g6qq Django (PyPI) Fixed in 5.2.11 Advisory →
- Fix · GHSA-gvg8-93h5-g6qq Django (PyPI) Fixed in 4.2.28 Advisory →
Red Hat 9 advisories
- RHSA-2026:14835 Released 2026-05-07 · Red Hat rating ImportantSatellite 6.18.5 Async Update
- Red Hat Satellite 6.18 for RHEL 9 python3.12-django-4.2.30-1.el9pc, python3.12-markdown-3.8.2-1.el9pc, python3.12-pyOpenSSL-26.0.0-2.el9pc +1
- RHSA-2026:6291 Released 2026-03-31 · Red Hat rating ImportantGeneral availability of the satellite/iop-advisor-backend-rhel9 container image
- Red Hat Satellite 6.18 registry.redhat.io/satellite/iop-advisor-backend-rhel9
- RHSA-2026:5971 Released 2026-03-26 · Red Hat rating ImportantSatellite 6.16.7 Async Update
- Red Hat Satellite 6.16 for RHEL 8 foreman-3.12.0.14-1.el8sat, foreman-cli-3.12.0.14-1.el8sat, foreman-debug-3.12.0.14-1.el8sat +20
- Red Hat Satellite 6.16 for RHEL 9 foreman-3.12.0.14-1.el9sat, foreman-cli-3.12.0.14-1.el9sat, foreman-debug-3.12.0.14-1.el9sat +20
Show 6 more Red Hat advisories
- RHSA-2026:5970 Released 2026-03-26 · Red Hat rating ImportantSatellite 6.17.7 Async Update
- Red Hat Satellite 6.17 for RHEL 9 foreman-3.14.0.14-1.el9sat, foreman-cli-3.14.0.14-1.el9sat, foreman-debug-3.14.0.14-1.el9sat +33
- RHSA-2026:3959 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.5 for RHEL 8 automation-controller-4.6.26-1.el8ap, automation-controller-cli-4.6.26-1.el8ap, automation-controller-server-4.6.26-1.el8ap +10
- Red Hat Ansible Automation Platform 2.5 for RHEL 9 automation-controller-4.6.26-1.el9ap, automation-controller-cli-4.6.26-1.el9ap, automation-controller-server-4.6.26-1.el9ap +10
- RHSA-2026:3962 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.5 Container Release Update
- Red Hat Ansible Automation Platform 2.5 registry.redhat.io/ansible-automation-platform-25/lightspeed-rhel8
- RHSA-2026:3960 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Container Release Update
- Red Hat Ansible Automation Platform 2.6 registry.redhat.io/ansible-automation-platform-26/de-minimal-rhel9, registry.redhat.io/ansible-automation-platform-26/de-supported-rhel9, registry.redhat.io/ansible-automation-platform-26/ee-minimal-rhel9 +9
- RHSA-2026:3958 Released 2026-03-06 · Red Hat rating ImportantRed Hat Ansible Automation Platform 2.6 Product Security and Bug Fix Update
- Red Hat Ansible Automation Platform 2.6 for RHEL 10 receptor-1.6.3-4.el10ap, receptorctl-1.6.3-4.el10ap
- Red Hat Ansible Automation Platform 2.6 for RHEL 9 automation-controller-4.7.9-1.el9ap, automation-controller-cli-4.7.9-1.el9ap, automation-controller-server-4.7.9-1.el9ap +8
- RHSA-2026:2694 Released 2026-02-12 · Red Hat rating ImportantA Subscription Management tool for finding and reporting Red Hat product usage
- Red Hat Discovery 2 registry.redhat.io/discovery/discovery-server-rhel9, registry.redhat.io/discovery/discovery-ui-rhel9
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Advisory ·
djangoproject Django — Django security releases issued: 6.0.2, 5.2.11, and 4.2.28
6 records Highest priority Priority MEDIUM 2 MEDIUM, 4 LOW
Other records, highest priority first
- TI-2026-01001 Potential denial-of-service vulnerability in django.utils.text.Truncator HTML methodsPriority MEDIUM 41
- TI-2025-13292 Potential denial-of-service vulnerability via repeated headers when using ASGIPriority MEDIUM 41
- TI-2026-00932 Potential SQL injection via raster lookups on PostGISPriority LOW 39
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Ansible Automation Platform 2 | Affected | No fix planned: Will not fix |
| Red Hat Satellite 6 | Affected | No fix yet |
| Red Hat Update Infrastructure 4 for Cloud Providers | Affected | No fix planned: Will not fix |
| Red Hat Ansible Automation Platform 2.5 | Fixed | RHSA-2026:3962 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 8 | Fixed | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.5 for RHEL 9 | Fixed | RHSA-2026:3959 |
| Red Hat Ansible Automation Platform 2.6 | Fixed | RHSA-2026:3960 |
| Red Hat Ansible Automation Platform 2.6 for RHEL 9 | Fixed | RHSA-2026:3958 |
| Red Hat Discovery 2 | Fixed | RHSA-2026:2694 |
| Red Hat Satellite 6.16 for RHEL 8 | Fixed | RHSA-2026:5971 |
| Red Hat Satellite 6.16 for RHEL 9 | Fixed | RHSA-2026:5971 |
| Red Hat Satellite 6.17 for RHEL 9 | Fixed | RHSA-2026:5970 |
| Red Hat Satellite 6.18 | Fixed | RHSA-2026:6291 |
| Red Hat Satellite 6.18 for RHEL 9 | Fixed | RHSA-2026:14835 |
Not affected: 14 products
- Red Hat Ansible Automation Platform 2
- Red Hat Ansible Automation Platform 2.5
- Red Hat Ansible Automation Platform 2.5 for RHEL 8
- Red Hat Ansible Automation Platform 2.5 for RHEL 9
- Red Hat Ansible Automation Platform 2.6
- Red Hat Ansible Automation Platform 2.6 for RHEL 10
- Red Hat Ansible Automation Platform 2.6 for RHEL 9
- Red Hat Discovery 2
- Red Hat OpenStack Platform 16.2
- Red Hat OpenStack Platform 17.1
- Red Hat OpenStack Platform 18.0
- Red Hat Satellite 6.16 for RHEL 8
- Red Hat Satellite 6.16 for RHEL 9
- Red Hat Satellite 6.18 for RHEL 9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-1287
- 2026-10-03 Alias added: GHSA-gvg8-93h5-g6qq
References
Other 6
- Django releases announcements
- https://github.com/django/django/commit/e891a84c7ef9962bfcc3b4685690219542f86a22
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2026-46.yaml
- https://www.djangoproject.com/weblog/2026/feb/03/security-releases
More djangoproject Django vulnerabilities
- TI-2022-15177 An issue was discovered in Django 3.2 before 3.2.14 and 4.0 before 4.0.6. CVSS 3.1CRITICAL 9.8
- TI-2020-05994 Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection… CVSS 3.1CRITICAL 9.8
- TI-2023-10198 An issue was discovered in the Multipart Request Parser in Django 3.2 before 3.2.18, 4.0… CVSS 3.1HIGH 7.5
- TI-2019-14306 Django before 1.11.27, 2.x before 2.2.9, and 3.x before 3.0.1 allows account takeover. CVSS 3.1CRITICAL 9.8
- TI-2019-10595 An issue was discovered in Django 1.11.x before 1.11.23, 2.1.x before 2.1.11, and 2.2.x… CVSS 3.0CRITICAL 9.8
- TI-2021-14006 Django 3.1.x before 3.1.13 and 3.2.x before 3.2.5 allows QuerySet.order_by SQL injection… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-1287 · CVE Program
- CVE-2026-1287 · NVD
- FIRST EPSS
- GHSA-gvg8-93h5-g6qq · GitHub Advisory Database · CC BY 4.0
- CVE-2026-1287 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences