CVE-2019-19882
shadow 4.8, in certain circumstances affecting at least Gentoo, Arch Linux, and Void Linux, allows local users to obtain root access because setuid programs are misconfigured. Specifically, this affects shadow 4.8 when compiled using --with-libpam but without explicitly passing --disable-account-tools-setuid, and without a PAM configuration suitable for use with setuid account management tools. This combination leads to account management tools (groupadd, groupdel, groupmod, useradd, userdel, usermod) that can easily be used by unprivileged local users to escalate privileges to root in multiple ways. This issue became much more relevant in approximately December 2019 when an unrelated bug was fixed (i.e., the chmod calls to suidusbins were fixed in the upstream Makefile which is now included in the release version 4.8).
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | shadow | Not affected vulnerable_code_not_present | ||
| Debian 14 | shadow | Fixed | 1:4.8.1-1 | DEBIAN-CVE-2019-19882 |
| Debian 13 | shadow | Fixed | 1:4.8.1-1 | DEBIAN-CVE-2019-19882 |
| Debian 12 | shadow | Fixed | 1:4.8.1-1 | DEBIAN-CVE-2019-19882 |
| Red Hat Enterprise Linux 8 | shadow-utils | Not affected | ||
| Red Hat Enterprise Linux 8 | shadow-utils-subid | Not affected | ||
| Red Hat Enterprise Linux 8 | shadow-utils-subid-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | shadow-utils | Not affected | ||
| Red Hat Enterprise Linux 6 | shadow-utils | Not affected | ||
| Red Hat Enterprise Linux 5 | shadow-utils | Not affected |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://security.gentoo.org/glsa/202008-09 (vendor-advisory)
References
- https://github.com/shadow-maint/shadow/commit/edf7547ad5aa650be868cf2dac58944773c12d75
- https://github.com/shadow-maint/shadow/pull/199
- https://bugs.archlinux.org/task/64836
- https://bugs.gentoo.org/702252
- https://github.com/void-linux/void-packages/pull/17580
- https://security.gentoo.org/glsa/202008-09
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.