Privilege Escalation via Symlink Attack in Sudo (sudoedit) < 1.8.15
A vulnerability in sudoedit in Sudo before version 1.8.15 allows local users to escalate privileges by exploiting a symlink attack. The issue arises when a file path in /etc/sudoers is defined using multiple wildcards (e.g., "/home///file.txt"). An attacker can create a symlink at a matching path, causing sudoedit to operate on an unintended file, potentially leading to privilege escalation.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation allows a local attacker to gain elevated privileges by manipulating symlinks and leveraging wildcard path definitions in /etc/sudoers. This can result in unauthorized modification of files with root privileges, leading to full system compromise.
If you can’t patch tonight, do this now.
As a temporary mitigation, avoid using wildcards in file paths within /etc/sudoers. Restrict local user access and monitor for suspicious symlink creation in directories referenced by sudoers wildcard entries.
Patch, then assume compromise.
Upgrade Sudo to version 1.8.15 or later, where the vulnerability is patched. Ensure that all systems using Sudo are updated promptly to prevent exploitation.
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
1 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.