CVE-2018-7169: Medium severity Shadow Project Shadow vulnerability

Published Feb 15, 2018
·
Updated

An issue was discovered in shadow 4.5. newgidmap (in shadow-utils) is setuid and allows an unprivileged user to be placed in a user namespace where setgroups(2) is permitted. This allows an attacker to remove themselves from a supplementary group, which may allow access to certain filesystem paths if the administrator has used "group blacklisting" (e.g., chmod g-rwx) to restrict access to paths. This flaw effectively reverts a security feature in the kernel (in particular, the /proc/self/setgroups knob) to prevent this sort of privilege escalation.

Affected Software

1 affected component
Shadow Project Shadow=4.5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade shadow to a version that resolves this vulnerability.

    Fixed in 4.5
  2. Configuration

    Prevent unprivileged setuid use of newgidmap in shadow-utils by removing/avoiding setuid permissions on newgidmap, since it is described as setuid and enabling an unprivileged user to place themselves in a user namespace where setgroups(2) is permitted.

    shadow-utils (newgidmap) setuid = disabled
  3. Compensating control

    Mitigate the risk by ensuring the /proc/self/setgroups knob is not reverted (i.e., the kernel setting that restricts setgroups in user namespaces remains enforced) to prevent privilege escalation via supplementary group removal.

Event History

Feb 15, 2018
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
via NVD·08:29 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2018-7169?

CVE-2018-7169 has a medium severity rating due to its potential to grant unauthorized access to filesystem paths.

2

How do I fix CVE-2018-7169?

To fix CVE-2018-7169, update the shadow package to version 4.5 or later, which addresses the vulnerability.

3

Who is affected by CVE-2018-7169?

CVE-2018-7169 affects systems running the shadow package version 4.5.

4

What is the impact of CVE-2018-7169 on systems?

The impact of CVE-2018-7169 allows an unprivileged user to remove themselves from a supplementary group, potentially leading to unauthorized access.

5

Is CVE-2018-7169 easy to exploit?

CVE-2018-7169 can be exploited by users with minimal privileges, making it a relatively low-barrier attack.

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.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203