CVE-2020-10684

Ansible: code injection when using ansible_facts as a subkey

Published Mar 24, 2020 CVSS 3.1 · 7.9 High EPSS < 1% KEV · Not listed
Description
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DSA Debian DSA DSA-4950-1 ansible security update
EUVD EUVD EUVD-2020-0019 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.
Github GHSA Github GHSA GHSA-p62g-jhg6-v3rq Code Injection, Race Condition, and Execution with Unnecessary Privileges in Ansible
History

No history.

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Aug 4, 2024, 11:06 AM
Reserved
Mar 20, 2020, 12:00 AM
Status
Modified
Published
Mar 24, 2020, 2:15 PM
Modified
Jun 17, 2026, 2:48 AM
Severity
Important
Public date
Mar 23, 2020, 12:00 AM