CVE catalog

CVE-2020-1740

ansible affected and fixed versions

[CVE catalog]

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.9CVSS: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 / releasePackageVersionStatusSource
Debiantrixieansible12.0.0+dfsg-0+deb13u1Fixed[CVE-2020-1740]
Debiantrixieansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debiansidansible14.4.0+dfsg-1Fixed[CVE-2020-1740]
Debiansidansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debianforkyansible14.0.0+dfsg-1Fixed[CVE-2020-1740]
Debianforkyansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debianbookwormansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debianbookwormansible7.7.0+dfsg-3+deb12u1Fixed[CVE-2020-1740]

Showing 8 fix observations. All 22 observations, including unknown and conflicting reports, are available below.

Provider details and historical evidence
Distribution / releasePackageVersionStatusSource
Alpine3.10ansible2.8.11-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Alpine3.11ansible2.9.7-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Alpine3.12ansible2.9.7-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Alpine3.13ansible-base2.9.7-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Alpine3.14ansible-base2.9.7-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Alpine3.9ansible2.7.17-r0UnknownSource applicability is not established[ALPINE-CVE-2020-1740]
Debianbookwormansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debianbookwormansible7.7.0+dfsg-3+deb12u1Fixed[CVE-2020-1740]
Debianforkyansible14.0.0+dfsg-1Fixed[CVE-2020-1740]
Debianforkyansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debiansidansible14.4.0+dfsg-1Fixed[CVE-2020-1740]
Debiansidansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Debiantrixieansible12.0.0+dfsg-0+deb13u1Fixed[CVE-2020-1740]
Debiantrixieansible2.9.7+dfsg-1FixedDistribution-reported fixed boundary[CVE-2020-1740]
Ubuntuproansible2.8.3+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.8.6+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.2+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.4+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.6+dfsg-1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.6+dfsg-1ubuntu0.1~esm1UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.6+dfsg-1ubuntu0.1~esm2UnknownSource applicability is not established[UBUNTU-CVE-2020-1740]
Ubuntuproansible2.9.6+dfsg-1ubuntu0.1~esm3UnknownSource 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 · bookworm

      Fixed · Fixed: 2.9.7+dfsg-1

      dsa · ansible · debian · bookworm; dsa · ansible · debian · 12

    • 7.7.0+dfsg-3+deb12u1 · all · bookworm

      Fixed · Fixed: 2.9.7+dfsg-1

      dsa · ansible · debian · bookworm; dsa · ansible · debian · 12

[Debian 13 (Trixie)]

  • [ansible]Unknown
    Details (2)
    • 12.0.0+dfsg-0+deb13u1 · all · trixie

      Fixed · Fixed: 2.9.7+dfsg-1

      dsa · ansible · debian · 13

    • 12.0.0+dfsg-0+deb13u1 · all · trixie

      Fixed · Fixed: 2.9.7+dfsg-1

      dsa · ansible · debian · 13

Observed:

References