# CVE-2019-19118: Django allows unintended model editing

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 1.67% (percentile 77, 2026-11-26)
- **CWE:** CWE-276
- **Aliases:** GHSA-hvmf-r92r-27hr, PYSEC-2019-15
- **Published:** 2019-12-02T13:16:34.000Z
- **Modified:** 2026-06-17T02:26:11.883Z

## Who should check

- Projects that depend on PyPI package django (\>= 2.1, \< 2.1.15)
- Anyone running n/a (versions: see the vendor advisory)

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

## Affected and fixed versions

- PyPI `django`: affected \>= 2.1, \< 2.1.15; fixed 2.1.15, 2.2.8 (osv)
- n/a: see vendor advisory (nvd)

## Mitigation

- Upgrade django to one of 2.1.15, 2.2.8 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2019-19118. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2019-19118.md
Affected: django >= 2.1, < 2.1.15
Fixed in: 2.1.15, 2.2.8

Steps:
1. Search this machine and project for django (PyPI), n/a: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2019-19118 being exploited?

There is no confirmed exploitation: CVE-2019-19118 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.67% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2019-19118?

Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, login needed.

### Which versions are affected by CVE-2019-19118?

django \>= 2.1, \< 2.1.15.

### Is there a fix for CVE-2019-19118?

Yes. Fixed in 2.1.15, 2.2.8. Upgrade django to one of 2.1.15, 2.2.8 (or later in the same release line).

### How do I check if I'm affected by CVE-2019-19118?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://security.netapp.com/advisory/ntap-20191217-0003/>
- vendor: <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/>
- vendor: <https://security.gentoo.org/glsa/202004-17>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2019-19118>
- vendor: <https://github.com/advisories/GHSA-hvmf-r92r-27hr>
- patch: <https://docs.djangoproject.com/en/dev/releases/security/>
- patch: <http://www.openwall.com/lists/oss-security/2019/12/02/1>
- patch: <https://www.djangoproject.com/weblog/2019/dec/02/security-releases/>
- patch: <https://github.com/django/django/commit/103ebe2b5ff1b2614b85a52c239f471904d26244>
- patch: <https://github.com/django/django/commit/36f580a17f0b3cb087deadf3b65eea024f479c21>
- other: <https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ>
- other: <https://docs.djangoproject.com/en/dev/releases/security>
- other: <https://github.com/django/django>
- other: <https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-15.yaml>
- other: <https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5>
- other: <https://security.netapp.com/advisory/ntap-20191217-0003>
- other: <https://www.djangoproject.com/weblog/2019/dec/02/security-releases>
- other: <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2019-19118>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-hvmf-r92r-27hr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/PYSEC-2019-15> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2019-19118> · JSON: <https://flawdb.com/api/v1/entries/CVE-2019-19118>
