CVE-2020-1735
Path Traversal in Ansible
Also known as GHSA-gfr2-qpxh-qj9m, PYSEC-2020-7
Mitigation
- Upgrade ansible to one of 2.7.18, 2.8.12, 2.9.8, 2.7.17, 2.8.9, 2.9.6 (or later in the same release line).
Who should check
- Projects that depend on PyPI package ansible (>= 2.7.0a1, < 2.7.18)
- Anyone running Red Hat ansible 2.7.x, 2.8.x, 2.9.x
Vulnerability facts
- Affected
- ansible >= 2.7.0a1, < 2.7.18
- Fixed in
- 2.7.18, 2.8.12, 2.9.8, 2.7.17, 2.8.9, 2.9.6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- Yes: see the exploit references below
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.2 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: High
- User interaction: Required
- Scope: Changed (impact reaches other components)
- Confidentiality impact: Low
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.46% chance of exploitation in 30 days (percentile 32, 2026-11-26)
- CWE
- CWE-22
- Modified
Description
A flaw was found in the Ansible Engine when the fetch module is used. An attacker could intercept the module, inject a new path, and then choose a new destination path on the controller node. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.
Affected and fixed versions
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-1735. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2020-1735.md Affected: ansible >= 2.7.0a1, < 2.7.18 Fixed in: 2.7.18, 2.8.12, 2.9.8, 2.7.17, 2.8.9, 2.9.6 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
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1735
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
- https://security.gentoo.org/glsa/202006-11
- https://www.debian.org/security/2021/dsa-4950
- https://nvd.nist.gov/vuln/detail/CVE-2020-1735
- https://github.com/advisories/GHSA-gfr2-qpxh-qj9m
Patches
- https://github.com/ansible/ansible/pull/69023
- https://github.com/ansible/ansible/pull/69024
- https://github.com/ansible/ansible/pull/69025
- https://github.com/ansible/ansible/commit/18f91bbb88a84b1d3614ef41c3550da735592ac1
- https://github.com/ansible/ansible/commit/40969ff43812fabf5397f818d9e521f9b39c9c9a
- https://github.com/ansible/ansible/commit/de9a4f5474c5f5db442ae7493d6b5da7177e335d
Exploits and PoCs
Other
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible/PYSEC-2020-7.yaml
- https://github.com/ansible/ansible/blob/stable-2.9/changelogs/CHANGELOG-v2.9.rst#security-fixes-7
- https://github.com/ansible/ansible
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DKPA4KC3OJSUFASUYMG66HKJE7ADNGFW/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/WQVOQD4VAIXXTVQAJKTN7NUGTJFE2PCB/
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MRRYUU5ZBLPBXCYG6CFP35D64NP2UB2S/
FAQ
Is CVE-2020-1735 being exploited?
There is no confirmed exploitation: CVE-2020-1735 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.46% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2020-1735?
Medium: CVSS 4.2 (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-1735?
ansible >= 2.7.0a1, < 2.7.18.
Is there a fix for CVE-2020-1735?
Yes. Fixed in 2.7.18, 2.8.12, 2.9.8, 2.7.17, 2.8.9, 2.9.6. Upgrade ansible to one of 2.7.18, 2.8.12, 2.9.8, 2.7.17, 2.8.9, 2.9.6 (or later in the same release line).
How do I check if I'm affected by CVE-2020-1735?
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.