Search for vulnerabilities
Vulnerability details: VCID-tn78-u8u8-w3c3
Vulnerability ID VCID-tn78-u8u8-w3c3
Aliases CVE-2021-3583
GHSA-2pfh-q76x-gwvm
PYSEC-2021-358
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.
Status Published
Exploitability 0.5
Weighted Severity 8.0
Risk 4.0
Affected and Fixed Packages Package Details
Weaknesses (5)
System Score Found at
cvssv3 6.6 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-3583.json
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00388 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00407 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00422 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00422 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00422 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
epss 0.00422 https://api.first.org/data/v1/epss?cve=CVE-2021-3583
cvssv3.1 7.1 https://bugzilla.redhat.com/show_bug.cgi?id=1968412
generic_textual HIGH https://bugzilla.redhat.com/show_bug.cgi?id=1968412
cvssv3.1 6.6 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1 7.1 https://github.com/advisories/GHSA-2pfh-q76x-gwvm
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-2pfh-q76x-gwvm
generic_textual HIGH https://github.com/advisories/GHSA-2pfh-q76x-gwvm
cvssv3.1 7.1 https://github.com/ansible/ansible
generic_textual HIGH https://github.com/ansible/ansible
cvssv3.1 7.1 https://github.com/ansible/ansible/commit/03aff644cc1c00e1f7551195c68fbd0d13a39e6e
generic_textual HIGH https://github.com/ansible/ansible/commit/03aff644cc1c00e1f7551195c68fbd0d13a39e6e
cvssv3.1 7.1 https://github.com/ansible/ansible/commit/8aa850e3573e48c9a2f12aef84e8a3a6f5ba4847
generic_textual HIGH https://github.com/ansible/ansible/commit/8aa850e3573e48c9a2f12aef84e8a3a6f5ba4847
cvssv3.1 7.1 https://github.com/ansible/ansible/commit/8b17e5b9229ffaecfe10a4881bc3f87dd2c184e1
generic_textual HIGH https://github.com/ansible/ansible/commit/8b17e5b9229ffaecfe10a4881bc3f87dd2c184e1
cvssv3.1 7.1 https://github.com/ansible/ansible/pull/74960
generic_textual HIGH https://github.com/ansible/ansible/pull/74960
cvssv3.1 7.1 https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-358.yaml
generic_textual HIGH https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-358.yaml
cvssv3.1 7.1 https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html
generic_textual HIGH https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html
cvssv2 3.6 https://nvd.nist.gov/vuln/detail/CVE-2021-3583
cvssv3.1 7.1 https://nvd.nist.gov/vuln/detail/CVE-2021-3583
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2021-3583
archlinux Medium https://security.archlinux.org/AVG-2260
Reference id Reference type URL
https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-3583.json
https://api.first.org/data/v1/epss?cve=CVE-2021-3583
https://bugzilla.redhat.com/show_bug.cgi?id=1968412
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-3583
https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
https://github.com/advisories/GHSA-2pfh-q76x-gwvm
https://github.com/ansible/ansible
https://github.com/ansible/ansible/commit/03aff644cc1c00e1f7551195c68fbd0d13a39e6e
https://github.com/ansible/ansible/commit/8aa850e3573e48c9a2f12aef84e8a3a6f5ba4847
https://github.com/ansible/ansible/commit/8b17e5b9229ffaecfe10a4881bc3f87dd2c184e1
https://github.com/ansible/ansible/pull/74960
https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-358.yaml
https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html
https://nvd.nist.gov/vuln/detail/CVE-2021-3583
AVG-2260 https://security.archlinux.org/AVG-2260
cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*
cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*
cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*
RHSA-2021:2663 https://access.redhat.com/errata/RHSA-2021:2663
RHSA-2021:2664 https://access.redhat.com/errata/RHSA-2021:2664
USN-USN-5315-1 https://usn.ubuntu.com/USN-5315-1/
No exploits are available.
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-3583.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://bugzilla.redhat.com/show_bug.cgi?id=1968412
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:N Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/advisories/GHSA-2pfh-q76x-gwvm
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/ansible/ansible
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/ansible/ansible/commit/03aff644cc1c00e1f7551195c68fbd0d13a39e6e
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/ansible/ansible/commit/8aa850e3573e48c9a2f12aef84e8a3a6f5ba4847
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/ansible/ansible/commit/8b17e5b9229ffaecfe10a4881bc3f87dd2c184e1
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/ansible/ansible/pull/74960
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2021-358.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: AV:L/AC:L/Au:N/C:P/I:P/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2021-3583
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N Found at https://nvd.nist.gov/vuln/detail/CVE-2021-3583
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.59108
EPSS Score 0.00388
Published At July 30, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T08:17:19.356868+00:00 Pypa Importer Import https://github.com/pypa/advisory-database/blob/main/vulns/ansible/PYSEC-2021-358.yaml 37.0.0