SB2019101423 - Permissions, Privileges, and Access Controls in sudo (Alpine package)
Published: October 14, 2019 Updated: February 27, 2024
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 1 security vulnerability.
1) Permissions, Privileges, and Access Controls (CVE-ID: CVE-2019-14287)
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 update from vendor's website.
References
- https://git.alpinelinux.org/aports/commit/?id=65742d1686905358cb3f4a84098986fee39b760c
- https://git.alpinelinux.org/aports/commit/?id=4eb0cde945abbbc4072723fa88a36001fa50aef8
- https://git.alpinelinux.org/aports/commit/?id=3646eb84251dca32277b87ee540ad7062a909687
- https://git.alpinelinux.org/aports/commit/?id=691af4d751b10236efa6cce5e2866dabfc5047dd
- https://git.alpinelinux.org/aports/commit/?id=35cc1de5b1dd6af591cc931b96b045edab5d8525
- https://git.alpinelinux.org/aports/commit/?id=87cda3c142a7ab418e7a25d79f226a7470ec3867