Description
sudoedit in Sudo before 1.8.15 allows local users to gain privileges via a symlink attack on a file whose full path is defined using multiple wildcards in /etc/sudoers, as demonstrated by "/home/*/*/file.txt."
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | sudo | 1.8.15-1.1 | — |
| Debian 13 | sudo | 1.8.15-1.1 | — |
| Debian 12 | sudo | 1.8.15-1.1 | — |
| Debian 8 | sudo | 1.8.10p3-1+deb8u3 | DSA-3440-1 |
| Debian 7 | sudo | 1.8.5p2-1+nmu3+deb7u1 | DSA-3440-1 |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | sudo | 1.7.4p4-2.squeeze.6 | DLA-382-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | sudo | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- Sudo 1.8.14 (RHEL 5/6/7 / Ubuntu) - 'Sudoedit' Unauthorized Privilege Escalation EDB-37710 · local · Jul 28, 2015 · verified
GitHub 2 repositories
-
t0kx/privesc-CVE-2015-5602 ★ 15 · Dec 16, 2017
Sudo <= 1.8.14 Local Privilege Escalation and vulnerable container
-
cved-sources/cve-2015-5602 ★ 0 · Jan 6, 2019
cve-2015-5602
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 2
- DLA-382-1 sudo - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3440-1 sudo - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- http://bugzilla.sudo.ws/show_bug.cgi?id=707
- http://www.sudo.ws/stable.html#1.8.15
- 1034392 vdb-entry
- DSA-3440 vendor-advisory
- GLSA-201606-13 vendor-advisory
- http://www.oracle.com/technetwork/topics/security/bulletinapr2016-2952098.html
- FEDORA-2015-386863df8a vendor-advisory
- 37710 exploit
- FEDORA-2015-6a267387c0 vendor-advisory