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:||vulnerability||Assignee:||Red Hat Product Security <security-response-team>|
|Status:||CLOSED ERRATA||QA Contact:|
|Version:||unspecified||CC:||dkopecek, jkurik, jrusnack, security-response-team, vdanen|
|Fixed In Version:||sudo 1.8.5||Doc Type:||Bug Fix|
|Doc Text:||Story Points:||---|
|Last Closed:||2014-03-10 16:04:00 UTC||Type:||---|
|oVirt Team:||---||RHEL 7.3 requirements from Atomic Host:|
|Cloudforms Team:||---||Target Upstream Version:|
|Bug Depends On:||1072210, 1072211|
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. Acknowledgements: 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. Statement: 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: http://seclists.org/oss-sec/2014/q1/510 Upstream fix: http://www.sudo.ws/repos/sudo/rev/748cefb49422
Comment 8 Murray McAllister 2014-03-06 03:48:00 UTC
External References: http://www.sudo.ws/sudo/alerts/env_add.html
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.