Bug 1335551 (CVE-2014-3498)

Summary: CVE-2014-3498 ansible: Potential untrusted template execution
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: a.badger, athmanem, bleanhar, ccoleman, dmcphers, jialiu, jkeck, jokerman, kevin, kseifried, kupo, lmeyer, mark, maxim, mmccomas, tdawson, toromoti
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: ansible 1.6.6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-12 13:32:27 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Adam Mariš 2016-05-12 13:31:07 UTC
It was reported that user module in ansible before 1.6.6 is vulnerable to command execution. Ansible can get the result of remote command in variable, which may come from untrusted source of input. The content of variable isn't properly filtered and when attempting to use the variable, it will trigger a function that passes it through jinja 2 template engine that can result into arbitrary command execution. Under certain circumstances, unprivileged user on system that is being managed via ansible can execute code on the managing host under UID of running ansible process.

Upstream patch:

https://github.com/ansible/ansible/commit/8ed6350e65c82292a631f08845dfaacffe7f07f5

Comment 1 Adam Mariš 2016-05-12 13:31:30 UTC
Acknowledgments:

Name: Michael Scherer (Red Hat)