← Vulnerability feed

Vulnerability record · CVE-2019-18684 · published 4 November 2019

CVE-2019-18684: Sudo project sudo race condition vulnerability

Sudo Project · Sudo

Sudo through 1.8.29 allows local users to escalate to root if they have write access to file descriptor 3 of the sudo process. This occurs because of a race condition between determining a uid, and the setresuid and openat system calls. The attacker can write "ALL ALL=(ALL) NOPASSWD:ALL" to /proc/#####/fd/3 at a time when Sudo is prompting for a password. NOTE: This has been disputed due to the way Linux /proc works. It has been argued that writing to /proc/#####/fd/3 would only be viable if you had permission to write to /etc/sudoers. Even with write permission to /proc/#####/fd/3, it would not help you write to /etc/sudoers

7.0 CVSS 3.1 High EPSS 0.29% · top 77.8% CWE-362 · Race condition
7.0CVSS 3.1 base score, v2 6.9
0.29%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Sudo through 1.8.29 allows local users to escalate to root if they have write access to file descriptor 3 of the sudo process. This occurs because of a race condition between determining a uid, and the setresuid and openat system calls. The attacker can write "ALL ALL=(ALL) NOPASSWD:ALL" to /proc/#####/fd/3 at a time when Sudo is prompting for a password. NOTE: This has been disputed due to the way Linux /proc works. It has been argued that writing to /proc/#####/fd/3 would only be viable if you had permission to write to /etc/sudoers. Even with write permission to /proc/#####/fd/3, it would not help you write to /etc/sudoers

CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2019-18684 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.8CVE-2025-32463Sudo chroot local privilege escalation via untrusted nsswitch.confSudo before 1.9.17p1 loads /etc/nsswitch.conf from a user-controlled directory when the --chroot option is used, allowing inclusion of functionality …KEVEPSS 56%analysed7.8CVE-2021-3156Sudo off-by-one heap overflow allows root privilege escalationSudo before 1.9.5p2 contains an off-by-one error leading to a heap-based buffer overflow. Triggering it via 'sudoedit -s' with a command-line argumen…KEVEPSS 100%analysed8.8CVE-2025-32462Sudo project sudo incorrect authorization vulnerabilitySudo before 1.9.17p1, when used with a sudoers file that specifies a host that is neither the current host nor ALL, allows listed users to execute co…EPSS 4.5%8.8CVE-2023-7090Sudo project sudo improper privilege management vulnerabilityA flaw was found in sudo in the handling of ipa_hostname, where ipa_hostname from /etc/sssd/sssd.conf was not propagated in sudo. Therefore, it leads…EPSS 0.69%8.8CVE-2019-14287Sudo policy bypass via crafted user ID in sudo -uSudo before 1.8.28 mishandles a crafted user ID passed to sudo -u, allowing an attacker who already holds a Runas ALL sudoer account to bypass policy…EPSS 64%analysed8.2CVE-2017-1000368Sudo project sudo improper input validation vulnerabilityTodd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation (embedded newlines) in the get_process_ttyname() function result…EPSS 0.57%7.8CVE-2026-35535Sudo project sudo vulnerabilityIn Sudo through 1.9.17p2 before 3e474c2, a failure of a setuid, setgid, or setgroups call, during a privilege drop before running the mailer, is not …EPSS 0.18%7.8CVE-2023-22809Sudo sudoedit Argument Injection Enables Local Privilege EscalationSudo before 1.9.12p2 mishandles extra arguments supplied through the SUDO_EDITOR, VISUAL, and EDITOR environment variables in the sudoedit (-e) featu…EPSS 55%analysed

Source: NIST National Vulnerability Database (record CVE-2019-18684), CISA KEV, FIRST EPSS (scores of 2026-11-13). This page is refreshed as NVD updates the record.