Code execution via nested ansible_facts injection
Published Mar 24, 2020 · Updated Aug 4, 2024
Code injection in Red Hat Ansible 2.7.x before 2.7.17, 2.8.x before 2.8.9, and 2.9.x before 2.9.6 allows local users to run commands. The fact-cleaning path permits a module result to nest ansible_facts inside itself, then promotes that unprocessed subkey over sanitized top-level facts. Exploitation requires fact injection to be enabled and attacker-influenced module output; overwritten interpreter or host data can execute commands or elevate privileges.
Summary
What happened
Code injection in Red Hat Ansible 2.7.x before 2.7.17, 2.8.x before 2.8.9, and 2.9.x before 2.9.6 allows local users to run commands. The fact-cleaning path permits a module result to nest ansible_facts inside itself, then promotes that unprocessed subkey over sanitized top-level facts. Exploitation requires fact injection to be enabled and attacker-influenced module output; overwritten interpreter or host data can execute commands or elevate privileges.
The record
- CVE
- CVE-2020-10684
- Published
- Mar 24, 2020
- Updated
- Aug 4, 2024
- Vendor
- Red Hat
- Product
- Ansible
- Classifications
- CWE-362, CWE-94, CWE-862, T1059, T1068
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 24, 2020CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=all Ansible 2.7.x versions prior to 2.7.17
- Affected versionversion=all Ansible 2.8.x versions prior to 2.8.9
- Affected versionversion=all Ansible 2.9.x versions prior to 2.9.6
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Upstream bogus_facts injection regression testproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo