CVE-2019-14287: High severity Sudo Project Sudo vulnerability

Published Oct 10, 2019
·
Updated

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

81 affected componentsFixes available
redhat/sudo<0:1.7.2p1-31.el5_11.1
0:1.7.2p1-31.el5_11.1
redhat/sudo<0:1.8.6p3-29.el6_10.2
0:1.8.6p3-29.el6_10.2
redhat/sudo<0:1.8.6p3-12.el6_5.2
0:1.8.6p3-12.el6_5.2
redhat/sudo<0:1.8.6p3-15.el6_6.2
0:1.8.6p3-15.el6_6.2
redhat/sudo<0:1.8.23-4.el7_7.1
0:1.8.23-4.el7_7.1
redhat/sudo<0:1.8.6p7-17.el7_2.2
0:1.8.6p7-17.el7_2.2
redhat/sudo<0:1.8.6p7-23.el7_3.2
0:1.8.6p7-23.el7_3.2
redhat/sudo<0:1.8.19p2-12.el7_4.1
0:1.8.19p2-12.el7_4.1
redhat/sudo<0:1.8.19p2-14.el7_5.1
0:1.8.19p2-14.el7_5.1
redhat/sudo<0:1.8.23-3.el7_6.1
0:1.8.23-3.el7_6.1
redhat/sudo<0:1.8.25p1-8.el8_1
0:1.8.25p1-8.el8_1
redhat/sudo<0:1.8.25p1-4.el8_0.2
0:1.8.25p1-4.el8_0.2
redhat/redhat-release-virtualization-host<0:4.2-15.1.el7
0:4.2-15.1.el7
redhat/redhat-virtualization-host<0:4.2-20191022.0.el7_6
0:4.2-20191022.0.el7_6
debian/sudo<=1.8.27-1, <=1.8.19p1-2.1
1.8.19p1-2.1+deb9u11.8.27-1+deb10u11.8.27-1.1
redhat/sudo<1.8.28
1.8.28
Sudo Project Sudo<1.8.28
Fedoraproject Fedora=29
Fedoraproject Fedora=30
Fedoraproject Fedora=31
Debian Debian Linux=8.0
Debian Debian Linux=9.0
Debian Debian Linux=10.0
openSUSE Leap=15.0
openSUSE Leap=15.1
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=18.04
Canonical Ubuntu Linux=19.04
NetApp Element Software Management Node
redhat OpenShift Container Platform=4.1
redhat Virtualization=4.2
redhat Enterprise Linux=8.0
redhat Enterprise Linux Desktop=6.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=7.5
redhat Enterprise Linux Eus=7.6
redhat Enterprise Linux Eus=7.7
redhat Enterprise Linux Eus=8.1
redhat Enterprise Linux Eus=8.2
redhat Enterprise Linux Eus=8.4
redhat Enterprise Linux Server=5.0
redhat Enterprise Linux Server=6.0
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=6.5
redhat Enterprise Linux Server Aus=6.6
redhat Enterprise Linux Server Aus=7.2
redhat Enterprise Linux Server Aus=7.3
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Aus=7.7
redhat Enterprise Linux Server Aus=8.2
redhat Enterprise Linux Server Aus=8.4
redhat Enterprise Linux Server Tus=7.2
redhat Enterprise Linux Server Tus=7.3
redhat Enterprise Linux Server Tus=7.4
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Server Tus=7.7
redhat Enterprise Linux Server Tus=8.2
redhat Enterprise Linux Server Tus=8.4
redhat Enterprise Linux Workstation=6.0
redhat Enterprise Linux Workstation=7.0
debian/sudo
1.9.5p2-3+deb11u11.9.5p2-3+deb11u31.9.13p3-1+deb12u31.9.13p3-1+deb12u21.9.16p2-31.9.17p2-4
alpine/sudo<1.8.27-r1
1.8.27-r1
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.28-r0
1.8.28-r0
alpine/sudo<1.8.23-r3
1.8.23-r3
alpine/sudo<1.8.25_p1-r3
1.8.25_p1-r3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.7.2p1-31.el5_11.1
  2. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.6p3-29.el6_10.2
  3. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.6p3-12.el6_5.2
  4. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.6p3-15.el6_6.2
  5. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.23-4.el7_7.1
  6. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.6p7-17.el7_2.2
  7. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.6p7-23.el7_3.2
  8. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.19p2-12.el7_4.1
  9. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.19p2-14.el7_5.1
  10. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.23-3.el7_6.1
  11. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.25p1-8.el8_1
  12. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 0:1.8.25p1-4.el8_0.2
  13. Upgrade

    Upgrade redhat/redhat-release-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.2-15.1.el7
  14. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.2-20191022.0.el7_6
  15. Upgrade

    Upgrade debian/sudo to 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
  16. Upgrade

    Upgrade redhat/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.28
  17. Upgrade

    Upgrade debian/sudo to 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
  18. Upgrade

    Upgrade alpine/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.27-r1
  19. Upgrade

    Upgrade alpine/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.28-r0
  20. Upgrade

    Upgrade alpine/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.23-r3
  21. Upgrade

    Upgrade alpine/sudo to a version that resolves this vulnerability.

    Fixed in 1.8.25_p1-r3
  22. Upgrade

    Upgrade sudo to a version that resolves this vulnerability.

    Fixed in 1.8.28
  23. 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

Oct 14, 2019
CVE Published
03:00 PM
Oct 17, 2019
CVE Published
via MITRE·05:03 PM
Data Sourced
via MITRE·05:03 PM
Description
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·06:15 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the vulnerability ID for this flaw in sudo?

The vulnerability ID for this flaw in sudo is CVE-2019-14287.

2

What is the severity of CVE-2019-14287?

The severity of CVE-2019-14287 is high.

3

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.

4

How can an attacker exploit CVE-2019-14287?

An attacker can exploit CVE-2019-14287 by invoking sudo with a crafted user ID.

5

Is there a fix available for this vulnerability in sudo?

Yes, the fix for this vulnerability in sudo is version 1.8.28.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203