CVE-2017-1000368
High · 8.2CVSS
8.2
EPSS
0.6%
Published
Jun 5, 2017
CISA due date
—
Cloudanix analysis
An old flaw in a widely used administrative tool could let certain privileged users view hidden information or run extra commands, and organizations should apply the available updates to prevent issues.
- Exploitation
- Local Privilege
- Attacker needs
- High Privilege
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Input validation flaw in get_process_ttyname allows embedded newlines to trigger information disclosure and arbitrary command execution on affected sudo versions.
Why it matters to the business
Potential for local privilege escalation or unauthorized command execution across systems with 98 downstream dependents; low urgency due to age, stable low EPSS, and absence from KEV or ransomware campaigns.
How an attack unfolds
An attacker with existing high privileges supplies crafted input containing newlines to the vulnerable ttyname function, causing sudo to mishandle the data and disclose sensitive process information or execute attacker-controlled commands.
How to fix it
Upgrade affected packages to fixed versions such as tensorflow (Bitnami) 2.1.4 or sudo versions later than 1.8.20p1; apply vendor patches immediately given the 3411 days since publication.
How to confirm the fix worked
Verify package versions against fixed releases, review sudo configuration for custom tty handling, and test that newline inputs no longer produce unexpected output or execution.
Typical attack path
- Locate systems running sudo 1.8.20p1 or earlier
- Obtain local high-privileged access
- Craft input containing embedded newline characters targeting get_process_ttyname
- Trigger the function to achieve information disclosure or command execution
How to detect it
Review sudo logs and process execution records for unusual ttyname entries or unexpected command invocations involving newline characters; correlate with historical access attempts on affected systems.
What your security team should do
- Prioritize upgrade of tensorflow (Bitnami) to 2.1.4 across all instances
- Audit sudo versions enterprise-wide and enforce updates where older than 1.8.20p2
- Monitor EPSS and KEV status for any future changes despite current low scores
The record
Todd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation (embedded newlines) in the get_process_ttyname() function resulting in information disclosure and command execution.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Alpine:v3.10 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.11 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.12 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.13 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.14 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.15 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.7 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.8 | sudo | 0 | 1.8.20_p2-r0 |
| Alpine:v3.9 | sudo | 0 | 1.8.20_p2-r0 |
| Debian:11 | sudo | 0 | 1.8.20p1-1.1 |
| Debian:12 | sudo | 0 | 1.8.20p1-1.1 |
| Debian:13 | sudo | 0 | 1.8.20p1-1.1 |
| Debian:7 | sudo | 0 | 1.8.5p2-1+nmu3+deb7u4 |
| Red Hat:enterprise_linux:6::client | sudo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::client | sudo-debuginfo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::client | sudo-devel | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo-debuginfo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::computenode | sudo-devel | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo-debuginfo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::server | sudo-devel | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo-debuginfo | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:6::workstation | sudo-devel | 0 | 0:1.8.6p3-29.el6_9 |
| Red Hat:enterprise_linux:7::client | sudo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::client | sudo-debuginfo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::client | sudo-devel | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo-debuginfo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::computenode | sudo-devel | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo-debuginfo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::server | sudo-devel | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo-debuginfo | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:enterprise_linux:7::workstation | sudo-devel | 0 | 0:1.8.6p7-23.el7_3 |
| Red Hat:rhel_els:5 | sudo | 0 | 0:1.7.2p1-31.el5_11 |
| Red Hat:rhel_els:5 | sudo-debuginfo | 0 | 0:1.7.2p1-31.el5_11 |
| SUSE:Linux Enterprise Desktop 12 SP2 | sudo | 0 | 1.8.10p3-10.10.2 |
| SUSE:Linux Enterprise Desktop 12 SP2 | sudo | 0 | 1.8.10p3-10.13.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | sudo | 0 | 1.8.10p3-2.16.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | sudo | 0 | 1.8.10p3-2.19.1 |
| SUSE:Linux Enterprise Server 12 SP2 | sudo | 0 | 1.8.10p3-10.10.2 |
| SUSE:Linux Enterprise Server 12 SP2 | sudo | 0 | 1.8.10p3-10.13.1 |
| SUSE:Linux Enterprise Server 12-LTSS | sudo | 0 | 1.8.10p3-2.16.1 |
| SUSE:Linux Enterprise Server 12-LTSS | sudo | 0 | 1.8.10p3-2.19.1 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | sudo | 0 | 1.8.10p3-10.10.2 |
| SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 | sudo | 0 | 1.8.10p3-10.13.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | sudo | 0 | 1.8.10p3-2.16.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 | sudo | 0 | 1.8.10p3-2.19.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | sudo | 0 | 1.8.10p3-2.16.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | sudo | 0 | 1.8.10p3-2.19.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | sudo | 0 | 1.8.10p3-10.10.2 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | sudo | 0 | 1.8.10p3-10.13.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | sudo | 0 | 1.8.10p3-10.10.2 |
| SUSE:Linux Enterprise Software Development Kit 12 SP2 | sudo | 0 | 1.8.10p3-10.13.1 |
| SUSE:OpenStack Cloud 6 | sudo | 0 | 1.8.10p3-2.16.1 |
| SUSE:OpenStack Cloud 6 | sudo | 0 | 1.8.10p3-2.19.1 |
| Ubuntu:14.04:LTS | sudo | 0 | 1.8.9p5-1ubuntu1.5+esm1 |
| Ubuntu:16.04:LTS | sudo | 0 | 1.8.16-0ubuntu1.6 |
| Ubuntu:18.04:LTS | sudo | 0 | 1.8.20p2-1ubuntu1 |
| Ubuntu:Pro:14.04:LTS | sudo | 0 | 1.8.9p5-1ubuntu1.5+esm1 |
| openSUSE:Tumbleweed | sudo | 0 | 1.9.7p2-1.4 |
Related vulnerabilities
- CVE-2017-1000367 Todd Miller's sudo version 1.8.20 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-113786 pypdf is a free and open-source pure-python PDF library. CWE-20
- CVE-2026-112081 A vulnerability was determined in hankcs HanLP up to 2.1.0-beta.64. CWE-20
- CVE-2026-111869 A vulnerability was identified in makeplane plane up to 1.4.2. CWE-20