CVE-2019-18634
In Sudo before 1.8.26, if pwfeedback is enabled in /etc/sudoers, users can trigger a stack-based buffer overflow in the privileged sudo process. (pwfeedback is a default setting in Linux Mint and elementary OS; however, it is NOT the default for upstream and many other packages, and would exist only if enabled by an administrator.) The attacker needs to deliver a long string to the stdin of getln() in tgetpass.c.
What to do
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 18.04 | sudo | Fixed | 1.8.21p2-3ubuntu1.2 | UBUNTU-CVE-2019-18634 |
| Ubuntu 16.04 | sudo | Fixed | 1.8.16-0ubuntu1.9 | UBUNTU-CVE-2019-18634 |
| Ubuntu 14.04 | sudo | Fix pending | 1.8.9p5-1ubuntu1.5+esm3 (Ubuntu Pro) | UBUNTU-CVE-2019-18634 |
| Debian 14 | sudo | Fixed | 1.8.31-1 | DEBIAN-CVE-2019-18634 |
| Debian 13 | sudo | Fixed | 1.8.31-1 | DEBIAN-CVE-2019-18634 |
| Debian 12 | sudo | Fixed | 1.8.31-1 | DEBIAN-CVE-2019-18634 |
| Red Hat Enterprise Linux 8 | sudo | Fixed | 0:1.8.25p1-8.el8_1.1 | RHSA-2020:0487 |
| Red Hat Enterprise Linux 7 | sudo | Fixed | 0:1.8.23-4.el7_7.2 | RHSA-2020:0540 |
| Red Hat Enterprise Linux 7 | sudo-devel | Fixed | 0:1.8.23-4.el7_7.2 | RHSA-2020:0540 |
| Red Hat Enterprise Linux 6 | sudo | Fixed | 0:1.8.6p3-29.el6_10.3 | RHSA-2020:0726 |
| Red Hat Enterprise Linux 6 | sudo-devel | Fixed | 0:1.8.6p3-29.el6_10.3 | RHSA-2020:0726 |
| Red Hat Enterprise Linux 5 | sudo | Not affected | ||
| Alpine Linux 3.24 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.23 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.22 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.21 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.20 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.19 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.18 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.17 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.16 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.15 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.14 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.13 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.12 | sudo | Fixed | 1.8.31-r0 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.11 | sudo | Fixed | 1.8.29-r2 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.10 | sudo | Fixed | 1.8.27-r2 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.9 | sudo | Fixed | 1.8.25_p1-r3 | ALPINE-CVE-2019-18634 |
| Alpine Linux 3.8 | sudo | Fixed | 1.8.23-r4 | ALPINE-CVE-2019-18634 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.debian.org/security/2020/dsa-4614 (vendor-advisory)
- https://usn.ubuntu.com/4263-1/ (vendor-advisory)
- https://usn.ubuntu.com/4263-2/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0487 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0509 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2020:0540 (vendor-advisory)
References
- https://support.apple.com/kb/HT210919
- https://seclists.org/bugtraq/2020/Jan/44
- https://www.sudo.ws/security.html
- https://www.sudo.ws/alerts/pwfeedback.html
- http://www.openwall.com/lists/oss-security/2020/01/30/6
- http://www.openwall.com/lists/oss-security/2020/01/31/1
- http://seclists.org/fulldisclosure/2020/Jan/40
- https://www.debian.org/security/2020/dsa-4614
- https://lists.debian.org/debian-lts-announce/2020/02/msg00002.html
- https://seclists.org/bugtraq/2020/Feb/3
- https://seclists.org/bugtraq/2020/Feb/2
- http://packetstormsecurity.com/files/156174/Slackware-Security-Advisory-sudo-Updates.html
- http://packetstormsecurity.com/files/156189/Sudo-1.8.25p-Buffer-Overflow.html
- http://www.openwall.com/lists/oss-security/2020/02/05/2
- http://www.openwall.com/lists/oss-security/2020/02/05/5
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.