Bug 1071780 (CVE-2014-0106)

Summary: CVE-2014-0106 sudo: certain environment variables not sanitized when env_reset is disabled
Product: [Other] Security Response Reporter: Murray McAllister <mmcallis>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dkopecek, jkurik, jrusnack, security-response-team, vdanen
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: sudo 1.8.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-03-10 16:04:00 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1072210, 1072211    
Bug Blocks: 1071787    

Description Murray McAllister 2014-03-03 07:24:42 UTC
It was found that, when the Sudo env_reset option was disabled (it is enabled by default), certain environment variables were not blacklisted as expected. A local user authorized to run commands using sudo could use this flaw to execute arbitrary code, allowing them to escalate their privileges.

This issue affects Sudo versions 1.6.9 to 1.8.4p5. Versions 1.8.5 and later are not affected.


Red Hat would like to thank Todd C. Miller for reporting this issue. Upstream acknowledges Sebastien Macke as the original reporter.

Comment 5 Huzaifa S. Sidhpurwala 2014-03-05 04:32:57 UTC
The "env_reset" option is enabled in the version of sudo as shipped with Red Hat Enterprise Linux 5, therefore this flaw does not affect the default configurations of the package.


This issue did not affect the version of sudo package as shipped with Red Hat Enterprise Linux 6.

Comment 6 Huzaifa S. Sidhpurwala 2014-03-05 04:35:20 UTC
This issue does not affect the version of sudo as shipped with Fedora 19 and Fedora 20.

Comment 7 Murray McAllister 2014-03-06 03:46:37 UTC
Public now:


Upstream fix: http://www.sudo.ws/repos/sudo/rev/748cefb49422

Comment 8 Murray McAllister 2014-03-06 03:48:00 UTC
External References:


Comment 9 Martin Prpič 2014-03-06 17:02:30 UTC
Note: This issue only has a security impact on configurations in which a user is permitted to run a limited number of commands with elevated privileges (for example, only commands to start/stop/restart a service). This issue has no impact on configurations in which users are permitted to run arbitrary commands with a target user's privileges.

Comment 10 errata-xmlrpc 2014-03-10 15:46:54 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5

Via RHSA-2014:0266 https://rhn.redhat.com/errata/RHSA-2014-0266.html