CVE-2020-1740Redhat Ansible
Medium 4.7
Follow: this CVE · Redhat · Redhat Ansible We alert you by email or Slack (account required).
- Priority
- 28
- CVSS 3.1
- 4.7
- EPSS
- 0.4% probability of exploitation in 30 days · percentile 31
- Auth required
- Yes
- Published
- Mar 16, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
What happens
A flaw was found in Ansible Engine when using Ansible Vault for editing encrypted files. When a user executes "ansible-vault edit", another user on the same computer can read the old and new secret, as it is created in a temporary file with mkstemp and the returned file descriptor is closed and the method write_data is called to write the existing secret in the file. This method will delete the file before recreating it insecurely. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.
What to do
- Apply the vendor's security update for Ansible.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | ansible |
< 2.7.17 |
2.7.17 |
pip install "ansible>=2.7.17" |
| PyPI | ansible |
≥ 2.8.0a1 < 2.8.11 |
2.8.11 |
pip install "ansible>=2.8.11" |
| PyPI | ansible |
≥ 2.9.0a1 < 2.9.7 |
2.9.7 |
pip install "ansible>=2.9.7" |
| PyPI | ansible |
< 2.7.17 |
2.7.17 |
pip install "ansible>=2.7.17" |
| PyPI | ansible |
≥ 2.8.0 < 2.8.9 |
2.8.9 |
pip install "ansible>=2.8.9" |
| PyPI | ansible |
≥ 2.9.0 < 2.9.6 |
2.9.6 |
pip install "ansible>=2.9.6" |
Per OSV / GitHub Advisories (GHSA-vcg8-98q8-g7mj, PYSEC-2020-12). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | ansible | < 2.7.17 |
| redhat | ansible | ≥ 2.8.0 < 2.8.11 |
| redhat | ansible | ≥ 2.9.0 < 2.9.7 |
| redhat | ansible_tower | ≤ 3.3.4 |
| redhat | ansible_tower | ≥ 3.3.5 ≤ 3.4.5 |
| redhat | ansible_tower | ≥ 3.5.0 ≤ 3.5.5 |
| redhat | ansible_tower | ≥ 3.6.0 ≤ 3.6.3 |
| redhat | cloudforms_management_engine | 5.0 |
| redhat | openstack | 13 |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 10.0 |
| fedoraproject | fedora | 30 |
| fedoraproject | fedora | 31 |
| fedoraproject | fedora | 32 |
Official advisories
- ansible-14-14.6.0-1.1 on GA media · SUSE · openSUSE-SU-2026:12447-1 · Nov 6, 2026 Critical
- ansible-13-13.7.0-1.1 on GA media · SUSE · openSUSE-SU-2026:10944-1 · Jun 3, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com Issue Tracking Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.fedoraproject.org
- lists.fedoraproject.org
- lists.fedoraproject.org
- security.gentoo.org Third Party Advisory
- www.debian.org Third Party Advisory