CVE-2020-10685
published 2020-05-11CVE-2020-10685: A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible…
PriorityP427medium5.5CVSS 3.1
AVLACLPRLUINSUCHINAN
EPSS
0.38%
29.8th percentile
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is encrypted ble.
Affected
27 ranges· showing 25
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| debian | ansible | < ansible 2.9.7+dfsg-1 (bookworm) | ansible 2.9.7+dfsg-1 (bookworm) |
| debian | debian_linux | — | — |
| red_hat | ansible | — | — |
| red_hat | ansible | — | — |
| red_hat | ansible | — | — |
| red_hat | ansible | — | — |
| red_hat | ansible | — | — |
| red_hat | ansible | — | — |
| redhat | ansible | >= 0 < 2.9.7+dfsg-1 | 2.9.7+dfsg-1 |
| redhat | ansible | >= 0 < 2.9.7+dfsg-1 | 2.9.7+dfsg-1 |
| redhat | ansible | >= 0 < 2.9.7+dfsg-1 | 2.9.7+dfsg-1 |
| redhat | ansible | >= 0 < 2.9.7+dfsg-1 | 2.9.7+dfsg-1 |
| redhat | ansible | >= 2.7.0a1 < 2.7.17 | 2.7.17 |
| redhat | ansible | >= 2.8.0a1 < 2.8.11 | 2.8.11 |
| redhat | ansible | >= 2.9.0a1 < 2.9.7 | 2.9.7 |
| redhat | ansible_engine | >= 2.7.0 < 2.7.17 | 2.7.17 |
| redhat | ansible_engine | >= 2.8.0 < 2.8.11 | 2.8.11 |
| redhat | ansible_engine | >= 2.9.0 < 2.9.7 | 2.9.7 |
| redhat | ansible_tower | <= 3.4.5 | — |
| redhat | ansible_tower | 3.5.0 – 3.5.5 | — |
| redhat | ansible_tower | 3.6.0 – 3.6.3 | — |
| redhat | ceph_storage | — | — |
| redhat | ceph_storage | — | — |
| redhat | openstack | — | — |
| redhat | openstack | — | — |
CVSS provenance
nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
nvdv2.01.9LOWAV:L/AC:M/Au:N/C:P/I:N/A:N
osv5.5MEDIUM
vendor_debian5.0MEDIUM
vendor_redhat5.0MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
Red Hat
Ansible: modules which use files encrypted with vault are not properly cleaned up
vendor_redhat·2020-03-18·CVSS 5.0
CVE-2020-10685 [MEDIUM] CWE-459 Ansible: modules which use files encrypted with vault are not properly cleaned up
Ansible: modules which use files encrypted with vault are not properly cleaned up
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normal
Debian
CVE-2020-10685: ansible - A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x befor...
vendor_debian·2020·CVSS 5.0
CVE-2020-10685 [MEDIUM] CVE-2020-10685: ansible - A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x befor...
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is encrypted ble.
Scope: local
bookworm: resolved (fixed in 2.9.7+dfsg-1)
bullse
GHSA
Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
ghsa·2021-04-07
CVE-2020-10685 [MEDIUM] CWE-377 Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is
OSV
Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
osv·2021-04-07
CVE-2020-10685 [MEDIUM] Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is
OSV
CVE-2020-10685: A flaw was found in Ansible Engine affecting Ansible Engine versions 2
osv·2020-05-11·CVSS 5.5
CVE-2020-10685 [MEDIUM] CVE-2020-10685: A flaw was found in Ansible Engine affecting Ansible Engine versions 2
A flaw was found in Ansible Engine affecting Ansible Engine versions 2.7.x before 2.7.17 and 2.8.x before 2.8.11 and 2.9.x before 2.9.7 as well as Ansible Tower before and including versions 3.4.5 and 3.5.5 and 3.6.3 when using modules which decrypts vault files such as assemble, script, unarchive, win_copy, aws_s3 or copy modules. The temporary directory is created in /tmp leaves the s ts unencrypted. On Operating Systems which /tmp is not a tmpfs but part of the root partition, the directory is only cleared on boot and the decryp emains when the host is switched off. The system will be vulnerable when the system is not running. So decrypted data must be cleared as soon as possible and the data which normally is encrypted ble.
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [openstack-rdo]
bugzilla·2020-03-23·CVSS 5.0
CVE-2020-10685 [MEDIUM] CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [openstack-rdo]
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [openstack-rdo]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of openstack-rdo.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
Discussion:
F
Bugzilla
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [fedora-all]
bugzilla·2020-03-23·CVSS 5.0
CVE-2020-10685 [MEDIUM] CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [fedora-all]
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [fedora-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of fedora-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue aff
Bugzilla
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [epel-all]
bugzilla·2020-03-23·CVSS 5.0
CVE-2020-10685 [MEDIUM] CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [epel-all]
CVE-2020-10685 ansible: modules which use files encrypted with vault are not properly cleaned up [epel-all]
This is an automatically created tracking bug! It was created to ensure
that one or more security vulnerabilities are fixed in affected versions
of epel-all.
For comments that are specific to the vulnerability please use bugs filed
against the "Security Response" product referenced in the "Blocks" field.
For more information see:
http://fedoraproject.org/wiki/Security/TrackingBugs
When submitting as an update, use the fedpkg template provided in the next
comment(s). This will include the bug IDs of this tracking bug as well as
the relevant top-level CVE bugs.
Please also mention the CVE IDs being fixed in the RPM changelog and the
fedpkg commit message.
NOTE: this issue affects
Bugzilla
CVE-2020-10685 Ansible: modules which use files encrypted with vault are not properly cleaned up
bugzilla·2020-03-18·CVSS 5.0
CVE-2020-10685 [MEDIUM] CVE-2020-10685 Ansible: modules which use files encrypted with vault are not properly cleaned up
CVE-2020-10685 Ansible: modules which use files encrypted with vault are not properly cleaned up
When a module uses a file that was encrypted with vault, it doesn not remove the decrypted file in /tmp after its usage.
Discussion:
Acknowledgments:
Name: Damien Aumaitre (Quarkslab), Nicolas Surbayrole (Quarkslab)
---
Mitigation:
Currently, there is no mitigation for this issue except by removing manually the temporary created file after every run.
---
Red Hat Gluster Storage and Red Hat Ceph Storage no longer maintains its own version of Ansible. The fix will be provided from core Ansible. But we still ship ansible separately for ceph ubuntu.
---
Created ansible tracking bugs for this issue:
Affects: epel-all [bug 1816312]
Affects: fedora-all [bug 1816313]
Affects: openstack-rdo
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10685https://github.com/ansible/ansible/pull/68433https://security.gentoo.org/glsa/202006-11https://www.debian.org/security/2021/dsa-4950https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10685https://github.com/ansible/ansible/pull/68433https://security.gentoo.org/glsa/202006-11https://www.debian.org/security/2021/dsa-4950
2020-05-11
Published