cve.bz

CVE-2018-7169 shadow project shadow

5.3 mediumExploit referenceEPSS 1.6%

Medium (5.3) in shadow project shadow. EPSS 1.6% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.0

5.3 medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-732 Incorrect Permission Assignment for Critical Resource
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-7169 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-7169?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-7169?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-7169 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
shadow_project:shadow4.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14shadow1:4.7-1DEBIAN-CVE-2018-7169
Ubuntu18.04:LTSshadow1:4.5-1ubuntu2.2UBUNTU-CVE-2018-7169 USN-5254-1
UbuntuPro:14.04:LTSshadow1:4.1.5.1-1ubuntu9.5+esm1UBUNTU-CVE-2018-7169 USN-5254-1
UbuntuPro:16.04:LTSshadow1:4.2-3.1ubuntu5.5+esm1UBUNTU-CVE-2018-7169 USN-5254-1
SUSELinux Enterprise Desktop 12 SP2, Linux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP2 and 4 moreshadow4.2.1-27.6.1SUSE-SU-2018:0662-1
openSUSETumbleweedshadow4.9-1.1openSUSE-SU-2024:11378-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue did not affect the versions of shadow-utils as shipped with Red Hat Enterprise Linux 5, 6 and 7 as they did not provide newgidmap program.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 5shadow-utilsNot affected
Red Hat Enterprise Linux 6shadow-utilsNot affected
Red Hat Enterprise Linux 7shadow-utilsNot affected
Red Hat Enterprise Linux 8shadow-utilsNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-7169.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-732 (11).

References

Check your stackJSON