CVE-2019-18684

sudo: privilege escalation via write access to file descriptor 3 of the sudo process

Published Nov 4, 2019 CVSS 3.1 · 7.0 High EPSS < 1% KEV · Not listed
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

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Aug 5, 2024, 2:02 AM
Reserved
Nov 4, 2019, 12:00 AM
Status
Modified
Published
Nov 4, 2019, 4:15 PM
Modified
Jun 17, 2026, 2:25 AM
Severity
Moderate
Public date
Nov 7, 2019, 12:00 AM