CVE-2017-1000367
Description
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Sudo 1.8.20 - 'get_process_ttyname()' Local Privilege Escalation
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| arch | fixed | 1.8.20.p1-1 | |
| debian | bookworm | fixed | 1.8.20p1-1 |
| debian | bullseye | fixed | 1.8.20p1-1 |
| debian | forky | fixed | 1.8.20p1-1 |
| debian | sid | fixed | 1.8.20p1-1 |
| debian | trixie | fixed | 1.8.20p1-1 |
Application impact
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| sudo_project | sudo | {"endIncluding":"1.8.20"} | |
References
- https://security.archlinux.org/ASA-201705-25
- http://lists.opensuse.org/opensuse-security-announce/2017-05/msg00077.html
- http://lists.opensuse.org/opensuse-security-announce/2017-05/msg00078.html
- http://lists.opensuse.org/opensuse-security-announce/2017-05/msg00079.html
- http://packetstormsecurity.com/files/142783/Sudo-get_process_ttyname-Race-Condition.html
- http://seclists.org/fulldisclosure/2017/Jun/3
- http://www.debian.org/security/2017/dsa-3867
- http://www.openwall.com/lists/oss-security/2017/05/30/16
- http://www.openwall.com/lists/oss-security/2022/12/22/5
- http://www.openwall.com/lists/oss-security/2022/12/22/6
- http://www.securityfocus.com/bid/98745
- http://www.securitytracker.com/id/1038582
- http://www.ubuntu.com/usn/USN-3304-1
- https://access.redhat.com/errata/RHSA-2017:1381
- https://access.redhat.com/errata/RHSA-2017:1382
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/VXEXC4NNIG2QOZY6N2YUK246KI3D3UQO/
- https://security.gentoo.org/glsa/201705-15
- https://www.exploit-db.com/exploits/42183/
- https://www.sudo.ws/alerts/linux_tty.html
- https://www.suse.com/security/cve/CVE-2017-1000367.html
- https://security-tracker.debian.org/tracker/CVE-2017-1000367
CWEs
CWE-362
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.