Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing.
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · None
- Fix status
- Partial Red Hat: 2 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat.
Summary
Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing. A Django model admin displaying inline related models, where the user has view-only permissions to a parent model but edit permissions to the inline model, would be presented with an editing UI, allowing POST requests, for updating the inline model. Directly editing the view-only parent model was not possible, but the parent model's save() method was called, triggering potential side effects, and causing pre and post-save signal handlers to be invoked. (To resolve this, the Django admin is adjusted to require edit permissions on the parent model in order for inline models to be editable.)
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
| — | Django (PyPI) | 2.1 to before 2.1.15 | 2.1.15 | Patch available | GHSA-hvmf-r92r-27hr |
| — | Django (PyPI) | 2.2 to before 2.2.8 | 2.2.8 | Patch available | GHSA-hvmf-r92r-27hr |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
- Django (PyPI) Vendor— Affected 2.1 to before 2.1.15 Fixed in 2.1.15 Patch available GHSA-hvmf-r92r-27hr
- Django (PyPI) Vendor— Affected 2.2 to before 2.2.8 Fixed in 2.2.8 Patch available GHSA-hvmf-r92r-27hr
CPE configurations NVD · 2
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* | 2.1 to before 2.1.15; 2.2 to before 2.2.8 | Vulnerable | djangoproject |
| cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* | 31 | Vulnerable | Fedoraproject |
- cpe:2.3:a:djangoproject:django:*:*:*:*:*:*:*:* Versions 2.1 to before 2.1.15; 2.2 to before 2.2.8 Vulnerable ·djangoproject
- cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:* Versions 31 Vulnerable ·Fedoraproject
Remediation
- Fix · GHSA-hvmf-r92r-27hr Django (PyPI) Fixed in 2.1.15 Advisory →
- Fix · GHSA-hvmf-r92r-27hr Django (PyPI) Fixed in 2.2.8 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat OpenStack Platform 10 (Newton) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 14 (Rocky) | Affected | No fix planned: Out of support scope |
Not affected: 8 products
- Red Hat Ceph Storage 2
- Red Hat Ceph Storage 3
- Red Hat OpenStack Platform 13 (Queens)
- Red Hat OpenStack Platform 15 (Stein)
- Red Hat OpenStack Platform 16 (Train)
- Red Hat Satellite 6
- Red Hat Storage 3
- Red Hat Update Infrastructure 3 for Cloud Providers
Timeline
- 2026-10-02 Threatist record created from CVE-2019-19118
- 2026-10-03 Alias added: GHSA-hvmf-r92r-27hr
References
Patch 3
Advisory 5
Other 10
- https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ
- https://github.com/django/django/commit/103ebe2b5ff1b2614b85a52c239f471904d26244
- https://github.com/django/django/commit/36f580a17f0b3cb087deadf3b65eea024f479c21
- https://docs.djangoproject.com/en/dev/releases/security
- https://github.com/django/django
- https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-15.yaml
- https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ
- https://lists.fedoraproject.org/archives/list/[email protected]/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5
- https://security.netapp.com/advisory/ntap-20191217-0003
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases
Sources
- CVE-2019-19118 · CVE Program
- CVE-2019-19118 · NVD
- FIRST EPSS
- GHSA-hvmf-r92r-27hr · GitHub Advisory Database · CC BY 4.0
- CVE-2019-19118 · 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