CVE-2015-8239
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write...
CVE-2015-8239 is a high vulnerability (CVSS 7.0) in Sudo Project Sudo, published July 26, 2016. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 0.54%, the 45th percentile. Fixed in sudo 1.8.17p1-1.
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- High
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.0
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
CVE-2015-8239- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 6.9 Medium
AV:L/AC:M/Au:N/C:C/I:C/A:C - Weakness
- CWE-362
- Updated
- 2026-11-02
CVE List No score
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
CVE-2015-8239- Updated
- 2026-11-02
EUVDEUVD-2015-8127 No score
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
EUVD-2015-8127- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-w2j3-vrwq-vgh5
7.0
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write...
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
GHSA-w2j3-vrwq-vgh5- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-362
- Updated
- 2026-11-02
OSV
7.0
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
CVE-2015-8239- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2015-8239
7.0
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
DEBIAN-CVE-2015-8239- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2015-8239
7.0
The SHA-2 digest support in the sudoers plugin in sudo after 1.8.7 allows local users with write permissions to parts of the called command to replace them before it is executed.
- Record
UBUNTU-CVE-2015-8239- CVSS 3.0
- 7.0 High
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2016-0261 No score
Updated sudo packages fix security vulnerability
A vulnerability in functionality for adding support of SHA-2 digests along with the command was found. The sudoers plugin performs this digest verification while matching rules, and later independently calls execve() to execute the binary. This results in a race condition if the digest functionality is used as suggested (in fact, the rules are matched before the user is prompted for a password, so there is not negligible time frame to replace the binary from underneath sudo) (CVE-2015-8239).
- Record
MGASA-2016-0261- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sudoDebian:12 |
before 1.8.17p1-1 | 1.8.17p1-1 |
sudoDebian:13 |
before 1.8.17p1-1 | 1.8.17p1-1 |
sudoDebian:14 |
before 1.8.17p1-1 | 1.8.17p1-1 |
sudoMageia:5 |
before 1.8.17p1-1.mga5 | 1.8.17p1-1.mga5 |
sudoUbuntu:Pro:14.04:LTS |
All versions, plus listed versions 1.8.6p3-0ubuntu31.8.8-2ubuntu11.8.8-2ubuntu21.8.9p4-1ubuntu11.8.9p4-1ubuntu2 Show 12 moreShow less1.8.9p5-1ubuntu11.8.9p5-1ubuntu1.11.8.9p5-1ubuntu1.21.8.9p5-1ubuntu1.31.8.9p5-1ubuntu1.41.8.9p5-1ubuntu1.5+esm11.8.9p5-1ubuntu1.5+esm21.8.9p5-1ubuntu1.5+esm31.8.9p5-1ubuntu1.5+esm51.8.9p5-1ubuntu1.5+esm61.8.9p5-1ubuntu1.5+esm71.8.9p5-1ubuntu1.5+esm8 |
None known |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | justinsteven/sudo_digest_toctou_poc_CVE-2015-8239 | 2021-01-15 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-03 | aliases | EUVD |
| 2026-11-02 | created | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
References
sudo.ws/repos/sudo/rev/397722cdd7ec
sudo.ws/repos/sudo/rev/0cd3cc8fa195
bugzilla.redhat.com/show_bug.cgi?id=1283635
openwall.com/lists/oss-security/2015/11/18/22
sudo.ws/repos/sudo/rev/24a3d9215c64
nvd.nist.gov/vuln/detail/CVE-2015-8239
Show 9 moreShow less
github.com/advisories/GHSA-w2j3-vrwq-vgh5
security-tracker.debian.org/tracker/CVE-2015-8239
advisories.mageia.org/MGASA-2016-0261.html
bugs.mageia.org/show_bug.cgi?id=18989
lists.fedoraproject.org/archives/list/[email protected]/thread/BLFXPDF67QZECU6EMPWYU4FGK6PNZ3M4
ubuntu.com/security/CVE-2015-8239
openwall.com/lists/oss-security/2015/11/10/2
sudo.ws/stable.html
cve.org/CVERecord?id=CVE-2015-8239