CVE-2017-1000368 Command injection in n/a

High 8.2 Published Updated

Attackers can exploit input validation flaws in sudo to execute arbitrary commands and disclose sensitive information.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2017-1000368?

CVE-2017-1000368 is a high-severity command injection vulnerability in n/a, published on 5 Jun 2017. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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.

Weakness: CWE-20

Which versions are affected by CVE-2017-1000368?

It affects 1 product.

Linux distribution packages (40)
sudo Red Hat:enterprise_linux:6::clientAll versions0:1.8.6p3-29.el6_9
sudo-debuginfo Red Hat:enterprise_linux:6::clientAll versions0:1.8.6p3-29.el6_9
sudo-devel Red Hat:enterprise_linux:6::clientAll versions0:1.8.6p3-29.el6_9
sudo Red Hat:enterprise_linux:6::computenodeAll versions0:1.8.6p3-29.el6_9
sudo-debuginfo Red Hat:enterprise_linux:6::computenodeAll versions0:1.8.6p3-29.el6_9
sudo-devel Red Hat:enterprise_linux:6::computenodeAll versions0:1.8.6p3-29.el6_9
sudo Red Hat:enterprise_linux:6::serverAll versions0:1.8.6p3-29.el6_9
sudo-debuginfo Red Hat:enterprise_linux:6::serverAll versions0:1.8.6p3-29.el6_9
sudo-devel Red Hat:enterprise_linux:6::serverAll versions0:1.8.6p3-29.el6_9
sudo Red Hat:enterprise_linux:6::workstationAll versions0:1.8.6p3-29.el6_9
sudo-debuginfo Red Hat:enterprise_linux:6::workstationAll versions0:1.8.6p3-29.el6_9
sudo-devel Red Hat:enterprise_linux:6::workstationAll versions0:1.8.6p3-29.el6_9
sudo Red Hat:enterprise_linux:7::clientAll versions0:1.8.6p7-23.el7_3
sudo-debuginfo Red Hat:enterprise_linux:7::clientAll versions0:1.8.6p7-23.el7_3
sudo-devel Red Hat:enterprise_linux:7::clientAll versions0:1.8.6p7-23.el7_3
sudo Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.6p7-23.el7_3
sudo-debuginfo Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.6p7-23.el7_3
sudo-devel Red Hat:enterprise_linux:7::computenodeAll versions0:1.8.6p7-23.el7_3
sudo Red Hat:enterprise_linux:7::serverAll versions0:1.8.6p7-23.el7_3
sudo-debuginfo Red Hat:enterprise_linux:7::serverAll versions0:1.8.6p7-23.el7_3
sudo-devel Red Hat:enterprise_linux:7::serverAll versions0:1.8.6p7-23.el7_3
sudo Red Hat:enterprise_linux:7::workstationAll versions0:1.8.6p7-23.el7_3
sudo-debuginfo Red Hat:enterprise_linux:7::workstationAll versions0:1.8.6p7-23.el7_3
sudo-devel Red Hat:enterprise_linux:7::workstationAll versions0:1.8.6p7-23.el7_3
sudo Red Hat:rhel_els:5All versions0:1.7.2p1-31.el5_11
sudo-debuginfo Red Hat:rhel_els:5All versions0:1.7.2p1-31.el5_11
sudo SUSE:Linux Enterprise Desktop 12 SP2All versions1.8.10p3-10.10.2
sudo SUSE:Linux Enterprise Desktop 12 SP2All versions1.8.10p3-10.13.1
sudo SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions1.8.10p3-2.16.1
sudo SUSE:Linux Enterprise Server 12 SP1-LTSSAll versions1.8.10p3-2.19.1
sudo SUSE:Linux Enterprise Server 12 SP2All versions1.8.10p3-10.10.2
sudo SUSE:Linux Enterprise Server 12 SP2All versions1.8.10p3-10.13.1
sudo SUSE:Linux Enterprise Server 12-LTSSAll versions1.8.10p3-2.16.1
sudo SUSE:Linux Enterprise Server 12-LTSSAll versions1.8.10p3-2.19.1
sudo SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions1.8.10p3-10.10.2
sudo SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions1.8.10p3-10.13.1
sudo SUSE:Linux Enterprise Server for SAP Applications 12All versions1.8.10p3-2.16.1
sudo SUSE:Linux Enterprise Server for SAP Applications 12All versions1.8.10p3-2.19.1
sudo SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions1.8.10p3-2.16.1
sudo SUSE:Linux Enterprise Server for SAP Applications 12 SP1All versions1.8.10p3-2.19.1

Products include Sudo Project Sudo.

How do I fix CVE-2017-1000368?

Apply the vendor's patch.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2017-1000368 being exploited?

There is no known exploitation of CVE-2017-1000368 in the wild and no public exploit code.

Sources

Also known as ALPINE-CVE-2017-1000368, DEBIAN-CVE-2017-1000368, DLA-1011-1, GHSA-v7hw-ff58-vxfm, RHSA-2017:1574, SUSE-SU-2017:1626-1 and 5 more.

Is CVE-2017-1000368 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free