{"id":"UBUNTU-CVE-2017-1000368","details":"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.","modified":"2026-02-04T02:44:18.771306Z","published":"2017-06-05T00:00:00Z","related":["USN-3968-1","USN-3968-2"],"upstream":["CVE-2017-1000368"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-1000368"},{"type":"REPORT","url":"http://www.openwall.com/lists/oss-security/2017/06/02/7"},{"type":"REPORT","url":"https://www.sudo.ws/alerts/linux_tty.html"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3968-1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3968-2"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-1000368"}],"affected":[{"package":{"name":"sudo","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/sudo@1.8.9p5-1ubuntu1.5+esm1?arch=source&distro=trusty/esm"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.9p5-1ubuntu1.5+esm1"}]}],"versions":["1.8.6p3-0ubuntu3","1.8.8-2ubuntu1","1.8.8-2ubuntu2","1.8.9p4-1ubuntu1","1.8.9p4-1ubuntu2","1.8.9p5-1ubuntu1","1.8.9p5-1ubuntu1.1","1.8.9p5-1ubuntu1.2","1.8.9p5-1ubuntu1.3","1.8.9p5-1ubuntu1.4"],"ecosystem_specific":{"availability":"Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro","binaries":[{"binary_name":"sudo","binary_version":"1.8.9p5-1ubuntu1.5+esm1"},{"binary_name":"sudo-ldap","binary_version":"1.8.9p5-1ubuntu1.5+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1000368.json"}},{"package":{"name":"sudo","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/sudo@1.8.16-0ubuntu1.6?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.16-0ubuntu1.6"}]}],"versions":["1.8.12-1ubuntu3","1.8.16-0ubuntu1","1.8.16-0ubuntu1.1","1.8.16-0ubuntu1.2","1.8.16-0ubuntu1.3","1.8.16-0ubuntu1.4","1.8.16-0ubuntu1.5"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"sudo","binary_version":"1.8.16-0ubuntu1.6"},{"binary_name":"sudo-ldap","binary_version":"1.8.16-0ubuntu1.6"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1000368.json"}},{"package":{"name":"sudo","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/sudo@1.8.20p2-1ubuntu1?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.8.20p2-1ubuntu1"}]}],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"sudo","binary_version":"1.8.20p2-1ubuntu1"},{"binary_name":"sudo-ldap","binary_version":"1.8.20p2-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-1000368.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}