{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"not yet assigned\"}"}}}], "affected": [{"vendor": "debian", "product": "python-ansible-runner-doc", "versions": [{"status": "affected", "version": "0", "lessThan": "2.1.1-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}, {"vendor": "debian", "product": "python3-ansible-runner", "versions": [{"status": "affected", "version": "0", "lessThan": "2.1.1-1", "versionType": "deb"}], "platforms": ["bookworm", "forky", "sid", "trixie"], "defaultStatus": "unaffected"}], "references": [{"url": "https://security-tracker.debian.org/tracker/CVE-2021-4041"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "79363d38-fa19-49d1-9214-5f28da3f3ac5", "shortName": "debian", "dateUpdated": "2022-08-24T15:11:13.000Z", "x_subShortName": "debian"}}, {"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 7.8, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"medium\"}"}}}], "affected": [{"vendor": "canonical", "product": "python3-ansible-runner", "versions": [{"status": "affected", "version": "0", "lessThan": "2.1.1-1", "versionType": "custom"}], "platforms": ["jammy"], "defaultStatus": "unaffected"}], "references": [{"url": "https://ubuntu.com/security/CVE-2021-4041"}, {"url": "https://www.cve.org/CVERecord?id=CVE-2021-4041"}], "descriptions": [{"lang": "en", "value": "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."}], "providerMetadata": {"orgId": "cc1ad9ee-3454-478d-9317-d3e869d708bc", "shortName": "canonical", "dateUpdated": "2022-08-24T16:15:00Z", "x_subShortName": "canonical"}}, {"metrics": [{"cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 7.8, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}, {"cvssV4_0": {"version": "4.0", "baseScore": 8.5, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N", "userInteraction": "PASSIVE", "attackComplexity": "LOW", "attackRequirements": "NONE", "privilegesRequired": "NONE", "subIntegrityImpact": "NONE", "vulnIntegrityImpact": "HIGH", "subAvailabilityImpact": "NONE", "vulnAvailabilityImpact": "HIGH", "subConfidentialityImpact": "NONE", "vulnConfidentialityImpact": "HIGH"}}, {"other": {"type": "Unknown", "content": {"data": "{\"description\":\"HIGH\"}"}}}], "affected": [{"vendor": "pypi", "product": "ansible-runner", "versions": [{"status": "affected", "version": "0", "lessThan": "2.1.0", "versionType": "custom"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/security/cve/CVE-2021-4041"}, {"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2028074"}, {"url": "https://github.com/advisories/GHSA-6j58-grhv-2769"}, {"url": "https://github.com/ansible/ansible-runner"}, {"url": "https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd"}, {"url": "https://github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-253.yaml"}, {"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-4041"}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "en", "value": "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."}, {"lang": "en", "value": "ansible-runner vulnerable to shell command injection"}], "providerMetadata": {"orgId": "28c92f92-d60d-412d-b760-e73465c3df22", "shortName": "pypi", "dateUpdated": "2022-08-24T16:15:00Z", "x_subShortName": "pypi"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 7.8, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "REQUIRED", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}], "affected": [{"cpes": ["cpe:2.3:a:redhat:ansible_runner:*:*:*:*:*:*:*:*", "cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha1:*:*:*:*:*:*", "cpe:2.3:a:redhat:ansible_runner:2.1.0:alpha2:*:*:*:*:*:*", "cpe:2.3:a:redhat:ansible_runner:2.1.0:beta1:*:*:*:*:*:*"], "vendor": "redhat", "product": "ansible_runner", "versions": [{"status": "affected", "version": "0", "lessThan": "2.1.0", "versionType": "custom"}, {"status": "affected", "version": "2.1.0"}], "defaultStatus": "unaffected"}], "references": [{"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2028074", "tags": ["issue-tracking", "patch", "vendor-advisory"]}, {"url": "https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd", "tags": ["patch", "third-party-advisory"]}, {"url": "https://access.redhat.com/security/cve/CVE-2021-4041", "tags": ["vendor-advisory"]}], "descriptions": [{"lang": "en", "value": "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."}, {"lang": "es", "value": "Se ha encontrado un fallo en ansible-runner. Un escape inapropiado del comando shell, mientras es llamado a ansible_runner.interface.run_command, puede conllevar a que los parámetros sean ejecutados como el comando shell del host. Un desarrollador podría escribir involuntariamente código que es ejecutado en el host en lugar de en el entorno virtual."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-116", "description": "CWE-116"}, {"lang": "en", "cweId": "CWE-20", "description": "CWE-20"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2022-08-24T16:15:09Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2021-4041", "state": "PUBLISHED", "dateUpdated": "2024-11-21T06:36:46Z", "assignerOrgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "datePublished": "2022-08-24T16:15:09Z", "assignerShortName": "redhat"}, "dataVersion": "5.0"}