ansible — security advisory
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 "; 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//cmdline'.
- Products
- ansible
- Affected versions
- Not specified
- Fixed versions
- 2.9.7+dfsg-1
- CVEs
- CVE-2020-1733
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 13:28 UTC · Revision 1
Source evidence
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 "; 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//cmdline'.
osv:DEBIAN-CVE-2020-1733
ansible
Fixed versions: 2.9.7+dfsg-1
ansible
Fixed versions: 2.9.7+dfsg-1
ansible
Fixed versions: 2.9.7+dfsg-1
Complete source record
{
"id": "7184bab4b83d8001fc203a4685bf55872f8baf56f2ffa8307cf6c2c8d1e309fb",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-1733",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2020-1733",
"summary": "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 \"; 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//cmdline'.",
"evidence": "osv:DEBIAN-CVE-2020-1733",
"products": [
{
"name": {
"value": "ansible",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.9.7+dfsg-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ansible",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.9.7+dfsg-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ansible",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.9.7+dfsg-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "DEBIAN-CVE-2020-1733",
"aliases": [
"DEBIAN-CVE-2020-1733"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.9.7+dfsg-1"
}
]
}
],
"package": {
"name": "ansible",
"purl": "pkg:deb/debian/ansible?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-1733.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.9.7+dfsg-1"
}
]
}
],
"package": {
"name": "ansible",
"purl": "pkg:deb/debian/ansible?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-1733.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.9.7+dfsg-1"
}
]
}
],
"package": {
"name": "ansible",
"purl": "pkg:deb/debian/ansible?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2020-1733.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T12:02:28.132402607Z",
"provider": "osv",
"upstream": [
"CVE-2020-1733"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2020-1733"
]
},
"related_cves": [
{
"value": "CVE-2020-1733",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 452284,
"published_at": "2020-03-11T19:15:13.03+00:00"
}