CVE-2019-18684 Race condition in n/a
Local attackers can exploit a race condition in Sudo to escalate privileges to root by manipulating file descriptors during password prompts.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2019-18684?
CVE-2019-18684 is a high-severity vulnerability in n/a, published on 4 Nov 2019. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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
Weakness: CWE-362
Which versions are affected by CVE-2019-18684?
It affects 1 product.
Products include Sudo Project Sudo.
How do I fix CVE-2019-18684?
No fix has been published for CVE-2019-18684 yet. Limit exposure of the affected software until one is available.
Is CVE-2019-18684 being exploited?
There is no known exploitation of CVE-2019-18684 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-h9q8-53pc-hhxf.