HighFix available
ansible-runner — security advisory
A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.
- Products
- ansible-runner
- Affected versions
- Not specified
- Fixed versions
- 2.1.1-1
- CVEs
- CVE-2021-4041
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 23:57 UTC · Revision 1
Source evidence
A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.
osv:DEBIAN-CVE-2021-4041
ansible-runner
Fixed versions: 2.1.1-1
ansible-runner
Fixed versions: 2.1.1-1
ansible-runner
Fixed versions: 2.1.1-1
Complete source record
{
"id": "27559532bed9575ed64eadd3652cfae4abbf3de45f28eedf47b07cb2afa670f9",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2021-4041",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2021-4041",
"summary": "A flaw was found in ansible-runner. An improper escaping of the shell command, while calling the ansible_runner.interface.run_command, can lead to parameters getting executed as host's shell command. A developer could unintentionally write code that gets executed in the host rather than the virtual environment.",
"evidence": "osv:DEBIAN-CVE-2021-4041",
"products": [
{
"name": {
"value": "ansible-runner",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.1-1",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ansible-runner",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.1-1",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
},
{
"name": {
"value": "ansible-runner",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "2.1.1-1",
"evidence": "/affected/2/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2021-4041",
"aliases": [
"DEBIAN-CVE-2021-4041"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.1-1"
}
]
}
],
"package": {
"name": "ansible-runner",
"purl": "pkg:deb/debian/ansible-runner?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4041.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.1-1"
}
]
}
],
"package": {
"name": "ansible-runner",
"purl": "pkg:deb/debian/ansible-runner?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4041.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.1.1-1"
}
]
}
],
"package": {
"name": "ansible-runner",
"purl": "pkg:deb/debian/ansible-runner?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2021-4041.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
],
"modified": "2026-10-23T18:02:30.409070900Z",
"provider": "osv",
"upstream": [
"CVE-2021-4041"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2021-4041"
]
},
"related_cves": [
{
"value": "CVE-2021-4041",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 419562,
"published_at": "2022-08-24T16:15:09.37+00:00"
}