CVE-2019-18684
Last modified
CVE-2019-18684 is a high-severity vulnerability rated 7/10 on the CVSS scale. 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. EPSS estimates a 0.29% chance of exploitation in the next 30 days.
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
Metrics
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Sudo Project | Sudo | <= 1.8.29 |
References
- https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbdExploit, Third Party Advisory
- https://gist.github.com/oxagast/51171aa161074188a11d96cbef884bbdExploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2019-18684?
How severe is CVE-2019-18684?
How do I fix CVE-2019-18684?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2019
- CVE-2019-18677An issue was discovered in Squid 3.x and 4.x through 4.8 whe…6.1
- CVE-2019-18678An issue was discovered in Squid 3.x and 4.x through 4.8. It…5.3
- CVE-2019-18679An issue was discovered in Squid 2.x, 3.x, and 4.x through 4…7.5
- CVE-2019-1868A vulnerability in the web-based management interface of Cis…7.5
- CVE-2019-18680An issue was discovered in the Linux kernel 4.4.x before 4.4…7.5
- CVE-2019-18683An issue was discovered in drivers/media/platform/vivid in t…7
- CVE-2019-18685Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2019-18686Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2019-18687Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2019-18688Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2019-18689Rejected reason: DO NOT USE THIS CANDIDATE NUMBER. ConsultID…
- CVE-2019-1869A vulnerability in the internal packet-processing functional…8.6
Are you affected by CVE-2019-18684?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
