{"id":"GHSA-hvmf-r92r-27hr","summary":"Django allows unintended model editing","details":"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.)","aliases":["CVE-2019-19118","PYSEC-2019-15"],"modified":"2024-11-19T05:33:19.050183Z","published":"2019-12-04T21:26:28Z","database_specific":{"github_reviewed_at":"2019-12-04T19:44:26Z","github_reviewed":true,"cwe_ids":["CWE-276"],"severity":"HIGH","nvd_published_at":null},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19118"},{"type":"WEB","url":"https://github.com/django/django/commit/103ebe2b5ff1b2614b85a52c239f471904d26244"},{"type":"WEB","url":"https://github.com/django/django/commit/36f580a17f0b3cb087deadf3b65eea024f479c21"},{"type":"WEB","url":"https://docs.djangoproject.com/en/dev/releases/security"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-hvmf-r92r-27hr"},{"type":"PACKAGE","url":"https://github.com/django/django"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/django/PYSEC-2019-15.yaml"},{"type":"WEB","url":"https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5"},{"type":"WEB","url":"https://security.gentoo.org/glsa/202004-17"},{"type":"WEB","url":"https://security.netapp.com/advisory/ntap-20191217-0003"},{"type":"WEB","url":"https://www.djangoproject.com/weblog/2019/dec/02/security-releases"},{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2019/12/02/1"}],"affected":[{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1"},{"fixed":"2.1.15"}]}],"versions":["2.1","2.1.1","2.1.10","2.1.11","2.1.12","2.1.13","2.1.14","2.1.2","2.1.3","2.1.4","2.1.5","2.1.7","2.1.8","2.1.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-hvmf-r92r-27hr/GHSA-hvmf-r92r-27hr.json"}},{"package":{"name":"django","ecosystem":"PyPI","purl":"pkg:pypi/django"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.2"},{"fixed":"2.2.8"}]}],"versions":["2.2","2.2.1","2.2.2","2.2.3","2.2.4","2.2.5","2.2.6","2.2.7"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2019/12/GHSA-hvmf-r92r-27hr/GHSA-hvmf-r92r-27hr.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N"}]}