{"id":"CVE-2018-1122","details":"procps-ng before version 3.3.15 is vulnerable to a local privilege escalation in top. If a user runs top with HOME unset in an attacker-controlled directory, the attacker could achieve privilege escalation by exploiting one of several vulnerabilities in the config_file() function.","modified":"2026-05-15T12:03:10.092571768Z","published":"2018-05-23T14:29:00.217Z","related":["SUSE-SU-2018:1836-1","SUSE-SU-2018:2042-1","SUSE-SU-2018:2451-2","SUSE-SU-2019:0450-1","SUSE-SU-2019:0450-2","SUSE-SU-2019:2730-1","openSUSE-SU-2019:2376-1","openSUSE-SU-2019:2379-1","openSUSE-SU-2024:11195-1","openSUSE-SU-2024:12565-1"],"database_specific":{"unresolved_ranges":[{"source":"CPE_FIELD","cpes":["cpe:2.3:o:canonical:ubuntu_linux:12.04:*:*:*:esm:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:14.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:16.04:*:*:*:lts:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:17.10:*:*:*:*:*:*:*","cpe:2.3:o:canonical:ubuntu_linux:18.04:*:*:*:lts:*:*:*"],"extracted_events":[{"last_affected":"12.04"},{"last_affected":"14.04"},{"last_affected":"16.04"},{"last_affected":"17.10"},{"last_affected":"18.04"}],"vendor_product":"canonical:ubuntu_linux"},{"source":"CPE_FIELD","cpes":["cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*","cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"],"extracted_events":[{"last_affected":"7.0"},{"last_affected":"8.0"},{"last_affected":"9.0"}],"vendor_product":"debian:debian_linux"}]},"references":[{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00058.html"},{"type":"WEB","url":"http://lists.opensuse.org/opensuse-security-announce/2019-10/msg00059.html"},{"type":"ADVISORY","url":"http://seclists.org/oss-sec/2018/q2/122"},{"type":"ADVISORY","url":"http://www.securityfocus.com/bid/104214"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2019:2189"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2020:0595"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2018/05/msg00021.html"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/201805-14"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3658-1/"},{"type":"ADVISORY","url":"https://usn.ubuntu.com/3658-3/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2018/dsa-4208"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-1122"},{"type":"EVIDENCE","url":"https://www.exploit-db.com/exploits/44806/"},{"type":"EVIDENCE","url":"https://www.qualys.com/2018/05/17/procps-ng-audit-report-advisory.txt"}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}