GitHub Advisoryadvisory · PyPI

GHSA-6j58-grhv-2769 ansible-runner vulnerable to shell command injection

HIGH Published 2022-08-25 Modified 2024-09-03 Official page ↗
Aliases
CVE-2021-4041
Ecosystem
PyPI
Packages
ansible-runner
Severity
High
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weaknesses
CWE-116, CWE-20
Reviewed
2022-09-01

Affected packages

• PyPI ansible-runner: < 2.1.0 → fixed in 2.1.0

Description

A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the `ansible_runner.interface.run_command`, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.

Related

Alias · CVE (1)

  • CVE-2021-4041 A flaw was found in ansible-runner. vulnerability

Weakness · CWE (2)

  • CWE-116 Improper Encoding or Escaping of Output weakness
  • CWE-20 Improper Input Validation weakness

References