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 products34
- Red Hat Enterprise Linux ComputeNode EUS (v. 7.5)
- Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5)
- Red Hat Enterprise Linux Server EUS (v. 7.5)
- Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.ppc64 as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.ppc64le as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.s390x as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.src as a component of Red Hat Enterprise Linux ComputeNode EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.src as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux ComputeNode EUS (v. 7.5)
- sudo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.i686 as a component of Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.i686 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.ppc as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.ppc64 as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.ppc64 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.ppc64le as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.ppc64le as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.s390 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.s390x as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.s390x as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux ComputeNode EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux Server EUS (v. 7.5)
- sudo-debuginfo-0:1.8.19p2-14.el7_5.1.x86_64 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-devel-0:1.8.19p2-14.el7_5.1.i686 as a component of Red Hat Enterprise Linux ComputeNode Optional EUS (v. 7.5)
- sudo-devel-0:1.8.19p2-14.el7_5.1.i686 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-devel-0:1.8.19p2-14.el7_5.1.ppc as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-devel-0:1.8.19p2-14.el7_5.1.ppc64 as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- sudo-devel-0:1.8.19p2-14.el7_5.1.ppc64le as a component of Red Hat Enterprise Linux Server Optional EUS (v. 7.5)
- +4 more not shown
✅ 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.