Bug 1335551 (CVE-2014-3498) - CVE-2014-3498 ansible: Potential untrusted template execution
Summary: CVE-2014-3498 ansible: Potential untrusted template execution
Keywords:
Status: CLOSED NOTABUG
Alias: CVE-2014-3498
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-12 13:31 UTC by Adam Mariš
Modified: 2019-09-29 13:49 UTC (History)
17 users (show)

Fixed In Version: ansible 1.6.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 13:32:27 UTC


Attachments (Terms of Use)

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)


Note You need to log in before you can comment on or make changes to this bug.