CVE-2019-19118
Django 2.1 before 2.1.15 and 2.2 before 2.2.8 allows unintended model editing
Check your servers for CVE-2019-19118
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2019-19118 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.)
Exploitation
EPSS 1.67%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 77.4% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2019-19118 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2019-19118RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2019-19118Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2019-19118
trivy image --scanners vuln IMAGE | grep CVE-2019-19118
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- https://www.djangoproject.com/weblog/2019/dec/02/security-releases/ djangoproject.com
- https://security.netapp.com/advisory/ntap-20191217-0003/ security.netapp.com
- FEDORA-2019-adc8990386 lists.fedoraproject.org · vendor advisory
- GLSA-202004-17 security.gentoo.org · vendor advisory
Other references
- https://docs.djangoproject.com/en/dev/releases/security/ docs.djangoproject.com
- [oss-security] 20191202 Django 2.2.8 and 2.1.15: CVE-2019-19118: Privilege escalation in the Django admin. openwall.com · mailing list
- https://groups.google.com/forum/#%21topic/django-announce/GjGqDvtNmWQ groups.google.com
Source: the record CVE-2019-19118 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse