Permissions, Privileges, and Access Controls in Sudo - CVE-2019-14287

 

Permissions, Privileges, and Access Controls in Sudo - CVE-2019-14287

Published: October 15, 2019 / Updated: February 27, 2024


Vulnerability identifier: #VU21782
CSH Severity: Low
CVSS v4: 7.3 [CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2019-14287
CWE-ID: CWE-264
Exploitation vector: Local access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists in the implementation of the "sudo" application when processing commands that are configured to run with ALL keyword. A local user with privileges to use sudo for specific applications on the system can escalate privileges and run the application as root (even if precisely restricted), if user id "-1" or "4294967295" is used.

Example:

The following entry instructs sudo to allow user bob to run "/usr/bin/id" command as any user on the system but root:

myhost bob = (ALL, !root) /usr/bin/id

The following command will allow bob execute the  "/usr/bin/id" command as root:

sudo -u#-1 id -u

Affected software

Sudo
Red Hat OpenShift Container Platform
Gentoo Linux
Arch Linux
Amazon Linux AMI
Red Hat Enterprise Linux Server
Red Hat Enterprise Linux for Scientific Computing
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux Desktop
Red Hat Enterprise Linux Workstation
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux EUS Compute Node
Red Hat Enterprise Linux for x86_64
Slackware Linux
Opensuse
Fedora
sudo (Alpine package)
sudo (Debian package)
sudo (Ubuntu package)
Red Hat Enterprise Linux Server for x86_64 - Update Services for SAP Solutions
sudo (Red Hat package)
sudo
Data Computing Appliance (DCA)
Red Hat Virtualization Host
Dell EMC Unity Operating Environment (OE)
Dell EMC Unity VSA Operating Environment (OE)

How to mitigate CVE-2019-14287

Install updates from vendor's website.

Sudo - update to 1.8.28
sudo (Alpine package) - update to 1.8.28-r0
sudo (Debian package) - addressed in versions 1.8.19p1-2.1+deb9u1, 1.8.27-1+deb10u1
sudo (Ubuntu package) - addressed in versions 1.8.16-0ubuntu1.8, 1.8.21p2-3ubuntu1.1, 1.8.27-1ubuntu1.1
Data Computing Appliance (DCA) - update to 3.5.5.0
Red Hat OpenShift Container Platform - addressed in versions 4.1.24, 4.2.5
sudo (Red Hat package) - update to 1.8.6p3-15.el6_6.2
sudo - addressed in versions 1.8.28-1.fc29, 1.8.28-1.fc30, 1.8.28-1.fc31
Dell EMC Unity Operating Environment (OE) - update to 5.0.3.0.5.014
Dell EMC Unity VSA Operating Environment (OE) - update to 5.0.3.0.5.014

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins