
CVE catalog
CVE-2020-1740
ansible affected and fixed versions
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.
- Severity
- Low · CVSS 3.9
CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.36% · Oct 27, 2026
Projects and upstream resources
Reported versions and fixes
Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Debiantrixie | ansible | 12.0.0+dfsg-0+deb13u1 | Fixed | [CVE-2020-1740] |
| Debiantrixie | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debiansid | ansible | 14.4.0+dfsg-1 | Fixed | [CVE-2020-1740] |
| Debiansid | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debianforky | ansible | 14.0.0+dfsg-1 | Fixed | [CVE-2020-1740] |
| Debianforky | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debianbookworm | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debianbookworm | ansible | 7.7.0+dfsg-3+deb12u1 | Fixed | [CVE-2020-1740] |
Showing 8 fix observations. All 22 observations, including unknown and conflicting reports, are available below.
Provider details and historical evidence
| Distribution / release | Package | Version | Status | Source |
|---|---|---|---|---|
| Alpine3.10 | ansible | 2.8.11-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Alpine3.11 | ansible | 2.9.7-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Alpine3.12 | ansible | 2.9.7-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Alpine3.13 | ansible-base | 2.9.7-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Alpine3.14 | ansible-base | 2.9.7-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Alpine3.9 | ansible | 2.7.17-r0 | UnknownSource applicability is not established | [ALPINE-CVE-2020-1740] |
| Debianbookworm | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debianbookworm | ansible | 7.7.0+dfsg-3+deb12u1 | Fixed | [CVE-2020-1740] |
| Debianforky | ansible | 14.0.0+dfsg-1 | Fixed | [CVE-2020-1740] |
| Debianforky | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debiansid | ansible | 14.4.0+dfsg-1 | Fixed | [CVE-2020-1740] |
| Debiansid | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Debiantrixie | ansible | 12.0.0+dfsg-0+deb13u1 | Fixed | [CVE-2020-1740] |
| Debiantrixie | ansible | 2.9.7+dfsg-1 | FixedDistribution-reported fixed boundary | [CVE-2020-1740] |
| Ubuntupro | ansible | 2.8.3+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.8.6+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.2+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.4+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.6+dfsg-1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.6+dfsg-1ubuntu0.1~esm1 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.6+dfsg-1ubuntu0.1~esm2 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
| Ubuntupro | ansible | 2.9.6+dfsg-1ubuntu0.1~esm3 | UnknownSource applicability is not established | [UBUNTU-CVE-2020-1740] |
Original provider fields
{
"package_releases": [
{
"name": "ansible",
"status": "fixed",
"release": "sid",
"version": "14.4.0+dfsg-1"
},
{
"name": "ansible",
"status": "fixed",
"release": "forky",
"version": "14.0.0+dfsg-1"
},
{
"name": "ansible",
"status": "fixed",
"release": "trixie",
"version": "12.0.0+dfsg-0+deb13u1"
},
{
"name": "ansible",
"status": "fixed",
"release": "bookworm",
"version": "7.7.0+dfsg-3+deb12u1"
}
],
"fixed_versions": [
{
"bug": null,
"name": "ansible",
"type": "source",
"origin": null,
"release": "sid",
"urgency": "not yet assigned",
"fixed_version": "2.9.7+dfsg-1"
},
{
"bug": null,
"name": "ansible",
"type": "source",
"origin": null,
"release": "forky",
"urgency": "not yet assigned",
"fixed_version": "2.9.7+dfsg-1"
},
{
"bug": null,
"name": "ansible",
"type": "source",
"origin": null,
"release": "trixie",
"urgency": "not yet assigned",
"fixed_version": "2.9.7+dfsg-1"
},
{
"bug": null,
"name": "ansible",
"type": "source",
"origin": null,
"release": "bookworm",
"urgency": "not yet assigned",
"fixed_version": "2.9.7+dfsg-1"
}
],
"distribution_packages": [
{
"name": "ansible",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.8.11-r0"
}
]
}
],
"release": "3.10",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.8.11-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.9.7-r0"
}
]
}
],
"release": "3.11",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.9.7-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.9.7-r0"
}
]
}
],
"release": "3.12",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.9.7-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "2.8.0"
},
{
"fixed": "2.7.17-r0"
}
]
}
],
"release": "3.9",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.7.17-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible-base",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.9.7-r0"
}
]
}
],
"release": "3.13",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.9.7-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible-base",
"distro": "alpine",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.9.7-r0"
}
]
}
],
"release": "3.14",
"versions": [],
"ecosystem": "apk",
"provider_url": "https://osv.dev/vulnerability/ALPINE-CVE-2020-1740",
"fixed_version": "2.9.7-r0",
"provider_source": "pypi",
"provider_record_id": "ALPINE-CVE-2020-1740",
"provider_updated_at": "2026-10-26T11:17:55.144541930Z",
"applicability_unknown": true
},
{
"name": "ansible",
"distro": "ubuntu",
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"release": "pro",
"versions": [
"2.8.3+dfsg-1",
"2.8.6+dfsg-1",
"2.9.2+dfsg-1",
"2.9.4+dfsg-1",
"2.9.6+dfsg-1",
"2.9.6+dfsg-1ubuntu0.1~esm1",
"2.9.6+dfsg-1ubuntu0.1~esm2",
"2.9.6+dfsg-1ubuntu0.1~esm3"
],
"ecosystem": "deb",
"provider_url": "https://osv.dev/vulnerability/UBUNTU-CVE-2020-1740",
"fixed_version": "",
"provider_source": "pypi",
"provider_record_id": "UBUNTU-CVE-2020-1740",
"provider_updated_at": "2025-09-08T16:45:55Z",
"applicability_unknown": true
}
]
}OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
[Debian 12 (Bookworm)]
- [ansible]Unknown
Details (2)
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
2.9.7+dfsg-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
7.7.0+dfsg-3+deb12u1· all · bookwormFixed · Fixed:
2.9.7+dfsg-1dsa · ansible · debian · bookworm; dsa · ansible · debian · 12
[Debian 13 (Trixie)]
- [ansible]Unknown
Details (2)
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
2.9.7+dfsg-1dsa · ansible · debian · 13
12.0.0+dfsg-0+deb13u1· all · trixieFixed · Fixed:
2.9.7+dfsg-1dsa · ansible · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_10944-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2020-1740]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2020-1740]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2020-1740]
- [https://security-tracker.debian.org/tracker/CVE-2020-1740]
- [https://security.access.redhat.com/data/csaf/v2/vex/2020/cve-2020-1740.json]
- [https://wid.cert-bund.de/.well-known/csaf/white/2020/wid-sec-w-2023-2478.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]