Buffer overflow in shadow - CVE-2017-12424

 

Buffer overflow in shadow - CVE-2017-12424

Published: August 4, 2017 / Updated: July 28, 2020


Vulnerability identifier: #VU32061
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2017-12424
CWE-ID: CWE-119
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to execute arbitrary code.

In shadow before 4.5, the newusers tool could be made to manipulate internal data structures in ways unintended by the authors. Malformed input may lead to crashes (with a buffer overflow or other memory corruption) or other unspecified behaviors. This crosses a privilege boundary in, for example, certain web-hosting environments in which a Control Panel allows an unprivileged user account to create subaccounts.


Affected software

shadow
Gentoo Linux
Ubuntu
cflinuxfs3
shadow (Alpine package)
login (Ubuntu package)
passwd (Ubuntu package)
uidmap (Ubuntu package)

How to mitigate CVE-2017-12424

Install update from vendor's website.

shadow - update to 4.5
cflinuxfs3 - update to 0.273.0
shadow (Alpine package) - update to 4.5-r0
login (Ubuntu package) - update to 1:4.5-1ubuntu2.2
passwd (Ubuntu package) - update to 1:4.5-1ubuntu2.2
uidmap (Ubuntu package) - update to 1:4.5-1ubuntu2.2

External References

Related Security Bulletins