{"id":"ALPINE-CVE-2020-1733","details":"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 \u003cdir\u003e\"; 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/\u003cpid\u003e/cmdline'.","modified":"2026-03-09T01:17:02.769720Z","published":"2020-03-11T19:15:13.030Z","upstream":["CVE-2020-1733"],"references":[{"type":"ADVISORY","url":"https://security.alpinelinux.org/vuln/CVE-2020-1733"}],"affected":[{"package":{"name":"ansible","ecosystem":"Alpine:v3.10","purl":"pkg:apk/alpine/ansible?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.8.11-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.9-r0","2.7.9-r1","2.8.0-r1","2.8.1-r0","2.8.3-r0","2.8.4-r0","2.8.6-r0","2.8.8-r0","2.8.9-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}},{"package":{"name":"ansible","ecosystem":"Alpine:v3.11","purl":"pkg:apk/alpine/ansible?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.7-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.9-r0","2.7.9-r1","2.8.0-r1","2.8.1-r0","2.8.2-r0","2.8.3-r0","2.8.4-r0","2.8.6-r0","2.8.6-r1","2.8.6-r2","2.8.6-r3","2.9.1-r0","2.9.3-r0","2.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}},{"package":{"name":"ansible","ecosystem":"Alpine:v3.12","purl":"pkg:apk/alpine/ansible?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.7-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.9-r0","2.7.9-r1","2.8.0-r1","2.8.1-r0","2.8.2-r0","2.8.3-r0","2.8.4-r0","2.8.6-r0","2.8.6-r1","2.8.6-r2","2.8.6-r3","2.9.1-r0","2.9.2-r0","2.9.2-r1","2.9.3-r0","2.9.4-r0","2.9.5-r0","2.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}},{"package":{"name":"ansible","ecosystem":"Alpine:v3.9","purl":"pkg:apk/alpine/ansible?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.17-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.12-r0","2.7.13-r0","2.7.14-r0","2.7.16-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}},{"package":{"name":"ansible-base","ecosystem":"Alpine:v3.13","purl":"pkg:apk/alpine/ansible-base?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.7-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.9-r0","2.7.9-r1","2.8.0-r1","2.8.1-r0","2.8.2-r0","2.8.3-r0","2.8.4-r0","2.8.6-r0","2.8.6-r1","2.8.6-r2","2.8.6-r3","2.9.1-r0","2.9.2-r0","2.9.2-r1","2.9.3-r0","2.9.4-r0","2.9.5-r0","2.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}},{"package":{"name":"ansible-base","ecosystem":"Alpine:v3.14","purl":"pkg:apk/alpine/ansible-base?arch=source"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.9.7-r0"}]}],"versions":["0.3.1-r0","0.4-r0","0.5-r0","0.7-r0","0.7.1-r0","0.8-r0","0.9-r0","1.0-r0","1.0-r1","1.1-r0","1.1-r1","1.2-r1","1.2.1-r1","1.2.2-r0","1.2.3-r0","1.3.3-r0","1.3.4-r0","1.4.1-r0","1.4.3-r0","1.4.5-r0","1.5.0-r0","1.5.4-r0","1.5.5-r0","1.6.1-r0","1.6.5-r0","1.6.6-r0","1.6.7-r0","1.7.0-r0","1.7.1-r0","1.7.2-r0","1.8.0-r0","1.8.2-r0","1.8.4-r0","1.9.2-r0","1.9.2-r1","1.9.3-r0","1.9.3-r1","1.9.4-r0","2.0.0.2-r0","2.0.0.2-r1","2.0.1.0-r1","2.1.0.0-r0","2.1.1.0-r0","2.1.2.0-r0","2.2.0.0-r0","2.2.1.0-r0","2.2.1.0-r1","2.2.2.0-r0","2.3.0.0-r0","2.3.0.0-r1","2.3.1.0-r0","2.3.2.0-r0","2.4.0.0-r0","2.4.1.0-r0","2.4.2.0-r0","2.4.3.0-r0","2.5.0-r0","2.5.2-r0","2.5.4-r0","2.5.5-r0","2.6.0-r0","2.6.1-r0","2.6.3-r0","2.7.0-r0","2.7.0-r1","2.7.9-r0","2.7.9-r1","2.8.0-r1","2.8.1-r0","2.8.2-r0","2.8.3-r0","2.8.4-r0","2.8.6-r0","2.8.6-r1","2.8.6-r2","2.8.6-r3","2.9.1-r0","2.9.2-r0","2.9.2-r1","2.9.3-r0","2.9.4-r0","2.9.5-r0","2.9.6-r0"],"ecosystem_specific":{},"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/alpine/ALPINE-CVE-2020-1733.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"}]}