Red Hat Security Advisory: sudo security update
🔗 CVE IDs covered (1)
📋 Description
CVE-2019-14287 — sudo: Privilege escalation via 'Runas' specification with 'ALL' keyword
🎯 Affected products8
- Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-0:1.8.25p1-4.el8_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-0:1.8.25p1-4.el8_0.2.src as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-0:1.8.25p1-4.el8_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-debuginfo-0:1.8.25p1-4.el8_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-debuginfo-0:1.8.25p1-4.el8_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-debugsource-0:1.8.25p1-4.el8_0.2.ppc64le as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
- sudo-debugsource-0:1.8.25p1-4.el8_0.2.x86_64 as a component of Red Hat Enterprise Linux BaseOS E4S (v. 8.0)
✅ Remediation
For details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 Workaround: This vulnerability only affects configurations of sudo that have a runas user list that includes an exclusion of root. The most simple example is: ~~~ someuser ALL=(ALL, !root) /usr/bin/somecommand ~~~ The exclusion is specified using an excalamation mark (!). In this example, the "root" user is specified by name. The root user may also be identified in other ways, such as by user id: ~~~ someuser ALL=(ALL, !#0) /usr/bin/somecommand ~~~ or by reference to a runas alias: ~~~ Runas_Alias MYGROUP = root, adminuser someuser ALL=(ALL, !MYGROUP) /usr/bin/somecommand ~~~ To ensure your sudoers configuration is not affected by this vulnerability, we recommend examining each sudoers entry that includes the `!` character in the runas specification, to ensure that the root user is not among the exclusions. These can be found in the /etc/sudoers file or files under /etc/sudoers.d.