Vulnerability · Published Sep 22, 2021 · Assigned by redhat

CVE-2021-3583

High 7.1

In plain English

A high-severity improper input validation in ansible. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 60% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)7.1High
Exploit odds (30 days)0.9%top 40.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12ansible5.4.0-1DEBIAN-CVE-2021-3583
Debian:13ansible5.4.0-1DEBIAN-CVE-2021-3583
Debian:14ansible5.4.0-1DEBIAN-CVE-2021-3583
Debian:12ansible-core2.12.0-1DEBIAN-CVE-2021-3583
Debian:13ansible-core2.12.0-1DEBIAN-CVE-2021-3583
Debian:14ansible-core2.12.0-1DEBIAN-CVE-2021-3583
PyPIansible2.9.23rc1GHSA-2pfh-q76x-gwvm
PyPIansible2.10.11rc1GHSA-2pfh-q76x-gwvm
PyPIansible2.11.2rc1GHSA-2pfh-q76x-gwvm
PyPIansible2.9.23PYSEC-2021-358
Ubuntu:24.04:LTSansibleno fix listedUBUNTU-CVE-2021-3583
Ubuntu:25.10ansibleno fix listedUBUNTU-CVE-2021-3583
Ubuntu:26.04:LTSansibleno fix listedUBUNTU-CVE-2021-3583
Ubuntu:26.10ansibleno fix listedUBUNTU-CVE-2021-3583

Affected products (as reported)

VendorProductVersions
n/a ansible ansible_tower 3.7, ansible_engine 2.9.23

Weakness: CWE-20

References