SecurityContext

CVE-2021-3583: Ansible - Template Injection

  • Cve: CVE-2021-3583
  • Name: Ansible - Template Injection
  • 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.
  • Impact: Attackers can execute arbitrary commands and access sensitive information, compromising confidentiality and integrity.
  • Remediation: Update to the latest version of Ansible that addresses this vulnerability or apply security patches.
  • Vulnerability type: template_injection
  • Vulnerability impact: information_disclosure, remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs to control facts used in templates
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.1
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
  • Epss score: 0.00889
  • Epss percentile: 0.60257
  • Assignee: [email protected]
  • Published at: 2021-09-22T12:15:07Z
  • Age in days: 1889
  • Modified at: 2026-06-17T04:05:23Z
  • Patch available: yes
  • References total: 2
  • Products total: 3
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-3583
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-20Improper Input Validation
CWE-94Improper Control of Generation of Code

References

UrlSourceTags
https://bugzilla.redhat.com/show_bug.cgi?id=1968412nvdIssue Tracking, Vendor Advisory
https://lists.debian.org/debian-lts-announce/2023/12/msg00018.htmlnvd

Products

Same in every row:

  • Platform bound: no
  • Sources: nvd
ProductAffectedUrl
redhat:ansible_automation_platform= 1.2/v1/products/redhat/ansible_automation_platform
redhat:ansible_tower< 3.7.0/v1/products/redhat/ansible_tower
redhat:ansible_engine< 2.9.23/v1/products/redhat/ansible_engine

Projects

RepositoryLink kindsIndexedUrl
ansible/ansiblecommit, fix, package, pullyes/v1/repositories/ansible/ansible

Index

  • Repositories: 128
  • Repositories high signal: 47
  • Packages: 1

Exploitation

  • Authentication required: yes
  • Exposed hosts: 5
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports