CVE-2021-3583
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ansible | PyPI | 2.11.2rc1, 2.10.11rc1, 2.9.23rc1, 2.9.23 |
| ansible_engine | redhat | 2.9.23 |
| ansible_tower | redhat | 3.7.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | ansible | ansible_tower 3.7, ansible_engine 2.9.23 |
| n/a | ansible | ansible_tower 3.7, ansible_engine 2.9.23 |
| PyPI | ansible | 0 |
| arch | ansible-core | 0 |
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