{"id":"CVE-2018-20839","details":"systemd 242 changes the VT1 mode upon a logout, which allows attackers to read cleartext passwords in certain circumstances, such as watching a shutdown, or using Ctrl-Alt-F1 and Ctrl-Alt-F2. This occurs because the KDGKBMODE (aka current keyboard mode) check is mishandled.","modified":"2026-08-07T14:49:36.277101Z","published":"2019-05-17T04:29:00.933Z","references":[{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/108389"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20190530-0002/"},{"type":"REPORT","url":"https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1803993"},{"type":"FIX","url":"https://github.com/systemd/systemd/commit/9725f1a10f80f5e0ae7d9b60547458622aeb322f"},{"type":"FIX","url":"https://github.com/systemd/systemd/pull/12378"},{"type":"ARTICLE","url":"https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd","events":[{"introduced":"1e5d2d656420d0e755dbcf72aeba3c3aba54e956"},{"last_affected":"1e5d2d656420d0e755dbcf72aeba3c3aba54e956"},{"fixed":"9725f1a10f80f5e0ae7d9b60547458622aeb322f"}],"database_specific":{"extracted_events":[{"introduced":"242-NA"},{"last_affected":"242-NA"}],"source":["CPE_STRING","REFERENCES"],"cpe":"cpe:2.3:a:systemd_project:systemd:242:-:*:*:*:*:*:*"}}],"versions":["242-NA","v242"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20839.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/systemd/systemd-stable","events":[{"introduced":"1e5d2d656420d0e755dbcf72aeba3c3aba54e956"},{"last_affected":"1e5d2d656420d0e755dbcf72aeba3c3aba54e956"}],"database_specific":{"cpe":"cpe:2.3:a:systemd_project:systemd:242:-:*:*:*:*:*:*","extracted_events":[{"introduced":"242-NA"},{"last_affected":"242-NA"}],"source":"CPE_STRING"}}],"versions":["242-NA","v242"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-20839.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N"}]}