ID:9569 - Exploit for Permissions, Privileges, and Access Controls in Sudo - CVE-2019-14287

 
Main Vulnerability Database Exploits ID:9569 - Exploit for Permissions, Privileges, and Access Controls in Sudo - CVE-2019-14287

ID:9569 - Exploit for Permissions, Privileges, and Access Controls in Sudo - CVE-2019-14287

Published: February 27, 2024


Vulnerability identifier: #VU21782
Vulnerability risk: Low
CVE-ID: CVE-2019-14287
CWE-ID: CWE-264
Exploitation vector: Local access
Vulnerable software:
Sudo

Link to public exploit:


Vulnerability description

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

Remediation

Install updates from vendor's website.