# CVE-2020-10685: Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible

- Severity: Medium 5.0 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.36%, higher than 31% of CVEs (2026-12-02)
- Published: 2020-05-11T00:00:00.000Z
- Modified: 2026-06-17T02:48:15.243Z
- Also known as: GHSA-77g3-3j5w-64w4, PYSEC-2020-1
- Weaknesses: CWE-377, CWE-459, CWE-668
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- Red Hat Ansible: ansible-engine versions 2.7.x before 2.7.17; ansible-engine 2.8.x before 2.8.11; ansible-engine 2.9.x before 2.9.7; Ansible Tower <= 3.4.5; Ansible Tower <= 3.5.5; Ansible Tower <= 3.6.3
- ansible (PyPI): from 2.7.0a1 before 2.7.17; from 2.8.0a1 before 2.8.11; from 2.9.0a1 before 2.9.7; from 2.7.0 before 2.7.17; from 2.8.0 before 2.8.11; from 2.9.0 before 2.9.7
- redhat ansible_engine: from 2.7.0 before 2.7.17; from 2.8.0 before 2.8.11; from 2.9.0 before 2.9.7
- redhat ansible_tower: up to 3.4.5; from 3.5.0 up to 3.5.5; from 3.6.0 up to 3.6.3
- redhat ceph_storage: 2.0; 3.0
- redhat openstack: 10; 13; 15
- redhat storage: 3.0
- debian debian_linux: 10.0

## Every score

- redhat: CVSS:3.1 5.0 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://security.gentoo.org/glsa/202006-11> (advisory, third-party-advisory, vendor-advisory, web)
- <https://www.debian.org/security/2021/dsa-4950> (third-party-advisory, vendor-advisory, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10685> (issue-tracking, patch, report, vendor-advisory, web)
- <https://github.com/ansible/ansible/pull/68433> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-10685> (advisory)
- <https://github.com/ansible/ansible/commit/4e1fe80e681fa466626e9dea53efe6b0253ea1b2> (web)
- <https://github.com/ansible/ansible/commit/51d2514753544a9d58cd7524e27e696b2c944fb5> (web)
- <https://github.com/ansible/ansible/commit/e1273b6faf036ed84e4f4edee85b888a4e256aee> (web)
- <https://github.com/advisories/GHSA-77g3-3j5w-64w4> (advisory)
- <https://github.com/ansible/ansible> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-1.yaml> (web)

## Sources

- CVE List: [CVE-2020-10685](https://www.cve.org/CVERecord?id=CVE-2020-10685), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-77g3-3j5w-64w4](https://github.com/advisories/GHSA-77g3-3j5w-64w4), CC-BY-4.0, modified 2024-09-06
- NVD: [CVE-2020-10685](https://nvd.nist.gov/vuln/detail/CVE-2020-10685), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2020-1](https://osv.dev/vulnerability/PYSEC-2020-1), CC-BY-4.0, modified 2023-11-08

---

Page: https://cve.day/CVE-2020-10685 · Whole record: https://cve.day/CVE-2020-10685.json · Rebuilt by cve.day 2026-11-25T22:57:52.360Z
