---
title: "CVE-2026-87975"
canonical_url: "https://pkgseek.com/security/CVE-2026-87975"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "medium"
---

# CVE-2026-87975

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 n…

CVE-2026-87975 严重级别为 MEDIUM，共索引 21 条受影响软件包构建记录，涉及 3 个发行版。

- **级别 / 评分**: MEDIUM
- **受影响构建数**: 21
- **涉及发行版**: 3
- **已标明修复版本发行版**: Fedora

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | python3-django | 3:4.2.28-0+deb13u2 | — |
| Debian | trixie | python-django-doc | 3:4.2.28-0+deb13u2 | — |
| Fedora | 43 | python3-django | 5.2.4-4.fc43 | 5.2.18-1.fc43 |
| Fedora | 43 | python3-django-bash-completion | 5.2.4-4.fc43 | 5.2.18-1.fc43 |
| Fedora | 43 | python3-django-doc | 5.2.4-4.fc43 | 5.2.18-1.fc43 |
| Fedora | 44 | python3-django | 6.0.2-1.fc44 | 6.1.2-1.fc44 |
| Fedora | 44 | python3-django5 | 5.2.11-1.fc44 | 5.2.18-1.fc44 |
| Fedora | 44 | python3-django5-bash-completion | 5.2.11-1.fc44 | 5.2.18-1.fc44 |
| Fedora | 44 | python3-django5-doc | 5.2.11-1.fc44 | 5.2.18-1.fc44 |
| Fedora | 44 | python3-django-bash-completion | 6.0.2-1.fc44 | 6.1.2-1.fc44 |
| Fedora | 44 | python3-django-doc | 6.0.2-1.fc44 | 6.1.2-1.fc44 |
| Fedora | 45 | python3-django | 6.1.1-2.fc45 | 6.1.2-1.fc45 |
| Fedora | 45 | python3-django5 | 5.2.17-2.fc45 | 5.2.18-1.fc45 |
| Fedora | 45 | python3-django5-bash-completion | 5.2.17-2.fc45 | 5.2.18-1.fc45 |
| Fedora | 45 | python3-django5-doc | 5.2.17-2.fc45 | 5.2.18-1.fc45 |
| Fedora | 45 | python3-django-bash-completion | 6.1.1-2.fc45 | 6.1.2-1.fc45 |
| Fedora | 45 | python3-django-doc | 6.1.1-2.fc45 | 6.1.2-1.fc45 |
| Ubuntu | jammy | python3-django | 2:3.2.12-2ubuntu1 | — |
| Ubuntu | jammy | python-django-doc | 2:3.2.12-2ubuntu1 | — |
| Ubuntu | noble | python3-django | 3:4.2.11-1ubuntu1 | — |
| Ubuntu | noble | python-django-doc | 3:4.2.11-1ubuntu1 | — |
