CVE-2020-10684: Code Injection

Published Mar 20, 2020
·
Updated

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.11, and 2.9.7 respectively, when using ansiblefacts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansiblefacts after the clean. An attacker could take advantage of this by altering the ansiblefacts, such as ansiblehosts, users and any other key data which would lead into privilege escalation or code injection.

Other sources

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 ansiblefacts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansiblefacts after the clean. An attacker could take advantage of this by altering the ansiblefacts, such as ansiblehosts, users and any other key data which would lead into privilege escalation or code injection.

Keys for ansiblefacts can be overwritten when ansiblefacts is added itself as a subkey. This action would happen after cleaning with unprocessed subkeys, as ansiblefacts could be added as a subkey.

Red Hat

Affected Software

19 affected componentsFixes available
debian/ansible
2.7.7+dfsg-1+deb10u12.7.7+dfsg-1+deb10u22.10.7+merged+base+2.10.8+dfsg-17.3.0+dfsg-17.7.0+dfsg-3
redhat/ansible-engine<2.7.17
2.7.17
redhat/ansible-engine<2.8.11
2.8.11
redhat/ansible-engine<2.9.7
2.9.7
pip/ansible>=2.9.0a1<2.9.7
2.9.7
pip/ansible>=2.8.0a1<2.8.11
2.8.11
pip/ansible>=2.7.0a1<2.7.17
2.7.17
redhat ansible>=2.7.0<2.7.17
redhat ansible>=2.8.0<2.8.9
redhat ansible>=2.9.0<2.9.6
redhat Ansible Tower<=3.3.5
redhat Ansible Tower>=3.5.0<=3.5.5
redhat Ansible Tower>=3.6.0<=3.6.3
redhat Openstack=10
redhat Openstack=13
Debian Debian Linux=10.0
Fedoraproject Fedora=30
Fedoraproject Fedora=31
Fedoraproject Fedora=32

Event History

Mar 24, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:15 PM
DescriptionSeverityWeaknessAffected Software
Apr 7, 2021
Advisory Published
08:37 PM

Frequently Asked Questions

1

What is CVE-2020-10684?

CVE-2020-10684 is a vulnerability in Ansible Engine that allows an attacker to overwrite ansible_facts after a clean.

2

What versions of Ansible Engine are affected by CVE-2020-10684?

Versions 2.7.x, 2.8.x, and 2.9.x of Ansible Engine prior to 2.7.17, 2.8.11, and 2.9.7 respectively are affected by CVE-2020-10684.

3

How can an attacker exploit CVE-2020-10684?

An attacker can exploit CVE-2020-10684 by 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.

4

What is the severity of CVE-2020-10684?

CVE-2020-10684 has a severity rating of high.

5

How can I fix CVE-2020-10684?

To fix CVE-2020-10684, upgrade to Ansible Engine versions 2.7.17, 2.8.11, and 2.9.7 respectively.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203