CVE-2021-4041
Ansible: Improper shell escaping in ansible-runner
Severity Score
7.8
*CVSS v3.1
Exploit Likelihood
*EPSS
Affected Versions
*CPE
Public Exploits
0
*Multiple Sources
Exploited in Wild
-
*KEV
Decision
-
*SSVC
Descriptions
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.
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.
*Credits:
N/A
CVSS Scores
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability
* Common Vulnerability Scoring System
SSVC
- Decision:-
Exploitation
Automatable
Tech. Impact
* Organization's Worst-case Scenario
Timeline
- 2021-12-02 CVE Reserved
- 2022-01-16 CVE Published
- 2024-03-31 EPSS Updated
- 2024-08-03 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-20: Improper Input Validation
- CWE-116: Improper Encoding or Escaping of Output
CAPEC
References (3)
URL | Tag | Source |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://bugzilla.redhat.com/show_bug.cgi?id=2028074 | 2022-01-11 | |
https://github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd | 2022-08-29 |
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2021-4041 | 2022-01-11 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Redhat Search vendor "Redhat" | Ansible Runner Search vendor "Redhat" for product "Ansible Runner" | < 2.1.0 Search vendor "Redhat" for product "Ansible Runner" and version " < 2.1.0" | - |
Affected
| ||||||
Redhat Search vendor "Redhat" | Ansible Runner Search vendor "Redhat" for product "Ansible Runner" | 2.1.0 Search vendor "Redhat" for product "Ansible Runner" and version "2.1.0" | alpha1 |
Affected
| ||||||
Redhat Search vendor "Redhat" | Ansible Runner Search vendor "Redhat" for product "Ansible Runner" | 2.1.0 Search vendor "Redhat" for product "Ansible Runner" and version "2.1.0" | alpha2 |
Affected
| ||||||
Redhat Search vendor "Redhat" | Ansible Runner Search vendor "Redhat" for product "Ansible Runner" | 2.1.0 Search vendor "Redhat" for product "Ansible Runner" and version "2.1.0" | beta1 |
Affected
|