CVE-2019-14287: High severity Sudo Project Sudo vulnerability
A flaw was found in sudo before version 1.8.28. When sudo is configured to allow a user to run commands as an arbitrary user via the 'ALL' keyword in a 'Runas' specification, it is possible to run commands as root.
Other sources
A flaw was found in the way sudo implemented running commands with arbitrary user ID. If a sudoers entry is written to allow the attacker to run a command as any user except root, this flaw can be used by the attacker to bypass that restriction.
In Sudo before 1.8.28, an attacker with access to a Runas ALL sudoer account can bypass certain policy blacklists and session PAM modules, and can cause incorrect logging, by invoking sudo with a crafted user ID. For example, this allows bypass of !root configuration, and USER= logging, for a "sudo -u \#$((0xffffffff))" command.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.7.2p1-31.el5_11.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.6p3-29.el6_10.2 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.6p3-12.el6_5.2 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.6p3-15.el6_6.2 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.23-4.el7_7.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.6p7-17.el7_2.2 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.6p7-23.el7_3.2 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.19p2-12.el7_4.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.19p2-14.el7_5.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.23-3.el7_6.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.25p1-8.el8_1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 0:1.8.25p1-4.el8_0.2 - Upgrade
Upgrade
redhat/redhat-release-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.2-15.1.el7 - Upgrade
Upgrade
redhat/redhat-virtualization-hostto a version that resolves this vulnerability.Fixed in 0:4.2-20191022.0.el7_6 - Upgrade
Upgrade
debian/sudoto a version that resolves this vulnerability.Fixed in 1.8.19p1-2.1+deb9u1Fixed in 1.8.27-1+deb10u1Fixed in 1.8.27-1.1 - Upgrade
Upgrade
redhat/sudoto a version that resolves this vulnerability.Fixed in 1.8.28 - Upgrade
Upgrade
debian/sudoto a version that resolves this vulnerability.Fixed in 1.9.5p2-3+deb11u1Fixed in 1.9.5p2-3+deb11u3Fixed in 1.9.13p3-1+deb12u3Fixed in 1.9.13p3-1+deb12u2Fixed in 1.9.16p2-3Fixed in 1.9.17p2-4 - Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.8.27-r1 - Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.8.28-r0 - Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.8.23-r3 - Upgrade
Upgrade
alpine/sudoto a version that resolves this vulnerability.Fixed in 1.8.25_p1-r3 - Upgrade
Upgrade
sudoto a version that resolves this vulnerability.Fixed in 1.8.28 - Configuration
Examine each sudoers entry whose Runas specification includes ! and ensure that the root user is not among the exclusions, including exclusions specified by name, user ID, or a Runas_Alias.
sudoers Runas user-list exclusions = Do not exclude root with !
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the vulnerability ID for this flaw in sudo?
The vulnerability ID for this flaw in sudo is CVE-2019-14287.
What is the severity of CVE-2019-14287?
The severity of CVE-2019-14287 is high.
How does the vulnerability in sudo affect the system?
The vulnerability in sudo allows an attacker with access to a Runas ALL sudoer account to bypass certain policy blacklists and session PAM modules, and can cause incorrect logging.
How can an attacker exploit CVE-2019-14287?
An attacker can exploit CVE-2019-14287 by invoking sudo with a crafted user ID.
Is there a fix available for this vulnerability in sudo?
Yes, the fix for this vulnerability in sudo is version 1.8.28.