CVE-2026-87975 Privilege abuse in model formsets with editable primary keys
- 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 Django 6.1 before 6.1.2, 6.0 before 6.0.9, and 5.2 before 5.2.18.
django.forms.models.BaseModelFormSet.save_existing_objects() used the presence of a primary key on a submitted form's instance as evidence that the instance belonged to the formset's limiting queryset. An object outside that queryset is represented by a newly constructed instance whose primary key can still be populated from submitted data when the model's primary key is a field accepted by the form, such as a OneToOneField or parent link used as the primary key of an inline formset's model, or a natural or UUID primary key included in the form's fields. This allows an authenticated user permitted to submit such a formset to delete rows outside the limiting queryset, without any permission on the targeted object, via forged management-form data marking an out-of-queryset object for deletion. Models using the default AutoField primary key are not affected.
Earlier, unsupported Django series (such as 5.1.x, 5.0.x, and 4.2.x) were not evaluated and may also be affected.
Django would like to thank Seonggwon Yoon for reporting this issue.
Upgrade path
38 packages: 5 fixed, 33 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/python-django(Debian 13) | = 3:4.2.23-1; = 3:4.2.24-1; = 3:4.2.25-1; = 3:4.2.25-2 +67 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/ansible-dev-tools-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/eda-controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/lightspeed-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/aap-cloud-billing-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/ansible-dev-tools-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/eda-controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/lightspeed-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-27/metrics-service-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-tech-preview/metrics-service-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat ansible_portal 2) | 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(Red Hat discovery 2 el8) | All versions | No fix listed | No fix yet |
| redhat/python-django(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python-django(Red Hat openstack 18.0) | All versions | No fix listed | No fix yet |
| redhat/python-django(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/python3.11-django(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-django(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-django(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/rhoso/openstack-horizon-rhel9(Red Hat openstack 18.0) | All versions | No fix listed | No fix yet |
| redhat/rhui5/rhua-rhel9(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/rhui5/rhua-tp-rhel9(Red Hat rhui 5 el9) | All versions | No fix listed | No fix yet |
| redhat/satellite/iop-advisor-backend-rhel9(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| ubuntu/python-django(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
… and 8 more packages.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi django(PyPI) | >= 6.1, < 6.1.2 | 6.1.2 |
| pypi django(PyPI) | >= 6.0, < 6.0.9 | 6.0.9 |
| pypi django(PyPI) | >= 5.2, < 5.2.18 | 5.2.18 |
| redhat/ansible-automation-platform-24/controller-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-24/eda-controller-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-24/hub-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-24/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/ansible-dev-tools-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/controller-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/eda-controller-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/gateway-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/hub-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-25/lightspeed-rhel8(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/ansible-dev-tools-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/eda-controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/lightspeed-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/aap-cloud-billing-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/ansible-dev-tools-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/eda-controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/gateway-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
Show 163 more
| Product | Affected versions | Fixed in |
|---|---|---|
| redhat/ansible-automation-platform-27/lightspeed-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-27/metrics-service-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform/automation-dashboard-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-tech-preview/metrics-service-rhel9(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/python3.11-django(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.12-django(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3x-django(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python-django(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/discovery/discovery-server-rhel9(Red Hat:discovery:2::el8) | All versions | No fix listed |
| redhat/python-django(Red Hat:openstack:13) | All versions | No fix listed |
| redhat/python-django20(Red Hat:openstack:16.2) | All versions | No fix listed |
| redhat/rhosp-rhel8/openstack-horizon(Red Hat:openstack:16.2) | All versions | No fix listed |
| redhat/python-django(Red Hat:openstack:17.1) | All versions | No fix listed |
| redhat/rhosp-rhel9/openstack-horizon(Red Hat:openstack:17.1) | All versions | No fix listed |
| redhat/python-django(Red Hat:openstack:18.0) | All versions | No fix listed |
| redhat/rhoso/openstack-horizon-rhel9(Red Hat:openstack:18.0) | All versions | No fix listed |
| redhat/python3.12-django(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/python-django(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/satellite/iop-advisor-backend-rhel9(Red Hat:satellite:6) | All versions | No fix listed |
| redhat/python-django(Red Hat:rhui:4::el8) | All versions | No fix listed |
| redhat/rhui5/rhua-rhel9(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/rhui5/rhua-tp-rhel9(Red Hat:rhui:5::el9) | All versions | No fix listed |
| redhat/ansible-automation-platform/bootc-automation-portal-rhel9(Red Hat:ansible_portal:2) | All versions | No fix listed |
| debian/python-django(Debian:12) | < 3:3.2.25-0+deb12u6 | 3:3.2.25-0+deb12u6 |
| 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:12) | = 3:3.2.25-0+deb12u2 | No fix listed |
| debian/python-django(Debian:12) | = 3:3.2.25-0+deb12u3 | No fix listed |
| debian/python-django(Debian:12) | = 3:3.2.25-0+deb12u4 | No fix listed |
| debian/python-django(Debian:12) | = 3:3.2.25-0+deb12u5 | No fix listed |
| debian/python-django(Debian:13) | All versions | No fix listed |
| 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:13) | = 3:4.2.28-0+deb13u1 | No fix listed |
| debian/python-django(Debian:13) | = 3:4.2.28-0+deb13u2 | No fix listed |
| debian/python-django(Debian:13) | = 3:4.2.28-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:4.2.29-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:4.2.30-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0.3-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0.4-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0.6-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0~alpha1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.0~rc1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1.3-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1.4-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1.5-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1~alpha1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1~beta1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.1~rc1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.13-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.14-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.14-2 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.15-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.15-2 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.15-2~bpo13+1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.16-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.16-1~bpo13+1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.17-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.17-2 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.17-2~bpo13+1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.18-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.18-2 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.19-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.3-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.4-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.5-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2.6-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2~alpha1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2~beta1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:5.2~rc1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.3-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.4-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.5-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0.6-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0~alpha1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0~beta1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.0~rc1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1.1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1.2-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1.3-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1~beta1-1 | No fix listed |
| debian/python-django(Debian:13) | = 3:6.1~rc1-1 | No fix listed |
| debian/python-django(Debian:14) | < 3:5.2.18-1 | 3:5.2.18-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 |
| debian/python-django(Debian:14) | = 3:4.2.28-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:4.2.29-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:4.2.30-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0.1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0.2-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0.3-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0.4-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0.6-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0~alpha1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.0~rc1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1.1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1.2-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1.3-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1.4-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1.5-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1~alpha1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1~beta1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.1~rc1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.13-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.14-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.14-2 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.15-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.15-2 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.15-2~bpo13+1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.16-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.16-1~bpo13+1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.17-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.17-2 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.17-2~bpo13+1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.2-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.3-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.4-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.5-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2.6-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2~alpha1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2~beta1-1 | No fix listed |
| debian/python-django(Debian:14) | = 3:5.2~rc1-1 | No fix listed |
| ubuntu/python-django(Ubuntu:22.04) | All versions | No fix listed |
| alpine/py3-django(Alpine:v3.24) | < 5.2.18-r0 | 5.2.18-r0 |
| ubuntu/python-django(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/python-django(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/python-django(Ubuntu:26.10) | All versions | No fix listed |
| azure linux python-django5(Azure Linux:4.0) | < 0:5.2.18-2.azl4 | 0:5.2.18-2.azl4 |
References
- Django security archive vendor-advisory
- Django releases announcements mailing-list
- github.com patch
- github.com patch
- github.com patch
- github.com patch
- Django security releases issued: 6.1.2, 6.0.9, and 5.2.18 vendor-advisory
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2544152 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-87975 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- security.alpinelinux.org vendor-advisory
- bugs.debian.org issue-tracking
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- ENISA EUVD EUVD-2026-93396 third-party-advisory