Bug 979877 (CVE-2014-3498) - VUL-1: CVE-2014-3498: ansible: Potential untrusted template execution
Summary: VUL-1: CVE-2014-3498: ansible: Potential untrusted template execution
Status: RESOLVED UPSTREAM
Alias: CVE-2014-3498
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other All
: P4 - Low : Minor
Target Milestone: ---
Assignee: Jan Matejek
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/169073/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-13 10:13 UTC by Alexander Bergmann
Modified: 2016-11-18 12:56 UTC (History)
4 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Bergmann 2016-05-13 10:13:25 UTC
rh#1335551

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

Acknowledgments:

Name: Michael Scherer (Red Hat)

References:
https://bugzilla.redhat.com/show_bug.cgi?id=1335551
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2014-3498
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2014-3498
Comment 2 Swamp Workflow Management 2016-05-13 22:00:59 UTC
bugbot adjusting priority
Comment 3 Marcus Meissner 2016-11-18 12:51:59 UTC
probably older than 2.1.0
Comment 4 Marcus Meissner 2016-11-18 12:56:39 UTC
all active versions are > 1.7 at least