Skip to content
Heist/ feed
Back to feed
High

Security advisory

Type: advisorySources: OSVCVE: CVE-2020-10684

A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2020-10684
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 06:48 UTC · Revision 1

Source evidence

CVE-2020-10684

core-osv · Original source

Published 24 Mar 2020, 14:15 UTC

A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.

osv:CVE-2020-10684
Complete source record
{
  "id": "5b303bbb0d037cc24ac02e0662e310f58049adbaa05d4386b7eb26cd441439ad",
  "url": "https://osv.dev/vulnerability/CVE-2020-10684",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2020-10684",
    "summary": "A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.",
    "evidence": "osv:CVE-2020-10684",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2020-10684",
      "aliases": [
        "CVE-2020-10684",
        "GHSA-p62g-jhg6-v3rq",
        "PYSEC-2020-207"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/ansible/ansible",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0a07068054090d5b78b27496aa251be74c484b45"
                },
                {
                  "fixed": "f78a5b184c6f8b1bc774ed795a2bd36d38f6506b"
                },
                {
                  "introduced": "2611867fd1dc387ceaa0ffb8ce0f030aafc2a859"
                },
                {
                  "fixed": "668cdc3ce88d9d69093a81271b34c69897ef2b57"
                },
                {
                  "introduced": "24325a05dfb9104d6d4ec8b488b89e07c2e6d376"
                },
                {
                  "fixed": "9e3ccd64b6a233390cd70c314193b6ba1aacfe21"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.7.0"
                      },
                      {
                        "fixed": "2.7.17"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.8.0"
                      },
                      {
                        "fixed": "2.8.9"
                      }
                    ],
                    "source": "CPE_RANGE"
                  },
                  {
                    "cpe": "cpe:2.3:a:redhat:ansible:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "2.9.0"
                      },
                      {
                        "fixed": "2.9.6"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "v2.9.5",
            "v2.9.4",
            "v2.9.3",
            "v2.8.8",
            "v2.7.16",
            "v2.9.2",
            "v2.9.1",
            "v2.8.7",
            "v2.7.15",
            "v2.9.0",
            "v2.8.6",
            "v2.7.14",
            "v2.8.5",
            "v2.7.13",
            "v2.8.4",
            "v2.8.3",
            "v2.7.12",
            "v2.8.2",
            "v2.8.1",
            "v2.7.11",
            "v2.8.0",
            "v2.7.10",
            "v2.7.9",
            "v2.7.8",
            "v2.7.7",
            "v2.7.6",
            "v2.7.5",
            "v2.7.4",
            "v2.7.3",
            "v2.7.2",
            "v2.7.1",
            "v2.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-10684.json"
          }
        }
      ],
      "modified": "2026-10-24T10:30:44.748144892Z",
      "provider": "osv",
      "references": [
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/",
        "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/",
        "https://security.gentoo.org/glsa/202006-11",
        "https://www.debian.org/security/2021/dsa-4950",
        "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10684"
      ],
      "provider_metadata": {
        "unresolved_ranges": [
          {
            "cpes": [
              "cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:ansible_tower",
            "extracted_events": [
              {
                "range": [
                  {
                    "last_affected": "3.3.5"
                  },
                  {
                    "introduced": "3.5.0"
                  },
                  {
                    "last_affected": "3.5.5"
                  },
                  {
                    "introduced": "3.6.0"
                  },
                  {
                    "last_affected": "3.6.3"
                  }
                ],
                "source": "CPE_RANGE"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*"
            ],
            "vendor_product": "debian:debian_linux",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10.0"
                  },
                  {
                    "last_affected": "10.0"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:o:fedoraproject:fedora:30:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:31:*:*:*:*:*:*:*",
              "cpe:2.3:o:fedoraproject:fedora:32:*:*:*:*:*:*:*"
            ],
            "vendor_product": "fedoraproject:fedora",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "30"
                  },
                  {
                    "last_affected": "30"
                  },
                  {
                    "introduced": "31"
                  },
                  {
                    "last_affected": "31"
                  },
                  {
                    "introduced": "32"
                  },
                  {
                    "last_affected": "32"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          },
          {
            "cpes": [
              "cpe:2.3:a:redhat:openstack:10:*:*:*:*:*:*:*",
              "cpe:2.3:a:redhat:openstack:13:*:*:*:*:*:*:*"
            ],
            "vendor_product": "redhat:openstack",
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "10"
                  },
                  {
                    "last_affected": "10"
                  },
                  {
                    "introduced": "13"
                  },
                  {
                    "last_affected": "13"
                  }
                ],
                "source": "CPE_STRING"
              }
            ]
          }
        ]
      }
    },
    "related_cves": [
      {
        "value": "CVE-2020-10684",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 435957,
  "published_at": "2020-03-24T14:15:12.327+00:00"
}