Bug 2547360

Summary: CVE-2026-87975 python-django5: Privilege abuse in model formsets with editable primary keys [fedora-all]
Product: [Fedora] Fedora Reporter: Vladimir Vasilev <vvasilev>
Component: python-django5Assignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: michel, python-packagers-sig
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["2d4e61c1-0d0e-487d-8f30-017bed7b527f"]}
Fixed In Version: python-django5-5.2.18-1.fc44 python-django5-5.2.18-1.fc43 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-10-17 01:06:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2544152    

Description Vladimir Vasilev 2026-10-07 10:26:56 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in Django. Model formsets did not correctly validate primary key values submitted in forged POST data when a model's primary key could be set through the form itself, such as with a OneToOneField (or a parent link used as the primary key of an inline formset's model), or a natural or UUID primary key included among the form's fields. An attacker with access to submit data to such a formset could forge POST data referencing primary keys outside the formset's limiting queryset, causing the formset to delete instances outside that queryset, or create instances through what was intended to be an edit-only formset. Models using the default BigAutoField primary key are not affected, since the primary key is not attacker-settable through the form.

Comment 1 Fedora Update System 2026-10-08 13:07:10 UTC
FEDORA-2026-8a0e918188 (python-django5-5.2.18-1.fc44) has been submitted as an update to Fedora 44.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-8a0e918188

Comment 2 Fedora Update System 2026-10-08 13:07:12 UTC
FEDORA-2026-36373ca634 (python-django5-5.2.18-1.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-36373ca634

Comment 3 Fedora Update System 2026-10-08 13:07:12 UTC
FEDORA-2026-a7b8ff851a (python-django5-5.2.18-1.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-a7b8ff851a

Comment 4 Fedora Update System 2026-10-09 02:08:51 UTC
FEDORA-2026-36373ca634 has been pushed to the Fedora 45 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-36373ca634`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-36373ca634

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2026-10-09 02:30:45 UTC
FEDORA-2026-8a0e918188 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-8a0e918188`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-8a0e918188

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 6 Fedora Update System 2026-10-09 02:55:41 UTC
FEDORA-2026-a7b8ff851a has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-a7b8ff851a`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-a7b8ff851a

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 7 Fedora Update System 2026-10-17 01:06:07 UTC
FEDORA-2026-8a0e918188 (python-django5-5.2.18-1.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-10-17 01:32:52 UTC
FEDORA-2026-a7b8ff851a (python-django5-5.2.18-1.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.