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
References
Link | Resource |
---|---|
https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbd | Exploit Third Party Advisory |
https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbd | Exploit Third Party Advisory |
Configurations
History
21 Nov 2024, 04:33
Type | Values Removed | Values Added |
---|---|---|
References | () https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbd - Exploit, Third Party Advisory |
07 Nov 2023, 03:06
Type | Values Removed | Values Added |
---|---|---|
Summary | 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 |
Information
Published : 2019-11-04 16:15
Updated : 2024-11-21 04:33
NVD link : CVE-2019-18684
Mitre link : CVE-2019-18684
CVE.ORG link : CVE-2019-18684
JSON object : View
Products Affected
sudo_project
- sudo
CWE
CWE-362
Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')