GitHub Advisoryadvisory · PyPI

GHSA-4cvm-5776-jx9f Ansible Arbitrary Code Execution

HIGH Published 2022-05-14 Modified 2024-09-03 Official page ↗
Aliases
CVE-2014-3498
Ecosystem
PyPI
Packages
ansible
Severity
High
CVSS vector
CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-20
Reviewed
2023-08-16

Affected packages

• PyPI ansible: < 1.6.6 → fixed in 1.6.6

Description

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.

Related

Alias · CVE (1)

  • CVE-2014-3498 The user module in ansible before 1.6.6 allows remote authenticated users to execute arbitrary commands. vulnerability

Weakness · CWE (1)

  • CWE-20 Improper Input Validation weakness

References