Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2021-3583

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2021-3583
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 07:11 UTC · Revision 1

Source evidence

CVE-2021-3583

core-osv · Original source

Published 22 Sept 2021, 12:15 UTC

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.

osv:CVE-2021-3583
Complete source record
{
  "id": "e5dff6a36c0b6754e13fca30a610a613428b6dca789d088fe860c97c9cae3d46",
  "url": "https://osv.dev/vulnerability/CVE-2021-3583",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2021-3583",
    "summary": "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.",
    "evidence": "osv:CVE-2021-3583",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2021-3583",
      "aliases": [
        "CVE-2021-3583",
        "GHSA-2pfh-q76x-gwvm",
        "PYSEC-2021-358"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ansible/ansible",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8016c034da1140fe09f7db626124ebe04a27557a"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "2.9.23"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.9.23rc1",
            "v2.9.22",
            "v2.9.22rc1",
            "v2.9.21",
            "v2.9.21rc1",
            "v2.9.20",
            "v2.9.20rc1",
            "v2.9.19",
            "v2.9.19rc1",
            "v2.9.18",
            "v2.9.18rc1",
            "v2.9.17",
            "v2.9.17rc1",
            "v2.9.16",
            "v2.9.16rc1",
            "v2.9.15",
            "v2.9.15rc1",
            "v2.9.14",
            "v2.9.14rc1",
            "v2.9.13",
            "v2.9.12",
            "v2.9.11",
            "v2.9.10",
            "v2.9.9",
            "v2.9.8",
            "v2.9.7",
            "v2.9.6",
            "v2.9.5",
            "v2.9.4",
            "v2.9.3",
            "v2.9.2",
            "v2.9.1",
            "v2.9.0",
            "v2.9.0rc5",
            "v2.9.0rc4",
            "v2.9.0rc3",
            "v2.9.0rc2",
            "v2.9.0rc1",
            "v2.9.0b1",
            "stable-2.9-branchpoint",
            "v2.8.0a1",
            "v2.7.0.a1",
            "v2.6.0a1",
            "v2.0.0-0.5.beta3",
            "v2.0.0-0.4.beta2",
            "v2.0.0-0.3.beta1",
            "v2.0.0-0.2.alpha2",
            "v2.0.0-0.1.alpha1",
            "v1.6.0",
            "v1.4.0",
            "v1.2",
            "v1.1",
            "v1.0",
            "0.7",
            "0.3",
            "0.0.1",
            "0.01"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-3583.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:50.049501319Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html",
        "https://bugzilla.redhat.com/show_bug.cgi?id=1968412"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_tower",
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "3.7.0"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_automation_platform",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "1.2"
                  },
                  {
                    "last_affected": "1.2"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2021-3583",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 437135,
  "published_at": "2021-09-22T12:15:07.953+00:00"
}