Advisory

GHSA-4cvm-5776-jx9f

Also known as: CVE-2014-3498, PYSEC-2017-2

Summary

Ansible Arbitrary Code Execution

Details

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. If 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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-05-14 02:03 UTC
Modified
2024-09-03 21:41 UTC

Affected packages and fixes

ansible

PyPI · All systems

Affected

  • introduced 0, fixed 1.6.6 (ecosystem)

Fixed versions

1.6.6

Fix

  • Fixed version 1.6.6
    pip install --upgrade ansible==1.6.6

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences