CVE-2019-19118
What it is
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.)
At a glance
- Exploitability
- Can be exploited over the network with a low-privilege account. High risk of data tampering.
- Exploit odds
- 1.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.7% in the next 30 days (EPSS).
- Severity: 6.5 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.7% · EPSS, next 30 days
- Weakness
- CWE-276 · Incorrect default permissions
- Record status
- Modified
Affected
- Djangoproject Django < 2.1.15
- Djangoproject Django < 2.2.8
- Fedoraproject Fedora 31
Attack profile CVSS 3.1 · 6.5
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Raw vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2019-19118.md and follow it. Check whether this project is affected by CVE-2019-19118. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://docs.djangoproject.com/en/dev/releases/security/
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/
References
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/
- https://security.gentoo.org/glsa/202004-17
- https://security.netapp.com/advisory/ntap-20191217-0003/
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/
- http://www.openwall.com/lists/oss-security/2019/12/02/1
- https://docs.djangoproject.com/en/dev/releases/security/
- https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/
- https://security.gentoo.org/glsa/202004-17
- https://security.netapp.com/advisory/ntap-20191217-0003/
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/