7.3
CWE
829
Advisory Published
CVE Published
Updated

CVE-2018-1122

First published: Mon May 07 2018(Updated: )

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 acieve privilege escalation by exploiting one of several vulnerabilities in the config_file() function.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Procps-ng Project Procps-ng<3.3.15
Canonical Ubuntu Linux=12.04
Canonical Ubuntu Linux=14.04
Canonical Ubuntu Linux=16.04
Canonical Ubuntu Linux=17.10
Canonical Ubuntu Linux=18.04
Debian Debian Linux=7.0
Debian Debian Linux=8.0
Debian Debian Linux=9.0
redhat/procps-ng<3.3.15
3.3.15
debian/procps
2:3.3.17-5
2:4.0.2-3
2:4.0.4-6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Reference Links

Frequently Asked Questions

  • What is CVE-2018-1122?

    CVE-2018-1122 is a vulnerability in procps-ng that allows for a local privilege escalation in top.

  • How does the CVE-2018-1122 vulnerability work?

    The vulnerability occurs when top is run with HOME unset in an attacker-controlled directory, allowing the attacker to exploit vulnerabilities in the config_file() function and gain escalated privileges.

  • What is the severity of CVE-2018-1122?

    CVE-2018-1122 has a severity rating of high (7 out of 10).

  • Which software versions are affected by CVE-2018-1122?

    Versions of procps-ng before 3.3.15 and certain versions of procps on Red Hat, Debian, and Ubuntu are affected by CVE-2018-1122.

  • How can I fix CVE-2018-1122?

    To fix CVE-2018-1122, upgrade to procps-ng version 3.3.15 or higher, or apply the appropriate remedy provided by your distribution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203