CVE-2018-1122
procps: Local privilege escalation in top
Severity
ModerateRed Hat Product Security
CVSS 3.0
Review impact separately from score.
Published · May 18, 2018
Updated · June 30, 2026
Description
If the HOME environment variable is unset or empty, top will read its configuration file from the current working directory without any security check. 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.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.0 · 6.7CVSS:3.0/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H
CWE-829 · Inclusion of Functionality from Untrusted Control Sphere