GLSA 201607-14: Ansible: Privilege escalation

Severity:normal
Title:Ansible: Privilege escalation
Date:07/20/2016
Bugs: #578814
ID:201607-14

Synopsis

A vulnerability in Ansible may allow local attackers to gain escalated privileges or write arbitrary files.

Background

Ansible is a radically simple IT automation platform.

Affected packages

Package Vulnerable Unaffected Architecture(s)
app-admin/ansible < 2.0.2.0-r1 >= 2.0.2.0-r1 All supported architectures

Description

The create_script function in the lxc_container module of Ansible uses predictable temporary file names, making it vulnerable to a symlink attack.

Impact

Local attackers could write arbitrary files or gain escalated privileges within the container.

Workaround

There is no known workaround at this time.

Resolution

All Ansible 1.9.x users should upgrade to the latest version:

      # emerge --sync
      # emerge --ask --oneshot --verbose ">=app-admin/ansible-1.9.6"
    

All Ansible 2.0.2.x users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose ">=app-admin/ansible-2.0.2.0-r1"

References

Availability

This GLSA and any updates to it are available for viewing at the Gentoo Security Website: http://security.gentoo.org/glsa/glsa-201607-14.xml

Concerns?

Security is a primary focus of Gentoo Linux and ensuring the confidentiality and security of our users machines is of utmost importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

License

Copyright 2010 Gentoo Foundation, Inc; referenced text belongs to its owner(s). The contents of this document are licensed under the Creative Commons - Attribution / Share Alike license.

Thank you!