ansible — security advisory
A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.
- Products
- ansible
- Affected versions
- Not specified
- Fixed versions
- 2.9.7+dfsg-1
- CVEs
- CVE-2020-10684
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 12:28 UTC · Revision 1
Source evidence
A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.
osv:DEBIAN-CVE-2020-10684
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": "715dfce1ae377bea29ffe72c78cdbf93c615c52d1e79f0b0c62b0bc781e17661",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2020-10684",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2020-10684",
"summary": "A flaw was found in Ansible Engine, all versions 2.7.x, 2.8.x and 2.9.x prior to 2.7.17, 2.8.9 and 2.9.6 respectively, when using ansible_facts as a subkey of itself and promoting it to a variable when inject is enabled, overwriting the ansible_facts after the clean. An attacker could take advantage of this by altering the ansible_facts, such as ansible_hosts, users and any other key data which would lead into privilege escalation or code injection.",
"evidence": "osv:DEBIAN-CVE-2020-10684",
"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": "high",
"structured": {
"id": "DEBIAN-CVE-2020-10684",
"aliases": [
"DEBIAN-CVE-2020-10684"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H"
}
],
"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-10684.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-10684.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-10684.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-26T12:00:15.452912373Z",
"provider": "osv",
"upstream": [
"CVE-2020-10684"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2020-10684"
]
},
"related_cves": [
{
"value": "CVE-2020-10684",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 451040,
"published_at": "2020-03-24T14:15:12.327+00:00"
}