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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ansible | 5.4.0-1 | DEBIAN-CVE-2021-3583 |
| Debian:13 | ansible | 5.4.0-1 | DEBIAN-CVE-2021-3583 |
| Debian:14 | ansible | 5.4.0-1 | DEBIAN-CVE-2021-3583 |
| Debian:12 | ansible-core | 2.12.0-1 | DEBIAN-CVE-2021-3583 |
| Debian:13 | ansible-core | 2.12.0-1 | DEBIAN-CVE-2021-3583 |
| Debian:14 | ansible-core | 2.12.0-1 | DEBIAN-CVE-2021-3583 |
| PyPI | ansible | 2.9.23rc1 | GHSA-2pfh-q76x-gwvm |
| PyPI | ansible | 2.10.11rc1 | GHSA-2pfh-q76x-gwvm |
| PyPI | ansible | 2.11.2rc1 | GHSA-2pfh-q76x-gwvm |
| PyPI | ansible | 2.9.23 | PYSEC-2021-358 |
| Ubuntu:24.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-3583 |
| Ubuntu:25.10 | ansible | no fix listed | UBUNTU-CVE-2021-3583 |
| Ubuntu:26.04:LTS | ansible | no fix listed | UBUNTU-CVE-2021-3583 |
| Ubuntu:26.10 | ansible | no fix listed | UBUNTU-CVE-2021-3583 |
Affected products (as reported)
Weakness: CWE-20