{"id":"CVE-2019-19118","state":"PUBLISHED","title":"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 ","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.)","publishedAt":"2019-12-02T13:16:34.000Z","updatedAt":"2024-08-05T02:09:39.366Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"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"],"weaknesses":[],"ingestedAt":"2026-10-29T19:45:43.853Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2019/19xxx/CVE-2019-19118.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2019-19118","state":"PUBLISHED","datePublished":"2019-12-02T13:16:34.000Z","dateUpdated":"2024-08-05T02:09:39.366Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2019-11-19T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2019/12/02/1","name":"[oss-security] 20191202 Django 2.2.8 and 2.1.15: CVE-2019-19118: Privilege escalation in the Django admin.","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ","tags":["x_refsource_MISC"]},{"url":"https://www.djangoproject.com/weblog/2019/dec/02/security-releases/","tags":["x_refsource_CONFIRM"]},{"url":"https://security.netapp.com/advisory/ntap-20191217-0003/","tags":["x_refsource_CONFIRM"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/","name":"FEDORA-2019-adc8990386","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://security.gentoo.org/glsa/202004-17","name":"GLSA-202004-17","tags":["vendor-advisory","x_refsource_GENTOO"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2020-05-01T01:06:12.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2019-19118","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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.)"}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"https://docs.djangoproject.com/en/dev/releases/security/","refsource":"MISC","url":"https://docs.djangoproject.com/en/dev/releases/security/"},{"name":"[oss-security] 20191202 Django 2.2.8 and 2.1.15: CVE-2019-19118: Privilege escalation in the Django admin.","refsource":"MLIST","url":"http://www.openwall.com/lists/oss-security/2019/12/02/1"},{"name":"https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ","refsource":"MISC","url":"https://groups.google.com/forum/#!topic/django-announce/GjGqDvtNmWQ"},{"name":"https://www.djangoproject.com/weblog/2019/dec/02/security-releases/","refsource":"CONFIRM","url":"https://www.djangoproject.com/weblog/2019/dec/02/security-releases/"},{"name":"https://security.netapp.com/advisory/ntap-20191217-0003/","refsource":"CONFIRM","url":"https://security.netapp.com/advisory/ntap-20191217-0003/"},{"name":"FEDORA-2019-adc8990386","refsource":"FEDORA","url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/"},{"name":"GLSA-202004-17","refsource":"GENTOO","url":"https://security.gentoo.org/glsa/202004-17"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://docs.djangoproject.com/en/dev/releases/security/","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2019/12/02/1","name":"[oss-security] 20191202 Django 2.2.8 and 2.1.15: CVE-2019-19118: Privilege escalation in the Django admin.","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://www.djangoproject.com/weblog/2019/dec/02/security-releases/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://security.netapp.com/advisory/ntap-20191217-0003/","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6R4HD22PVEVQ45H2JA2NXH443AYJOPL5/","name":"FEDORA-2019-adc8990386","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"https://security.gentoo.org/glsa/202004-17","name":"GLSA-202004-17","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-05T02:09:39.366Z"}}]}}}