Advisory Published
Updated

REDHAT-BUG-481720

First published: Tue Jan 27 2009(Updated: )

It was discovered that sudo's sudoers file parses does not correctly handle group specification in Runas_User. If group was specified in the list (using syntax %group, to allow some user to run commands as any member of the group) and the user was already member of the group, sudo actually allowed the user to run commands as arbitrary system user. SuSE and upstream bug report: <a href="https://bugzilla.novell.com/show_bug.cgi?id=468923">https://bugzilla.novell.com/show_bug.cgi?id=468923</a> <a href="http://www.gratisoft.us/bugzilla/show_bug.cgi?id=327">http://www.gratisoft.us/bugzilla/show_bug.cgi?id=327</a> This issue was confirmed on multiple 1.6.9 sudo versions. Latest upstream 1.7.0 was reported not to be affected, 1.6.8p12 previously shipped with Red Hat Enterprise Linux 5 was not affected as well. Problem was confirmed on 1.6.9p17 in RHEL5 and Fedora 10. Upstream patch: Index: parse.c =================================================================== RCS file: /home/cvs/courtesan/sudo/parse.c,v retrieving revision 1.160.2.21 diff -u -r1.160.2.21 parse.c --- parse.c 2 Nov 2008 14:35:53 -0000 1.160.2.21 +++ parse.c 23 Jan 2009 19:16:55 -0000 @@ -651,9 +651,11 @@ /* * If the user has a supplementary group vector, check it first. */ - for (i = 0; i &lt; user_ngroups; i++) { - if (grp-&gt;gr_gid == user_groups[i]) - return(TRUE); + if (strcmp(user, user_name) == 0) { + for (i = 0; i &lt; user_ngroups; i++) { + if (grp-&gt;gr_gid == user_groups[i]) + return(TRUE); + } } if (grp-&gt;gr_mem != NULL) { for (cur = grp-&gt;gr_mem; *cur; cur++) {

Affected SoftwareAffected VersionHow to fix
CentOS Sudo

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-481720?

    The severity of REDHAT-BUG-481720 is considered critical due to incorrect handling of group specification in the sudoers file.

  • How do I fix REDHAT-BUG-481720?

    To fix REDHAT-BUG-481720, ensure that your sudo configurations do not allow group specifications that can be abused by members of the specified group.

  • What systems are affected by REDHAT-BUG-481720?

    Systems that utilize the sudo package, specifically those with versions vulnerable to the parsing issue in the sudoers file, are affected by REDHAT-BUG-481720.

  • Is there a workaround for REDHAT-BUG-481720?

    A workaround for REDHAT-BUG-481720 is to avoid using group specifications in Runas_User in your sudoers file until a patch is available.

  • When was REDHAT-BUG-481720 reported?

    REDHAT-BUG-481720 was reported in the Red Hat Bugzilla system, indicating an oversight in the sudo group handling in the configuration.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203