cve.bz

CVE-2019-14287

8.8 highExploitEPSS 64%Fix available

High (8.8). EPSS 64% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
64% (unchanged from 64% a week ago; 64% 30 days ago) estimated probability of exploitation activity in the next 30 days; 99th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-755 Improper Handling of Exceptional Conditions
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-14287 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-14287?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-14287?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-14287 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
sudo_project:sudobefore 1.8.28
fedoraproject:fedora29
fedoraproject:fedora30
fedoraproject:fedora31
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0
opensuse:leap15.0
opensuse:leap15.1
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
canonical:ubuntu_linux16.04
canonical:ubuntu_linux18.04
canonical:ubuntu_linux19.04
redhat:openshift_container_platform4.1
redhat:virtualization4.2
redhat:enterprise_linux8.0
redhat:enterprise_linux_desktop6.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_eus7.5
redhat:enterprise_linux_eus7.6
redhat:enterprise_linux_eus7.7
redhat:enterprise_linux_eus8.1
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_eus8.4
redhat:enterprise_linux_server5.0
redhat:enterprise_linux_server6.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus6.5
redhat:enterprise_linux_server_aus6.6
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_aus7.6
redhat:enterprise_linux_server_aus7.7
redhat:enterprise_linux_server_aus8.2
redhat:enterprise_linux_server_aus8.4
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_server_tus7.6
redhat:enterprise_linux_server_tus7.7
redhat:enterprise_linux_server_tus8.2
redhat:enterprise_linux_server_tus8.4
redhat:enterprise_linux_workstation6.0
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8sudo1.8.10p3-1+deb8u6DLA-1964-1
Debian9sudo1.8.19p1-2.1+deb9u1DSA-4543-1
Debian10sudo1.8.27-1+deb10u1DSA-4543-1
Debian12, 13, 14sudo1.8.27-1.1DEBIAN-CVE-2019-14287
Ubuntu16.04:LTSsudo1.8.16-0ubuntu1.8UBUNTU-CVE-2019-14287 USN-4154-1
Ubuntu18.04:LTSsudo1.8.21p2-3ubuntu1.1UBUNTU-CVE-2019-14287 USN-4154-1
UbuntuPro:14.04:LTSsudo1.8.9p5-1ubuntu1.5+esm2UBUNTU-CVE-2019-14287 USN-4154-1
Red Hatenterprise_linux:6::client, enterprise_linux:6::computenode, enterprise_linux:6::server and 1 moresudo, sudo-devel, sudo-debuginfo0:1.8.6p3-29.el6_10.2RHSA-2019:3755
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::server and 1 moresudo, sudo-devel, sudo-debuginfo0:1.8.23-4.el7_7.1RHSA-2019:3197
Red Hatenterprise_linux:7::hypervisorredhat-release-virtualization-host, redhat-release-virtualization-host-content, redhat-virtualization-host-image-update-placeholder0:4.2-15.1.el7RHBA-2019:3248
Red Hatenterprise_linux:7::hypervisorredhat-virtualization-host, redhat-virtualization-host-image-update0:4.2-20191022.0.el7_6RHBA-2019:3248
Red Hatenterprise_linux:8::baseossudo, sudo-debuginfo, sudo-debugsource0:1.8.25p1-8.el8_1RHSA-2019:3694
Red Hatrhel_aus:6.5::serversudo, sudo-devel, sudo-debuginfo0:1.8.6p3-12.el6_5.2RHSA-2019:3895
Red Hatrhel_aus:6.6::serversudo, sudo-devel, sudo-debuginfo0:1.8.6p3-15.el6_6.2RHSA-2019:3754
Red Hatrhel_aus:7.2::server, rhel_e4s:7.2::server, rhel_tus:7.2::serversudo, sudo-devel, sudo-debuginfo0:1.8.6p7-17.el7_2.2RHSA-2019:3278
Red Hatrhel_aus:7.3::server, rhel_e4s:7.3::server, rhel_tus:7.3::serversudo, sudo-devel, sudo-debuginfo0:1.8.6p7-23.el7_3.2RHSA-2019:3219
Red Hatrhel_aus:7.4::server, rhel_e4s:7.4::server, rhel_tus:7.4::serversudo, sudo-devel, sudo-debuginfo0:1.8.19p2-12.el7_4.1RHSA-2019:3209
Red Hatrhel_e4s:8.0::baseossudo, sudo-debuginfo, sudo-debugsource0:1.8.25p1-4.el8_0.2RHSA-2020:0388
Red Hatrhel_els:5sudo, sudo-debuginfo0:1.7.2p1-31.el5_11.1RHSA-2019:4191
2 more for Red Hat in the JSON and on Red Hat's page.
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP2-LTSS and 2 moresudo1.8.10p3-10.23.1SUSE-SU-2019:2667-1
SUSEEnterprise Storage 5, HPE Helion OpenStack 8, Linux Enterprise Desktop 12 SP4 and 8 moresudo1.8.20p2-3.14.1SUSE-SU-2019:2666-1
SUSELinux Enterprise Module for Basesystem 15, Linux Enterprise Module for Basesystem 15 SP1sudo1.8.22-4.6.1SUSE-SU-2019:2656-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSSsudo1.7.6p2-0.30.5.1SUSE-SU-2019:14193-1
SUSELinux Enterprise Server 12 SP1-LTSS, Linux Enterprise Server for SAP Applications 12 SP1sudo1.8.10p3-2.28.1SUSE-SU-2019:2668-1
openSUSELeap 15.0sudo1.8.22-lp150.8.1openSUSE-SU-2019:2333-1
openSUSELeap 15.1sudo1.8.22-lp151.5.3.1openSUSE-SU-2019:2316-1
openSUSETumbleweedsudo1.9.7p2-1.4openSUSE-SU-2024:11413-1
Alpinev3.8sudo1.8.23-r3ALPINE-CVE-2019-14287
Alpinev3.9sudo1.8.25_p1-r3ALPINE-CVE-2019-14287
Alpinev3.10sudo1.8.27-r1ALPINE-CVE-2019-14287
Alpinev3.11, v3.12, v3.13 and 11 moresudo1.8.28-r0ALPINE-CVE-2019-14287

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw only affects specific, non-default configurations of sudo, in which sudoers configuration entry allows a user to run a command as any user except root, for example:

someuser myhost = (ALL, !root) /usr/bin/somecommand

This configuration allows user "someuser" to run somecommand as any other user except root. However, this flaw also allows someuser to run somecommand as root by specifying the target user using the numeric id of -1. Only the specified command can be run, this flaw does NOT allow user to run other commands that those specified in the sudoers configuration.

Any other configurations of sudo (including configurations that allow user to run commands as any user including root and configurations that allow user to run command as a specific other user) are NOT affected by this flaw.

Red Hat Virtualization Hypervisor includes an affected version of sudo, however the default configuration is not vulnerable to this flaw.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5 Extended Lifecycle Supportsudo-0:1.7.2p1-31.el5_11.1Fixed 2019-12-10RHSA-2019:4191
Red Hat Enterprise Linux 6sudo-0:1.8.6p3-29.el6_10.2Fixed 2019-11-06RHSA-2019:3755
Red Hat Enterprise Linux 6.5 Advanced Update Supportsudo-0:1.8.6p3-12.el6_5.2Fixed 2019-11-18RHSA-2019:3895
Red Hat Enterprise Linux 6.6 Advanced Update Supportsudo-0:1.8.6p3-15.el6_6.2Fixed 2019-11-06RHSA-2019:3754
Red Hat Enterprise Linux 7sudo-0:1.8.23-4.el7_7.1Fixed 2019-10-24RHSA-2019:3197
Red Hat Enterprise Linux 7.2 Advanced Update Supportsudo-0:1.8.6p7-17.el7_2.2Fixed 2019-10-31RHSA-2019:3278
Red Hat Enterprise Linux 7.2 Telco Extended Update Supportsudo-0:1.8.6p7-17.el7_2.2Fixed 2019-10-31RHSA-2019:3278
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutionssudo-0:1.8.6p7-17.el7_2.2Fixed 2019-10-31RHSA-2019:3278
Red Hat Enterprise Linux 7.3 Advanced Update Supportsudo-0:1.8.6p7-23.el7_3.2Fixed 2019-10-29RHSA-2019:3219
Red Hat Enterprise Linux 7.3 Telco Extended Update Supportsudo-0:1.8.6p7-23.el7_3.2Fixed 2019-10-29RHSA-2019:3219
Red Hat Enterprise Linux 7.3 Update Services for SAP Solutionssudo-0:1.8.6p7-23.el7_3.2Fixed 2019-10-29RHSA-2019:3219
Red Hat Enterprise Linux 7.4 Advanced Update Supportsudo-0:1.8.19p2-12.el7_4.1Fixed 2019-10-28RHSA-2019:3209
Red Hat Enterprise Linux 7.4 Telco Extended Update Supportsudo-0:1.8.19p2-12.el7_4.1Fixed 2019-10-28RHSA-2019:3209
Red Hat Enterprise Linux 7.4 Update Services for SAP Solutionssudo-0:1.8.19p2-12.el7_4.1Fixed 2019-10-28RHSA-2019:3209
Red Hat Enterprise Linux 7.5 Extended Update Supportsudo-0:1.8.19p2-14.el7_5.1Fixed 2019-10-24RHSA-2019:3204
Red Hat Enterprise Linux 7.6 Extended Update Supportsudo-0:1.8.23-3.el7_6.1Fixed 2019-10-24RHSA-2019:3205
Red Hat Enterprise Linux 8sudo-0:1.8.25p1-8.el8_1Fixed 2019-11-05RHSA-2019:3694
Red Hat Enterprise Linux 8.0 Update Services for SAP Solutionssudo-0:1.8.25p1-4.el8_0.2Fixed 2020-02-04RHSA-2020:0388
Red Hat OpenShift Container Platform 4machine-os-content-containerFixed 2019-11-21RHSA-2019:3941
Red Hat OpenShift Container Platform 4machine-os-content-containerFixed 2019-11-19RHSA-2019:3916
2 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-14287.

Public exploits

GitHub PoC (unverified)

Repositories on GitHub named after this CVE. Nobody has checked them and they are not scanned: some hold a working proof of concept, some nothing useful, and some malware made to look like one. Read the code before you run any of it.

References

Check your stackJSON