Skip to content

CVE-2026-1287 Potential SQL injection in column aliases via control characters

HighCVSS 8.3 EPSS 0.84%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
UbuntuDebianRed Hat

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.

Upgrade path

62 packages: 50 fixed, 2 partially fixed, 9 with no fix yet.

PackageAffectedFixed inStatus
redhat rhui All versions No fix listed No fix yet
redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/ansible-automation-platform-25/lightspeed-rhel8:1772214630(Red Hat ansible_automation_platform 2.5 el8) All versions No fix listed No fix yet
redhat/ansible-automation-platform-26/lightspeed-rhel9:1772552788(Red Hat ansible_automation_platform 2.6 el9) All versions No fix listed No fix yet
redhat/automation-controller(Red Hat ansible_automation_platform 2) All versions No fix listed No fix yet
redhat/discovery/discovery-server-rhel9:1770913597(Red Hat discovery 2 el9) All versions No fix listed No fix yet
redhat/python-django(Red Hat rhui 4 el8) All versions No fix listed No fix yet
redhat/satellite-capsule:el8/python-django(Red Hat satellite 6) All versions No fix listed No fix yet
redhat/satellite/iop-advisor-backend-rhel9:1773451075(Red Hat satellite 6.18 el9) All versions No fix listed No fix yet
redhat ansible automation platform < 0:4.2.28-1.el8ap; < 0:4.2.28-1.el9ap; < 1772214630; < 1772552788 +2 more 0:4.2.28-1.el8ap, 0:4.2.28-1.el9ap, 1772214630, 1772552788 Partially fixed
redhat satellite < 0:4.2.28-0.1.el8pc; < 0:4.2.28-0.1.el9pc; < 0:4.2.30-1.el9pc; < 1773451075 +1 more 0:4.2.28-0.1.el8pc, 0:4.2.28-0.1.el9pc, 0:4.2.30-1.el9pc, 1773451075 Partially fixed
alpine/py3-django(Alpine v3.23) < 4.2.28-r0 4.2.28-r0 Fixed
alpine/py3-django(Alpine v3.24) < 4.2.28-r0 4.2.28-r0 Fixed
debian/python-django(Debian 12) < 3:3.2.25-0+deb12u2; = 3:3.2.19-1; = 3:3.2.19-1+deb12u1; = 3:3.2.19-1+deb12u1~bpo11+1 +5 more 3:3.2.25-0+deb12u2 Fixed
debian/python-django(Debian 13) < 3:4.2.28-0+deb13u1; = 3:4.2.23-1; = 3:4.2.24-1; = 3:4.2.25-1 +5 more 3:4.2.28-0+deb13u1 Fixed
debian/python-django(Debian 14) < 3:4.2.28-1; = 3:4.2.23-1; = 3:4.2.24-1; = 3:4.2.25-1 +4 more 3:4.2.28-1 Fixed
djangoproject django >= 4.2, < 4.2.28; >= 5.2, < 5.2.11; >= 6.0, < 6.0.2 4.2.28, 5.2.11, 6.0.2 Fixed
pypi django(PyPI) = 4.2; = 4.2.1; = 4.2.2; = 4.2.3 +52 more 4.2.28, 5.2.11, 6.0.2 Fixed
redhat discovery < 1770913597 1770913597 Fixed
redhat satellite(Red Hat satellite_maintenance 6.17 el9) < 6.17.7-1.el9sat 6.17.7-1.el9sat Fixed
redhat satellite(Red Hat satellite_utils 6.17 el9) < 6.17.7-1.el9sat 6.17.7-1.el9sat Fixed
redhat satellite capsule < 0:4.2.28-0.1.el8pc; < 0:4.2.28-0.1.el9pc; < 0:4.2.30-1.el9pc 0:4.2.28-0.1.el8pc, 0:4.2.28-0.1.el9pc, 0:4.2.30-1.el9pc Fixed
redhat satellite maintenance < 0:0.0.3-4.el9sat; < 0:0.1.23-0.3.el9pc; < 0:0.4.3-1.el9sat; < 0:0.13.0-1.el9sat +8 more 0:0.0.3-4.el9sat, 0:0.1.23-0.3.el9pc, 0:0.4.3-1.el9sat, 0:0.13.0-1.el9sat, 0:1.2.0-0.1.el9pc, 0:1.5.1-1.el9sat, 0:2.22.3-1.el9pc, 0:3.14.0.14-1.el9sat, 0:3.27.10-2.el9pc, 0:4.2.28-0.1.el9pc, 0:4.16.0.14-1.el9sat, 0:6.17.7-1.el9sat Fixed
redhat satellite utils < 0:0.0.3-4.el9sat; < 0:0.1.23-0.3.el9pc; < 0:0.4.3-1.el9sat; < 0:0.13.0-1.el9sat +8 more 0:0.0.3-4.el9sat, 0:0.1.23-0.3.el9pc, 0:0.4.3-1.el9sat, 0:0.13.0-1.el9sat, 0:1.2.0-0.1.el9pc, 0:1.5.1-1.el9sat, 0:2.22.3-1.el9pc, 0:3.14.0.14-1.el9sat, 0:3.27.10-2.el9pc, 0:4.2.28-0.1.el9pc, 0:4.16.0.14-1.el9sat, 0:6.17.7-1.el9sat Fixed
redhat/foreman(Red Hat satellite_maintenance 6.17 el9) < 3.14.0.14-1.el9sat 3.14.0.14-1.el9sat Fixed
redhat/foreman(Red Hat satellite_utils 6.17 el9) < 3.14.0.14-1.el9sat 3.14.0.14-1.el9sat Fixed
redhat/libcomps(Red Hat satellite_maintenance 6.17 el9) < 0.1.23-0.3.el9pc 0.1.23-0.3.el9pc Fixed
redhat/libcomps(Red Hat satellite_utils 6.17 el9) < 0.1.23-0.3.el9pc 0.1.23-0.3.el9pc Fixed
redhat/python-brotli(Red Hat satellite_maintenance 6.17 el9) < 1.2.0-0.1.el9pc 1.2.0-0.1.el9pc Fixed
redhat/python-brotli(Red Hat satellite_utils 6.17 el9) < 1.2.0-0.1.el9pc 1.2.0-0.1.el9pc Fixed

… and 32 more packages.

Affected products

ProductAffected versionsFixed in
pypi django(PyPI) >= 6.0a1, < 6.0.2 6.0.2
pypi django(PyPI) = 6.0 No fix listed
pypi django(PyPI) = 6.0.1 No fix listed
pypi django(PyPI) = 6.0a1 No fix listed
pypi django(PyPI) = 6.0b1 No fix listed
pypi django(PyPI) = 6.0rc1 No fix listed
pypi django(PyPI) >= 5.2a1, < 5.2.11 5.2.11
pypi django(PyPI) = 5.2 No fix listed
pypi django(PyPI) = 5.2.1 No fix listed
pypi django(PyPI) = 5.2.10 No fix listed
pypi django(PyPI) = 5.2.2 No fix listed
pypi django(PyPI) = 5.2.3 No fix listed
pypi django(PyPI) = 5.2.4 No fix listed
pypi django(PyPI) = 5.2.5 No fix listed
pypi django(PyPI) = 5.2.6 No fix listed
pypi django(PyPI) = 5.2.7 No fix listed
pypi django(PyPI) = 5.2.8 No fix listed
pypi django(PyPI) = 5.2.9 No fix listed
pypi django(PyPI) = 5.2a1 No fix listed
pypi django(PyPI) = 5.2b1 No fix listed
pypi django(PyPI) = 5.2rc1 No fix listed
pypi django(PyPI) >= 4.2a1, < 4.2.28 4.2.28
pypi django(PyPI) = 4.2 No fix listed
pypi django(PyPI) = 4.2.1 No fix listed
pypi django(PyPI) = 4.2.10 No fix listed
Show 152 more
ProductAffected versionsFixed in
pypi django(PyPI) = 4.2.11 No fix listed
pypi django(PyPI) = 4.2.12 No fix listed
pypi django(PyPI) = 4.2.13 No fix listed
pypi django(PyPI) = 4.2.14 No fix listed
pypi django(PyPI) = 4.2.15 No fix listed
pypi django(PyPI) = 4.2.16 No fix listed
pypi django(PyPI) = 4.2.17 No fix listed
pypi django(PyPI) = 4.2.18 No fix listed
pypi django(PyPI) = 4.2.19 No fix listed
pypi django(PyPI) = 4.2.2 No fix listed
pypi django(PyPI) = 4.2.20 No fix listed
pypi django(PyPI) = 4.2.21 No fix listed
pypi django(PyPI) = 4.2.22 No fix listed
pypi django(PyPI) = 4.2.23 No fix listed
pypi django(PyPI) = 4.2.24 No fix listed
pypi django(PyPI) = 4.2.25 No fix listed
pypi django(PyPI) = 4.2.26 No fix listed
pypi django(PyPI) = 4.2.27 No fix listed
pypi django(PyPI) = 4.2.3 No fix listed
pypi django(PyPI) = 4.2.4 No fix listed
pypi django(PyPI) = 4.2.5 No fix listed
pypi django(PyPI) = 4.2.6 No fix listed
pypi django(PyPI) = 4.2.7 No fix listed
pypi django(PyPI) = 4.2.8 No fix listed
pypi django(PyPI) = 4.2.9 No fix listed
pypi django(PyPI) = 4.2a1 No fix listed
pypi django(PyPI) = 4.2b1 No fix listed
pypi django(PyPI) = 4.2rc1 No fix listed
pypi django(PyPI) >= 4.2, < 4.2.28 4.2.28
pypi django(PyPI) >= 5.2, < 5.2.11 5.2.11
pypi django(PyPI) >= 6.0, < 6.0.2 6.0.2
redhat ansible automation platform < 0:4.2.28-1.el8ap 0:4.2.28-1.el8ap
redhat ansible automation platform < 0:4.2.28-1.el9ap 0:4.2.28-1.el9ap
redhat satellite < 0:4.2.28-0.1.el8pc 0:4.2.28-0.1.el8pc
redhat satellite capsule < 0:4.2.28-0.1.el8pc 0:4.2.28-0.1.el8pc
redhat satellite < 0:4.2.28-0.1.el9pc 0:4.2.28-0.1.el9pc
redhat satellite capsule < 0:4.2.28-0.1.el9pc 0:4.2.28-0.1.el9pc
redhat satellite maintenance < 0:3.14.0.14-1.el9sat 0:3.14.0.14-1.el9sat
redhat satellite utils < 0:3.14.0.14-1.el9sat 0:3.14.0.14-1.el9sat
redhat satellite maintenance < 0:0.1.23-0.3.el9pc 0:0.1.23-0.3.el9pc
redhat satellite utils < 0:0.1.23-0.3.el9pc 0:0.1.23-0.3.el9pc
redhat satellite maintenance < 0:1.2.0-0.1.el9pc 0:1.2.0-0.1.el9pc
redhat satellite utils < 0:1.2.0-0.1.el9pc 0:1.2.0-0.1.el9pc
redhat satellite maintenance < 0:4.2.28-0.1.el9pc 0:4.2.28-0.1.el9pc
redhat satellite utils < 0:4.2.28-0.1.el9pc 0:4.2.28-0.1.el9pc
redhat satellite maintenance < 0:2.22.3-1.el9pc 0:2.22.3-1.el9pc
redhat satellite utils < 0:2.22.3-1.el9pc 0:2.22.3-1.el9pc
redhat satellite maintenance < 0:3.27.10-2.el9pc 0:3.27.10-2.el9pc
redhat satellite utils < 0:3.27.10-2.el9pc 0:3.27.10-2.el9pc
redhat satellite maintenance < 0:1.5.1-1.el9sat 0:1.5.1-1.el9sat
redhat satellite utils < 0:1.5.1-1.el9sat 0:1.5.1-1.el9sat
redhat satellite maintenance < 0:0.4.3-1.el9sat 0:0.4.3-1.el9sat
redhat satellite utils < 0:0.4.3-1.el9sat 0:0.4.3-1.el9sat
redhat satellite maintenance < 0:4.16.0.14-1.el9sat 0:4.16.0.14-1.el9sat
redhat satellite utils < 0:4.16.0.14-1.el9sat 0:4.16.0.14-1.el9sat
redhat satellite maintenance < 0:0.13.0-1.el9sat 0:0.13.0-1.el9sat
redhat satellite utils < 0:0.13.0-1.el9sat 0:0.13.0-1.el9sat
redhat satellite maintenance < 0:6.17.7-1.el9sat 0:6.17.7-1.el9sat
redhat satellite utils < 0:6.17.7-1.el9sat 0:6.17.7-1.el9sat
redhat satellite maintenance < 0:0.0.3-4.el9sat 0:0.0.3-4.el9sat
redhat satellite utils < 0:0.0.3-4.el9sat 0:0.0.3-4.el9sat
redhat satellite < 0:4.2.30-1.el9pc 0:4.2.30-1.el9pc
redhat satellite capsule < 0:4.2.30-1.el9pc 0:4.2.30-1.el9pc
redhat ansible automation platform < 1772214630 1772214630
redhat ansible automation platform < 1772552788 1772552788
redhat discovery < 1770913597 1770913597
redhat satellite < 1773451075 1773451075
redhat ansible automation platform = 2 No fix listed
redhat ansible automation platform All versions No fix listed
redhat openstack = 16.2 No fix listed
redhat openstack = 17.1 No fix listed
redhat openstack = 18.0 No fix listed
redhat satellite All versions No fix listed
redhat rhui All versions No fix listed
debian/python-django(Debian:12) < 3:3.2.25-0+deb12u2 3:3.2.25-0+deb12u2
debian/python-django(Debian:12) = 3:3.2.19-1 No fix listed
debian/python-django(Debian:12) = 3:3.2.19-1+deb12u1 No fix listed
debian/python-django(Debian:12) = 3:3.2.19-1+deb12u1~bpo11+1 No fix listed
debian/python-django(Debian:12) = 3:3.2.19-1+deb12u2 No fix listed
debian/python-django(Debian:12) = 3:3.2.20-1 No fix listed
debian/python-django(Debian:12) = 3:3.2.20-1.1 No fix listed
debian/python-django(Debian:12) = 3:3.2.21-1 No fix listed
debian/python-django(Debian:12) = 3:3.2.25-0+deb12u1 No fix listed
debian/python-django(Debian:13) < 3:4.2.28-0+deb13u1 3:4.2.28-0+deb13u1
debian/python-django(Debian:13) = 3:4.2.23-1 No fix listed
debian/python-django(Debian:13) = 3:4.2.24-1 No fix listed
debian/python-django(Debian:13) = 3:4.2.25-1 No fix listed
debian/python-django(Debian:13) = 3:4.2.25-2 No fix listed
debian/python-django(Debian:13) = 3:4.2.26-1 No fix listed
debian/python-django(Debian:13) = 3:4.2.27-0+deb13u1 No fix listed
debian/python-django(Debian:13) = 3:4.2.27-1 No fix listed
debian/python-django(Debian:13) = 3:4.2.27-2 No fix listed
debian/python-django(Debian:14) < 3:4.2.28-1 3:4.2.28-1
debian/python-django(Debian:14) = 3:4.2.23-1 No fix listed
debian/python-django(Debian:14) = 3:4.2.24-1 No fix listed
debian/python-django(Debian:14) = 3:4.2.25-1 No fix listed
debian/python-django(Debian:14) = 3:4.2.25-2 No fix listed
debian/python-django(Debian:14) = 3:4.2.26-1 No fix listed
debian/python-django(Debian:14) = 3:4.2.27-1 No fix listed
debian/python-django(Debian:14) = 3:4.2.27-2 No fix listed
ubuntu/python-django(Ubuntu:22.04) < 2:3.2.12-2ubuntu1.25 2:3.2.12-2ubuntu1.25
redhat/python3.12-django(Red Hat:ansible_automation_platform:2.5::el8) < 4.2.28-1.el8ap 4.2.28-1.el8ap
redhat/python3.12-django(Red Hat:ansible_automation_platform_developer:2.5::el8) < 4.2.28-1.el8ap 4.2.28-1.el8ap
redhat/python3.12-django(Red Hat:ansible_automation_platform:2.5::el9) < 4.2.28-1.el9ap 4.2.28-1.el9ap
redhat/python3.12-django(Red Hat:ansible_automation_platform_developer:2.5::el9) < 4.2.28-1.el9ap 4.2.28-1.el9ap
redhat/python3.12-django(Red Hat:ansible_automation_platform:2.6::el9) < 4.2.28-1.el9ap 4.2.28-1.el9ap
redhat/python3.12-django(Red Hat:ansible_automation_platform_developer:2.6::el9) < 4.2.28-1.el9ap 4.2.28-1.el9ap
redhat/python-django(Red Hat:satellite:6.16::el8) < 4.2.28-0.1.el8pc 4.2.28-0.1.el8pc
redhat/python-django(Red Hat:satellite_capsule:6.16::el8) < 4.2.28-0.1.el8pc 4.2.28-0.1.el8pc
redhat/python-django(Red Hat:satellite:6.16::el9) < 4.2.28-0.1.el9pc 4.2.28-0.1.el9pc
redhat/python-django(Red Hat:satellite_capsule:6.16::el9) < 4.2.28-0.1.el9pc 4.2.28-0.1.el9pc
redhat/foreman(Red Hat:satellite_maintenance:6.17::el9) < 3.14.0.14-1.el9sat 3.14.0.14-1.el9sat
redhat/libcomps(Red Hat:satellite_maintenance:6.17::el9) < 0.1.23-0.3.el9pc 0.1.23-0.3.el9pc
redhat/python-brotli(Red Hat:satellite_maintenance:6.17::el9) < 1.2.0-0.1.el9pc 1.2.0-0.1.el9pc
redhat/python-django(Red Hat:satellite_maintenance:6.17::el9) < 4.2.28-0.1.el9pc 4.2.28-0.1.el9pc
redhat/python-pulp-container(Red Hat:satellite_maintenance:6.17::el9) < 2.22.3-1.el9pc 2.22.3-1.el9pc
redhat/python-pulp-rpm(Red Hat:satellite_maintenance:6.17::el9) < 3.27.10-2.el9pc 3.27.10-2.el9pc
redhat/rubygem-fog-kubevirt(Red Hat:satellite_maintenance:6.17::el9) < 1.5.1-1.el9sat 1.5.1-1.el9sat
redhat/rubygem-foreman_kubevirt(Red Hat:satellite_maintenance:6.17::el9) < 0.4.3-1.el9sat 0.4.3-1.el9sat
redhat/rubygem-katello(Red Hat:satellite_maintenance:6.17::el9) < 4.16.0.14-1.el9sat 4.16.0.14-1.el9sat
redhat/rubygem-rubyipmi(Red Hat:satellite_maintenance:6.17::el9) < 0.13.0-1.el9sat 0.13.0-1.el9sat
redhat satellite(Red Hat:satellite_maintenance:6.17::el9) < 6.17.7-1.el9sat 6.17.7-1.el9sat
redhat/yggdrasil-worker-forwarder(Red Hat:satellite_maintenance:6.17::el9) < 0.0.3-4.el9sat 0.0.3-4.el9sat
redhat/foreman(Red Hat:satellite_utils:6.17::el9) < 3.14.0.14-1.el9sat 3.14.0.14-1.el9sat
redhat/libcomps(Red Hat:satellite_utils:6.17::el9) < 0.1.23-0.3.el9pc 0.1.23-0.3.el9pc
redhat/python-brotli(Red Hat:satellite_utils:6.17::el9) < 1.2.0-0.1.el9pc 1.2.0-0.1.el9pc
redhat/python-django(Red Hat:satellite_utils:6.17::el9) < 4.2.28-0.1.el9pc 4.2.28-0.1.el9pc
redhat/python-pulp-container(Red Hat:satellite_utils:6.17::el9) < 2.22.3-1.el9pc 2.22.3-1.el9pc
redhat/python-pulp-rpm(Red Hat:satellite_utils:6.17::el9) < 3.27.10-2.el9pc 3.27.10-2.el9pc
redhat/rubygem-fog-kubevirt(Red Hat:satellite_utils:6.17::el9) < 1.5.1-1.el9sat 1.5.1-1.el9sat
redhat/rubygem-foreman_kubevirt(Red Hat:satellite_utils:6.17::el9) < 0.4.3-1.el9sat 0.4.3-1.el9sat
redhat/rubygem-katello(Red Hat:satellite_utils:6.17::el9) < 4.16.0.14-1.el9sat 4.16.0.14-1.el9sat
redhat/rubygem-rubyipmi(Red Hat:satellite_utils:6.17::el9) < 0.13.0-1.el9sat 0.13.0-1.el9sat
redhat satellite(Red Hat:satellite_utils:6.17::el9) < 6.17.7-1.el9sat 6.17.7-1.el9sat
redhat/yggdrasil-worker-forwarder(Red Hat:satellite_utils:6.17::el9) < 0.0.3-4.el9sat 0.0.3-4.el9sat
redhat/python3.12-django(Red Hat:satellite:6.18::el9) < 4.2.30-1.el9pc 4.2.30-1.el9pc
redhat/python3.12-django(Red Hat:satellite_capsule:6.18::el9) < 4.2.30-1.el9pc 4.2.30-1.el9pc
redhat/ansible-automation-platform-25/lightspeed-rhel8:1772214630(Red Hat:ansible_automation_platform:2.5::el8) All versions No fix listed
redhat/ansible-automation-platform-26/lightspeed-rhel9:1772552788(Red Hat:ansible_automation_platform:2.6::el9) All versions No fix listed
redhat/discovery/discovery-server-rhel9:1770913597(Red Hat:discovery:2::el9) All versions No fix listed
redhat/satellite/iop-advisor-backend-rhel9:1773451075(Red Hat:satellite:6.18::el9) All versions No fix listed
redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/automation-controller(Red Hat:ansible_automation_platform:2) All versions No fix listed
redhat/satellite-capsule:el8/python-django(Red Hat:satellite:6) All versions No fix listed
redhat/python-django(Red Hat:rhui:4::el8) All versions No fix listed
alpine/py3-django(Alpine:v3.23) < 4.2.28-r0 4.2.28-r0
alpine/py3-django(Alpine:v3.24) < 4.2.28-r0 4.2.28-r0
ubuntu/python-django(Ubuntu:24.04) < 3:4.2.11-1ubuntu1.14 3:4.2.11-1ubuntu1.14
ubuntu/python-django(Ubuntu:26.04) < 3:5.2.9-0ubuntu3 3:5.2.9-0ubuntu3
djangoproject django >= 4.2, < 4.2.28 4.2.28
djangoproject django >= 5.2, < 5.2.11 5.2.11
djangoproject django >= 6.0, < 6.0.2 6.0.2

References