CVE-2017-1000367
Medium · 6.4CVSS
6.4
EPSS
8.0%
Published
Jun 5, 2017
CISA due date
—
Cloudanix analysis
A flaw in how the system handles certain command inputs lets attackers who already have some access run commands they should not be allowed to, potentially taking over the whole computer.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- High
- Impact
- Privilege Gain
- Component
- Application
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Input validation flaw with embedded spaces in get_process_ttyname() enables information disclosure and arbitrary command execution in affected sudo versions.
Why it matters to the business
Attackers can gain elevated privileges on systems running vulnerable sudo, leading to full host compromise, data theft, or persistence; prevalence in package ecosystems increases exposure risk across many deployments.
How an attack unfolds
An attacker with local access supplies crafted input containing spaces to trigger the validation flaw in ttyname handling, disclosing process information and executing arbitrary commands with elevated privileges.
How to fix it
Upgrade sudo to a fixed version; for rpm-software-management/rpm use commit 404ef011c300207cdb1e531670384564aae04bdc, for Ubuntu 18.04 use 4.14.1+dfsg1-2, for Ubuntu 20.04 use 4.14.2.1+dfsg1-1build2.
How to confirm the fix worked
Verify sudo version is newer than 1.8.20 and test get_process_ttyname() behavior with space-containing inputs; confirm package manager reports the listed fixed versions installed.
Typical attack path
- Obtain local shell access on target host
- Invoke sudo with maliciously crafted ttyname input containing spaces
- Trigger get_process_ttyname() to bypass validation
- Escalate to root via disclosed information and command execution
How to detect it
Review authentication logs, sudo logs, and process execution history for unusual ttyname entries or space-embedded inputs; look for post-exploitation artifacts such as unexpected root-owned processes or modified binaries.
- sudo logs containing embedded space characters in ttyname fields
- Unexpected execution of commands via sudo with non-standard tty paths
What your security team should do
- Immediately upgrade all affected sudo installations using the exact fixed package versions provided
- Audit sudoers configurations and limit unnecessary sudo access
- Monitor for local privilege escalation attempts and update detection rules
- Prioritize patching on internet-facing or high-value systems given exploit availability
The record
Todd Miller's sudo version 1.8.20 and earlier is vulnerable to an input validation (embedded spaces) in the get_process_ttyname() function resulting in information disclosure and command execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | sudo | 0 | 1.8.20p1-1 |
| Debian:12 | sudo | 0 | 1.8.20p1-1 |
| Debian:13 | sudo | 0 | 1.8.20p1-1 |
| Debian:7 | sudo | 0 | 1.8.5p2-1+nmu3+deb7u3 |
| Debian:8 | sudo | 0 | 1.8.10p3-1+deb8u4 |
| Mageia:5 | sudo | 0 | 1.8.20p2-1.mga5 |
| Red Hat:enterprise_linux:6::client | sudo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::client | sudo-debuginfo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::client | sudo-devel | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo-debuginfo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo-devel | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo-debuginfo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo-devel | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo-debuginfo | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo-devel | 0 | 0:1.8.6p3-28.el6_9 |
| Red Hat:enterprise_linux:7::client | sudo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::client | sudo-debuginfo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::client | sudo-devel | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo-debuginfo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo-devel | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo-debuginfo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo-devel | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo-debuginfo | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo-devel | 0 | 0:1.8.6p7-22.el7_3 |
| Red Hat:rhel_els:5 | sudo | 0 | 0:1.7.2p1-30.el5_11 |
| Red Hat:rhel_els:5 | sudo-debuginfo | 0 | 0:1.7.2p1-30.el5_11 |
| SUSE:Linux Enterprise Desktop 12 SP1 | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Desktop 12 SP2 | sudo | 0 | 1.8.10p3-10.5.1 |
| SUSE:Linux Enterprise Server 12 SP1 | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Server 12 SP2 | sudo | 0 | 1.8.10p3-10.5.1 |
| SUSE:Linux Enterprise Server 12-LTSS | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | sudo | 0 | 1.8.10p3-10.5.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | sudo | 0 | 1.8.10p3-10.5.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP1 | sudo | 0 | 1.8.10p3-2.11.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | sudo | 0 | 1.8.10p3-10.5.1 |
| Ubuntu:14.04:LTS | sudo | 0 | 1.8.9p5-1ubuntu1.4 |
| Ubuntu:16.04:LTS | sudo | 0 | 1.8.16-0ubuntu1.4 |
| openSUSE:Tumbleweed | sudo | 0 | 1.9.7p2-1.4 |
Related vulnerabilities
- CVE-2017-1000368 Todd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation… Also affects sudo
- CVE-2014-9680 sudo before 1.8.12 does not ensure that the TZ environment variable is associated with a… Also affects sudo
- CVE-2016-7032 sudo_noexec.so in Sudo before 1.8.15 on Linux might allow local users to bypass intended… Also affects sudo
- CVE-2025-32463 Sudo before 1.9.17p1 allows local users to obtain root access because /etc/nsswitch.conf… Also affects sudo
- CVE-2026-35535 In Sudo through 1.9.17p2 before 3e474c2, a failure of a setuid, setgid, or setgroups… Also affects sudo
- CVE-2026-114641 Traefik 2.11.x before 2.11.58 and 3.x before 3.7.14 contains a race condition in NTLM and… CWE-362
- CVE-2026-109279 ImageMagick before 6.9.13-57 and 7.x before 7.1.2-32 lacks proper synchronization when… CWE-362
- CVE-2026-97032 HTTP/2 servers could end up crashing due to inadvertently modifying its HPACK encoder… CWE-362