CVE-2016-6252
High · 7.8CVSS
7.8
EPSS
0.4%
Published
Feb 17, 2017
CISA due date
—
Cloudanix analysis
A local flaw in user account mapping tools could let someone already on the system gain more control than intended.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Low
- Impact
- Privilege Gain
- Component
- Application
- Class
- Privilege Escalation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Integer overflow in shadow 4.2.1 newuidmap allows local users to gain privileges via crafted input.
Why it matters to the business
Local attackers can obtain elevated privileges on affected systems, risking full host compromise for services such as oauth2-proxy; low exploit prevalence reduces immediate urgency but still requires patching.
How an attack unfolds
A local attacker supplies specially crafted input to the newuidmap utility, triggering an integer overflow that results in privilege escalation.
How to fix it
Upgrade oauth2-proxy (Chainguard) and oauth2-proxy (Wolfi) to 7.6.0-r6 or later.
How to confirm the fix worked
Confirm oauth2-proxy package version is 7.6.0-r6 or newer via package manager queries and verify absence of vulnerable shadow 4.2.1 components.
Typical attack path
- Obtain local shell access
- Locate and invoke the vulnerable newuidmap binary
- Supply crafted input to trigger integer overflow
- Escalate to higher privileges
How to detect it
Review local process execution logs and audit trails for invocations of newuidmap with anomalous arguments or unexpected privilege transitions.
What your security team should do
- Apply the 7.6.0-r6 update to all affected oauth2-proxy deployments
- Review local user access controls and limit unnecessary uid mapping capabilities
- Scan systems for any remaining instances of shadow 4.2.1
The record
Integer overflow in shadow 4.2.1 allows local users to gain privileges via crafted input to newuidmap.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | shadow | 0 | 1:4.4-1 |
| Debian:12 | shadow | 0 | 1:4.4-1 |
| Debian:13 | shadow | 0 | 1:4.4-1 |
| Debian:8 | shadow | 0 | 1:4.2-3+deb8u3 |
| Mageia:5 | shadow-utils | 0 | 4.2.1-6.mga5 |
| SUSE:Enterprise Storage 4 | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Desktop 12 SP3 | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Server 12 SP1-LTSS | shadow | 0 | 4.1.5.1-19.8.1 |
| SUSE:Linux Enterprise Server 12 SP2-BCL | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Server 12 SP2-LTSS | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Server 12 SP3 | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Server 12-LTSS | shadow | 0 | 4.1.5.1-19.8.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP1 | shadow | 0 | 4.1.5.1-19.8.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP2 | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | shadow | 0 | 4.2.1-27.9.1 |
| SUSE:OpenStack Cloud 7 | shadow | 0 | 4.2.1-27.9.1 |
| Ubuntu:14.04:LTS | shadow | 0 | 1:4.1.5.1-1ubuntu9.4 |
| Ubuntu:16.04:LTS | shadow | 0 | 1:4.2-3.1ubuntu5.2 |
Related vulnerabilities
- CVE-2024-56433 shadow-utils (aka shadow) 4.4 through 4.17.0 establishes a default /etc/subuid behavior… Also affects shadow
- CVE-2017-12424 In shadow before 4.5, the newusers tool could be made to manipulate internal data… Also affects shadow
- CVE-2026-110264 An issue has been discovered in GitLab CE/EE affecting all versions from 7.0 before… CWE-190
- CVE-2026-53615 util-linux is a random collection of Linux utilities. CWE-190
- CVE-2026-106574 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-106571 ImageMagick is free and open-source software used for editing and manipulating digital… CWE-190
- CVE-2026-75820 GNU Aspell contains an integer truncation vulnerability in the WritableDict::add()… CWE-190
- CVE-2026-102621 A vulnerability was identified in Freedesktop Poppler up to 26.08.0. CWE-190