Arbitrary Code Execution Affecting ansible-vault package, versions [,1.0.5)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.66% (71st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-ANSIBLEVAULT-40672
  • published20 Sept 2017
  • disclosed14 Sept 2017
  • creditCory Duplantis

Introduced: 14 Sep 2017

CVE-2017-2809  (opens in a new tab)
CWE-502  (opens in a new tab)

How to fix?

Upgrade ansible-vault to version 1.0.5 or higher.

Overview

Affected versions of ansible-vault are vulnerable to Arbitrary Code Execution.

Ansible Vault uses an encrypted format to enable users to store potential secrets (passwords, etc) that are needed for automating tasks.

Prior to version 1.0.5, Ansible Vault used the unsafe yaml.load() method to load the yaml file that it ultimately encrypts. If that yaml file contains a carefully coded python directive, the yaml.load() method will enable arbitrary commands to be executed.

CVSS Base Scores

version 3.1