Cloudanix VulnDB

CVE-2017-1000367

Medium · 6.4

CVSS

6.4

EPSS

8.0%

Published

Jun 5, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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.

Exploit Available
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

  1. Obtain local shell access on target host
  2. Invoke sudo with maliciously crafted ttyname input containing spaces
  3. Trigger get_process_ttyname() to bypass validation
  4. 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