CVE-2021-3583: Input Validation

Published Jun 7, 2021
·
Updated

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.

Other sources

if there are ansible users out there who are trying to put templates in multi-line yaml strings(https://yaml-multiline.info/), and the facts being handled don't routinely include special template characters, then their controller will be vulnerable to a template injection through the facts used in template.

Red Hat

Affected Software

8 affected componentsFixes available
redhat/ansible_tower<3.7
3.7
redhat/ansible_engine<2.9.23
2.9.23
pip/ansible>=2.11.0a1<2.11.2rc1
2.11.2rc1
pip/ansible>=2.10.0a1<2.10.11rc1
2.10.11rc1
pip/ansible>=0<2.9.23rc1
2.9.23rc1
redhat Ansible Automation Platform=1.2
redhat Ansible Engine<2.9.23
redhat Ansible Tower<3.7.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.11.2rc1
  2. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.10.11rc1
  3. Upgrade

    Upgrade pip/ansible to a version that resolves this vulnerability.

    Fixed in 2.9.23rc1
  4. Upgrade

    Upgrade redhat/ansible_tower to a version that resolves this vulnerability.

    Fixed in 3.7
  5. Upgrade

    Upgrade redhat/ansible_engine to a version that resolves this vulnerability.

    Fixed in 2.9.23

Event History

Jun 7, 2021
Data Sourced
via Red Hat·10:57 AM
DescriptionSeverityAffected Software
Sep 22, 2021
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·12:15 PM
DescriptionSeverityWeaknessAffected Software
Sep 23, 2021
Advisory Published
via GitHub·11:16 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID of this flaw?

The vulnerability ID of this flaw is CVE-2021-3583.

2

What is the severity of CVE-2021-3583?

The severity of CVE-2021-3583 is high (7.1).

3

Which software products are affected by CVE-2021-3583?

The software products affected by CVE-2021-3583 are Redhat Ansible Automation Platform 1.2, Redhat Ansible Engine up to version 2.9.23, and Redhat Ansible Tower up to version 3.7.0.

4

How can this vulnerability be exploited?

This vulnerability can be exploited by injecting malicious templates into multi-line YAML strings when handling facts.

5

Is there a fix available for CVE-2021-3583?

Yes, there is a fix available for CVE-2021-3583. It is recommended to update to the latest version of the affected software.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203