Cloudanix VulnDB

CVE-2016-6252

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Feb 17, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

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

  1. Obtain local shell access
  2. Locate and invoke the vulnerable newuidmap binary
  3. Supply crafted input to trigger integer overflow
  4. 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