Permissions, Privileges, and Access Controls in Sudo - CVE-2012-2337
Published: May 18, 2012 / Updated: July 28, 2020
Vulnerability details
The vulnerability allows a local non-authenticated attacker to execute arbitrary code.
sudo 1.6.x and 1.7.x before 1.7.9p1, and 1.8.x before 1.8.4p5, does not properly support configurations that use a netmask syntax, which allows local users to bypass intended command restrictions in opportunistic circumstances by executing a command on a host that has an IPv4 address.
Affected software
Gentoo Linux
Amazon Linux AMI
Ubuntu
sudo (Alpine package)
sudo (Ubuntu package)
sudo-ldap (Ubuntu package)
How to mitigate CVE-2012-2337
sudo (Alpine package) - update to 1.7.9_p1-r0
sudo (Ubuntu package) - addressed in versions 1.6.9p10-1ubuntu3.9, 1.7.2p1-1ubuntu5.4, 1.7.4p4-5ubuntu7.2, 1.7.4p6-1ubuntu2.1, 1.8.3p1-1ubuntu3.2
sudo-ldap (Ubuntu package) - addressed in versions 1.6.9p10-1ubuntu3.9, 1.7.2p1-1ubuntu5.4, 1.7.4p4-5ubuntu7.2, 1.7.4p6-1ubuntu2.1, 1.8.3p1-1ubuntu3.2
External References
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/081432.html
- http://secunia.com/advisories/49219
- http://secunia.com/advisories/49244
- http://secunia.com/advisories/49291
- http://secunia.com/advisories/49948
- http://www.debian.org/security/2012/dsa-2478
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:079
- http://www.securitytracker.com/id?1027077
- http://www.sudo.ws/sudo/alerts/netmask.html
- https://bugzilla.redhat.com/show_bug.cgi?id=820677
- https://www.suse.com/security/cve/CVE-2012-2337/