Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2020-1733

MEDIUM 5.0PoCEPSS 26%

Ansible vulnerable to Exposure of Resource to Wrong Sphere and Insecure Temporary File

Also known as GHSA-g4mq-6fp5-qwcf, PYSEC-2020-5

Mitigation

  • Upgrade ansible to one of 2.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6 (or later in the same release line).

Who should check

  • Projects that depend on PyPI package ansible (< 2.7.17)
  • Anyone running Red Hat Ansible 2.7.17 and prior; 2.8.9 and prior; 2.9.6 and prior

Vulnerability facts

Affected
ansible < 2.7.17
Fixed in
2.7.17, 2.8.11, 2.9.7, 2.8.8, 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
5.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:LOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: High
  • Privileges required: Low
  • User interaction: Required
  • Scope: Changed (impact reaches other components)
  • Confidentiality impact: Low
  • Integrity impact: Low
  • Availability impact: Low
EPSS
0.40% chance of exploitation in 30 days (percentile 26, 2026-11-26)
CWE
CWE-377
Published
Modified

Description

A race condition flaw was found in Ansible Engine 2.7.17 and prior, 2.8.9 and prior, 2.9.6 and prior when running a playbook with an unprivileged become user. When Ansible needs to run a module with become user, the temporary directory is created in /var/tmp. This directory is created with "umask 77 && mkdir -p <dir>"; this operation does not fail if the directory already exists and is owned by another user. An attacker could take advantage to gain control of the become user as the target directory can be retrieved by iterating '/proc/<pid>/cmdline'.

Affected and fixed versions

Package / productAffectedFixedSource
PyPI ansible< 2.7.172.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6osv
Red Hat Ansible2.7.17 and prior; 2.8.9 and prior; 2.9.6 and prior—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-1733. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-1733.md
Affected: ansible < 2.7.17
Fixed in: 2.7.17, 2.8.11, 2.9.7, 2.8.8, 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

FAQ

Is CVE-2020-1733 being exploited?

There is no confirmed exploitation: CVE-2020-1733 is not in the CISA Known Exploited Vulnerabilities catalog. Public exploit code or a proof of concept is available. EPSS estimates a 0.40% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2020-1733?

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. The attack needs conditions outside the attacker's control, which makes it harder.

Which versions are affected by CVE-2020-1733?

ansible < 2.7.17.

Is there a fix for CVE-2020-1733?

Yes. Fixed in 2.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6. Upgrade ansible to one of 2.7.17, 2.8.11, 2.9.7, 2.8.8, 2.9.6 (or later in the same release line).

How do I check if I'm affected by CVE-2020-1733?

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.

Sponsors