VDB

CVE-2021-3583

CVE-2021-3583 PUBLISHED CVSS 7.099999904632568 HIGH

Improper Input Validation and Command Injection in Ansible

Reported by redhat · Published September 22, 2021

ansible is fixed in 2.11.2rc1, 2.10.11rc1, 2.9.23rc1 and 1 more (PyPI)

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
ansiblePyPI2.11.2rc1, 2.10.11rc1, 2.9.23rc1, 2.9.23
ansible_engineredhat2.9.23
ansible_towerredhat3.7.0

Risk scores

CVSS 3.1
7.099999904632568
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Affected products

VendorProductVersions
n/aansibleansible_tower 3.7, ansible_engine 2.9.23
n/aansibleansible_tower 3.7, ansible_engine 2.9.23
PyPIansible0
archansible-core0

Timeline

  • Jun 7, 2021 CVE Published
  • Sep 22, 2021 PoC Published
  • Sep 23, 2021 EPSS Score (30 in total, the first dated here)
  • Mar 10, 2026 Security Advisory (7 in total, the first dated here)
  • Mar 17, 2026 Distribution Patch (3 in total, the first dated here)
  • Jul 29, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2021-3583
vulnetix vdb fixes CVE-2021-3583

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2021-3583/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›