tomoh1r/ansible-vault · Security
Code injection in ansible
- GHSA ID
- GHSA-c2w9-48qc-qpj4
- CVE ID
- CVE-2017-2809
- Severity
- high
- Published
- Updated
- CVSS
- 7.8 · CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS v3
- 7.8 · CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CVSS v4
- 8.5 · 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
Description
An exploitable vulnerability exists in the yaml loading functionality of ansible-vault before 1.0.5. A specially crafted vault can execute arbitrary python commands resulting in command execution. An attacker can insert python into the vault to trigger this vulnerability.
CWEs
- CWE-94 · Improper Control of Generation of Code ('Code Injection')
References
- https://nvd.nist.gov/vuln/detail/CVE-2017-2809 ↗
- https://github.com/tomoh1r/ansible-vault/issues/4 ↗
- https://github.com/tomoh1r/ansible-vault/commit/3f8f659ef443ab870bb19f95d43543470168ae04 ↗
- https://github.com/advisories/GHSA-c2w9-48qc-qpj4 ↗
- https://github.com/tomoh1r/ansible-vault/blob/v1.0.5/CHANGES.txt ↗
- https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0305 ↗
- https://github.com/pypa/advisory-database/tree/main/vulns/ansible-vault/PYSEC-2017-5.yaml ↗
- https://web.archive.org/web/20171206173637/http://www.securityfocus.com/bid/100824 ↗