CVE-2020-10685
Exposure of Resource to Wrong Sphere and Insecure Temporary File in Ansible
Also known as GHSA-77g3-3j5w-64w4, PYSEC-2020-1
Mitigation
- Upgrade ansible to one of 2.7.17, 2.8.11, 2.9.7 (or later in the same release line).
Who should check
- Projects that depend on PyPI package ansible (>= 2.7.0a1, < 2.7.17)
- Anyone running 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
Vulnerability facts
- Affected
- ansible >= 2.7.0a1, < 2.7.17
- Fixed in
- 2.7.17, 2.8.11, 2.9.7
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.36% chance of exploitation in 30 days (percentile 22, 2026-11-26)
- CWE
- CWE-459
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| PyPI ansible | >= 2.7.0a1, < 2.7.17 | 2.7.17, 2.8.11, 2.9.7 | osv |
| 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 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2020-10685. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-10685.md Affected: ansible >= 2.7.0a1, < 2.7.17 Fixed in: 2.7.17, 2.8.11, 2.9.7 Steps: 1. Search this machine and project for ansible (PyPI), Red Hat Ansible: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-10685
- https://github.com/ansible/ansible/pull/68433
- https://github.com/ansible/ansible/commit/4e1fe80e681fa466626e9dea53efe6b0253ea1b2
- https://github.com/ansible/ansible/commit/51d2514753544a9d58cd7524e27e696b2c944fb5
- https://github.com/ansible/ansible/commit/e1273b6faf036ed84e4f4edee85b888a4e256aee
FAQ
Is CVE-2020-10685 being exploited?
There is no confirmed exploitation: CVE-2020-10685 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.36% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-10685?
Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.
Which versions are affected by CVE-2020-10685?
ansible >= 2.7.0a1, < 2.7.17.
Is there a fix for CVE-2020-10685?
Yes. Fixed in 2.7.17, 2.8.11, 2.9.7. Upgrade ansible to one of 2.7.17, 2.8.11, 2.9.7 (or later in the same release line).
How do I check if I'm affected by CVE-2020-10685?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.