CVE-2017-1000368
Todd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation (embedded...
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.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- High
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
8.2
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.
- Record
CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - CVSS 2.0
- 7.2 High
AV:L/AC:L/Au:N/C:C/I:C/A:C - Weakness
- CWE-20
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2017-1000368- Updated
- 2026-11-02
EUVDEUVD-2017-1527 No score
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.
- Record
EUVD-2017-1527- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-v7hw-ff58-vxfm
8.2
Todd Miller's sudo version 1.8.20p1 and earlier is vulnerable to an input validation (embedded...
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.
- Record
GHSA-v7hw-ff58-vxfm- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-20
- Updated
- 2026-11-02
OSVALPINE-CVE-2017-1000368
8.2
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.
- Record
ALPINE-CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBELL-CVE-2017-1000368
8.2
CVE-2017-1000368 does not affect BellSoft software
- Record
BELL-CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
Show 11 moreShow less
OSV
8.2
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.
- Record
CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2017-1000368
8.2
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.
- Record
DEBIAN-CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2017:1574
7.3
Red Hat Security Advisory: sudo security update
- Record
RHSA-2017:1574- CVSS 3.0
- 7.3 High
CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2017-1000368
8.2
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.
- Record
UBUNTU-CVE-2017-1000368- CVSS 3.0
- 8.2 High
CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11413-1 No score
sudo-1.9.7p2-1.4 on GA media
These are all security issues fixed in the sudo-1.9.7p2-1.4 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11413-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:1626-1 No score
Security update for sudo
This update for sudo fixes the following security issue:
- CVE-2017-1000368: A follow-up fix to CVE-2017-1000367, the Linux process name could also contain a newline, which could be used to trick sudo to read/write to an arbitrary open terminal. (bsc#1042146)
Also the following non security bug was fixed:
- Link the 'system_group' plugin with sudo_util library to resolve the missing sudo_dso_findsym symbol (bsc#1034560)
- Record
SUSE-SU-2017:1626-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:1627-1 No score
Security update for sudo
This update for sudo fixes the following issues:
- CVE-2017-1000368: A follow-up fix to CVE-2017-1000367, the Linux process name could also contain a newline, which could be used to trick sudo to read/write to an arbitrary open terminal. (bsc#1042146)
Also the following non security bug was fixed:
- Link the 'system_group' plugin with sudo_util library to resolve the missing sudo_dso_findsym symbol (bsc#1034560)
- Record
SUSE-SU-2017:1627-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:1771-1 No score
Security update for sudo
This update for sudo fixes the following issues:
- A regression in the fix for the CVE-2017-1000368 that broke sudo with the 'requiretty' flag (bsc#1045986)
- Record
SUSE-SU-2017:1771-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:1778-1 No score
Security update for sudo
This update for sudo fixes the following issues:
- A regression in the fix for the CVE-2017-1000368 that broke sudo with the 'requiretty' flag (bsc#1045986)
- Record
SUSE-SU-2017:1778-1- Updated
- 2026-11-02
OSVUSN-3968-1 No score
sudo vulnerabilities
Florian Weimer discovered that Sudo incorrectly handled the noexec restriction when used with certain applications. A local attacker could possibly use this issue to bypass configured restrictions and execute arbitrary commands. (CVE-2016-7076)
It was discovered that Sudo did not properly parse the contents of /proc/[pid]/stat when attempting to determine its controlling tty. A local attacker in some configurations could possibly use this to overwrite any file on the filesystem, bypassing intended permissions. (CVE-2017-1000368)
- Record
USN-3968-1- Updated
- 2026-11-02
OSVUSN-3968-2 No score
sudo vulnerability
USN-3968-1 fixed a vulnerability in Sudo. This update provides the corresponding update for Ubuntu 14.04 ESM.
Original advisory details:
It was discovered that Sudo did not properly parse the contents of /proc/[pid]/stat when attempting to determine its controlling tty. A local attacker in some configurations could possibly use this to overwrite any file on the filesystem, bypassing intended permissions. (CVE-2017-1000368)
- Record
USN-3968-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
sudoAlpine:v3.10 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.11 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.12 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.13 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.14 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.15 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.7 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.8 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoAlpine:v3.9 |
before 1.8.20_p2-r0 | 1.8.20_p2-r0 |
sudoDebian:12 |
before 1.8.20p1-1.1 | 1.8.20p1-1.1 |
Show 54 moreShow less
| Package | Affected | Fixed |
|---|---|---|
sudoDebian:13 |
before 1.8.20p1-1.1 | 1.8.20p1-1.1 |
sudoDebian:14 |
before 1.8.20p1-1.1 | 1.8.20p1-1.1 |
sudoDebian:7 |
before 1.8.5p2-1+nmu3+deb7u4, plus listed versions 1.8.5p2-1+nmu11.8.5p2-1+nmu21.8.5p2-1+nmu31.8.5p2-1+nmu3+deb7u11.8.5p2-1+nmu3+deb7u21.8.5p2-1+nmu3+deb7u3 |
1.8.5p2-1+nmu3+deb7u4 |
sudoRed Hat:rhel_els:5 |
before 0:1.7.2p1-31.el5_11 | 0:1.7.2p1-31.el5_11 |
sudo-debuginfoRed Hat:rhel_els:5 |
before 0:1.7.2p1-31.el5_11 | 0:1.7.2p1-31.el5_11 |
sudoRed Hat:enterprise_linux:6::client |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-debuginfoRed Hat:enterprise_linux:6::client |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-develRed Hat:enterprise_linux:6::client |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudoRed Hat:enterprise_linux:6::computenode |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-debuginfoRed Hat:enterprise_linux:6::computenode |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-develRed Hat:enterprise_linux:6::computenode |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudoRed Hat:enterprise_linux:6::server |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-debuginfoRed Hat:enterprise_linux:6::server |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-develRed Hat:enterprise_linux:6::server |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudoRed Hat:enterprise_linux:6::workstation |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-debuginfoRed Hat:enterprise_linux:6::workstation |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudo-develRed Hat:enterprise_linux:6::workstation |
before 0:1.8.6p3-29.el6_9 | 0:1.8.6p3-29.el6_9 |
sudoRed Hat:enterprise_linux:7::client |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-debuginfoRed Hat:enterprise_linux:7::client |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-develRed Hat:enterprise_linux:7::client |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudoRed Hat:enterprise_linux:7::computenode |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-debuginfoRed Hat:enterprise_linux:7::computenode |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-develRed Hat:enterprise_linux:7::computenode |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudoRed Hat:enterprise_linux:7::server |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-debuginfoRed Hat:enterprise_linux:7::server |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-develRed Hat:enterprise_linux:7::server |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudoRed Hat:enterprise_linux:7::workstation |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-debuginfoRed Hat:enterprise_linux:7::workstation |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudo-develRed Hat:enterprise_linux:7::workstation |
before 0:1.8.6p7-23.el7_3 | 0:1.8.6p7-23.el7_3 |
sudoSUSE:Linux Enterprise Desktop 12 SP2 |
before 1.8.10p3-10.10.2 | 1.8.10p3-10.10.2 |
sudoSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 1.8.10p3-10.10.2 | 1.8.10p3-10.10.2 |
sudoSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 1.8.10p3-10.10.2 | 1.8.10p3-10.10.2 |
sudoSUSE:Linux Enterprise Server 12 SP2 |
before 1.8.10p3-10.10.2 | 1.8.10p3-10.10.2 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 1.8.10p3-10.10.2 | 1.8.10p3-10.10.2 |
sudoSUSE:OpenStack Cloud 6 |
before 1.8.10p3-2.16.1 | 1.8.10p3-2.16.1 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 |
before 1.8.10p3-2.16.1 | 1.8.10p3-2.16.1 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 1.8.10p3-2.16.1 | 1.8.10p3-2.16.1 |
sudoSUSE:Linux Enterprise Server 12-LTSS |
before 1.8.10p3-2.16.1 | 1.8.10p3-2.16.1 |
sudoSUSE:Linux Enterprise Server 12 SP1-LTSS |
before 1.8.10p3-2.16.1 | 1.8.10p3-2.16.1 |
sudoSUSE:Linux Enterprise Desktop 12 SP2 |
before 1.8.10p3-10.13.1 | 1.8.10p3-10.13.1 |
sudoSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 1.8.10p3-10.13.1 | 1.8.10p3-10.13.1 |
sudoSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 1.8.10p3-10.13.1 | 1.8.10p3-10.13.1 |
sudoSUSE:Linux Enterprise Server 12 SP2 |
before 1.8.10p3-10.13.1 | 1.8.10p3-10.13.1 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 1.8.10p3-10.13.1 | 1.8.10p3-10.13.1 |
sudoSUSE:OpenStack Cloud 6 |
before 1.8.10p3-2.19.1 | 1.8.10p3-2.19.1 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 |
before 1.8.10p3-2.19.1 | 1.8.10p3-2.19.1 |
sudoSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 1.8.10p3-2.19.1 | 1.8.10p3-2.19.1 |
sudoSUSE:Linux Enterprise Server 12-LTSS |
before 1.8.10p3-2.19.1 | 1.8.10p3-2.19.1 |
sudoSUSE:Linux Enterprise Server 12 SP1-LTSS |
before 1.8.10p3-2.19.1 | 1.8.10p3-2.19.1 |
sudoUbuntu:Pro:14.04:LTS |
before 1.8.9p5-1ubuntu1.5+esm1, plus listed versions 1.8.6p3-0ubuntu31.8.8-2ubuntu11.8.8-2ubuntu21.8.9p4-1ubuntu11.8.9p4-1ubuntu2 Show 5 moreShow less1.8.9p5-1ubuntu11.8.9p5-1ubuntu1.11.8.9p5-1ubuntu1.21.8.9p5-1ubuntu1.31.8.9p5-1ubuntu1.4 |
1.8.9p5-1ubuntu1.5+esm1 |
sudoUbuntu:16.04:LTS |
before 1.8.16-0ubuntu1.6, plus listed versions 1.8.12-1ubuntu31.8.16-0ubuntu11.8.16-0ubuntu1.11.8.16-0ubuntu1.21.8.16-0ubuntu1.31.8.16-0ubuntu1.41.8.16-0ubuntu1.5 |
1.8.16-0ubuntu1.6 |
sudoUbuntu:18.04:LTS |
before 1.8.20p2-1ubuntu1 | 1.8.20p2-1ubuntu1 |
sudoUbuntu:16.04:LTS From an advisory covering 2 CVEs |
before 1.8.16-0ubuntu1.6, plus listed versions 1.8.12-1ubuntu31.8.16-0ubuntu11.8.16-0ubuntu1.11.8.16-0ubuntu1.21.8.16-0ubuntu1.31.8.16-0ubuntu1.41.8.16-0ubuntu1.5 |
1.8.16-0ubuntu1.6 |
sudoopenSUSE:Tumbleweed From an advisory covering 11 CVEs |
before 1.9.7p2-1.4 | 1.9.7p2-1.4 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2017-1000368 is a high vulnerability (CVSS 8.2) in Sudo Project Sudo, published June 5, 2017. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.57%, the 47th percentile. Fixed in sudo 1.8.20_p2-r0.
References
sudo.ws/alerts/linux_tty.html
security.gentoo.org/glsa/201710-04
securityfocus.com/bid/98838
access.redhat.com/errata/RHSA-2017:1574
kc.mcafee.com/corporate/index?page=content&id=SB10205
usn.ubuntu.com/3968-1
Show 36 moreShow less
usn.ubuntu.com/3968-2
nvd.nist.gov/vuln/detail/CVE-2017-1000368
github.com/advisories/GHSA-v7hw-ff58-vxfm
security.alpinelinux.org/vuln/CVE-2017-1000368
docs.bell-sw.com/security/cves/CVE-2017-1000368
security-tracker.debian.org/tracker/CVE-2017-1000368
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=1459152
security.access.redhat.com/data/csaf/v2/advisories/2017/rhsa-2017_1574.json
access.redhat.com/security/cve/CVE-2017-1000368
cve.org/CVERecord?id=CVE-2017-1000368
access.redhat.com/security/cve/CVE-2017-1000367
access.redhat.com/security/vulnerabilities/3059071
suse.com/support/update/announcement/2017/suse-su-20171626-1
bugzilla.suse.com/1034560
bugzilla.suse.com/1042146
suse.com/security/cve/CVE-2017-1000368
suse.com/support/update/announcement/2017/suse-su-20171627-1
suse.com/support/update/announcement/2017/suse-su-20171771-1
bugzilla.suse.com/1045986
suse.com/support/update/announcement/2017/suse-su-20171778-1
ubuntu.com/security/CVE-2017-1000368
openwall.com/lists/oss-security/2017/06/02/7
ubuntu.com/security/notices/USN-3968-1
ubuntu.com/security/notices/USN-3968-2
ubuntu.com/security/CVE-2016-7076
suse.com/security/cve/CVE-2005-4158
suse.com/security/cve/CVE-2014-9680
suse.com/security/cve/CVE-2016-7032
suse.com/security/cve/CVE-2016-7076
suse.com/security/cve/CVE-2017-1000367
suse.com/security/cve/CVE-2019-14287
suse.com/security/cve/CVE-2019-18634
suse.com/security/cve/CVE-2021-23239
suse.com/security/cve/CVE-2021-23240
suse.com/security/cve/CVE-2021-3156