CVE-2021-4041: Improper Encoding or Escaping of Output
(updated )
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.
References
- access.redhat.com/security/cve/CVE-2021-4041
- bugzilla.redhat.com/show_bug.cgi?id=2028074
- github.com/advisories/GHSA-6j58-grhv-2769
- github.com/ansible/ansible-runner/commit/3533f265f4349a3f2a0283158cd01b59a6bbc7bd
- github.com/pypa/advisory-database/tree/main/vulns/ansible-runner/PYSEC-2022-253.yaml
- nvd.nist.gov/vuln/detail/CVE-2021-4041
Code Behaviors & Features
Detect and mitigate CVE-2021-4041 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →