Privilege escalation in sudo



Published: 2019-10-15
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE ID CVE-2019-14287
CWE ID CWE-264
Exploitation vector Local
Public exploit Public exploit code for vulnerability #1 is available.
Vulnerable software
Subscribe
Sudo
Client/Desktop applications / Software for system administration

Vendor Sudo

Security Advisory

This security advisory describes one low risk vulnerability.

1) Permissions, Privileges, and Access Controls

Risk: Low

CVSSv3: 6.3 [CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H/E:P/RL:O/RC:C] [PCI]

CVE-ID: CVE-2019-14287

CWE-ID: CWE-264 - Permissions, Privileges, and Access Controls

Exploit availability: Yes

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

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Sudo: 1.8.0, 1.8.1, 1.8.1p1, 1.8.1p2, 1.8.2, 1.8.3, 1.8.3p1, 1.8.3p2, 1.8.4, 1.8.4p1, 1.8.4p2, 1.8.4p3, 1.8.4p4, 1.8.4p5, 1.8.5, 1.8.5p1, 1.8.5p2, 1.8.5p3, 1.8.6, 1.8.6p1, 1.8.6p2, 1.8.6p3, 1.8.6p4, 1.8.6p5, 1.8.6p6, 1.8.6p7, 1.8.6p8, 1.8.7, 1.8.8, 1.8.9, 1.8.9p1, 1.8.9p2, 1.8.9p3, 1.8.9p4, 1.8.9p5, 1.8.10, 1.8.10p1, 1.8.10p2, 1.8.10p3, 1.8.11, 1.8.11p1, 1.8.11p2, 1.8.12, 1.8.13, 1.8.14, 1.8.14p1, 1.8.14p2, 1.8.14p3, 1.8.15, 1.8.16, 1.8.17, 1.8.17p1, 1.8.18, 1.8.18p1, 1.8.19, 1.8.19p1, 1.8.19p2, 1.8.20, 1.8.20p1, 1.8.20p2, 1.8.21, 1.8.21p1, 1.8.21p2, 1.8.22, 1.8.23, 1.8.24, 1.8.25, 1.8.25p1, 1.8.26, 1.8.27

CPE External links

https://www.sudo.ws/alerts/minus_1_uid.html

Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability. However, proof of concept for this vulnerability is available.



###SIDEBAR###