Buffer overflow in shadow - CVE-2017-12424
Published: August 4, 2017 / Updated: July 28, 2020
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
Gentoo Linux
Ubuntu
cflinuxfs3
shadow (Alpine package)
login (Ubuntu package)
passwd (Ubuntu package)
uidmap (Ubuntu package)
How to mitigate CVE-2017-12424
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