7.5high
CVE-2017-2809
Code injection in ansible
Also known as GHSA-c2w9-48qc-qpj4, PYSEC-2017-5
Published 9 y ago · modified 4 mo ago · JSON
CVSS
7.5
v3.0 · CNA
CISA KEV
No
not known exploited
EPSS
3.0%
percentile 87%
Public exploits
0
none known
Summary
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.
Exploit prediction (EPSS)
2.98% probability of exploitation in the next 30 days, higher than 87% of all scored CVEs.
CVSS scores
| Assigned by | Version | Score | Vector |
|---|---|---|---|
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| CNA | 3.0 | 7.5 | CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 7.8 | CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| pypi | ansible-vault | <1.0.5 | 1.0.5 |
Affected products
- Tomohiro Nakamura ansible-vault
Classification
- Weakness
- CWE-94 Improper Control of Generation of Code
References
- securityfocus.com /bid/100824 · vdb-entry, x_refsource_BID, x_transferred
- github.com /tomoh1r/ansible-vault/blob/v1.0.5/CHANGES.txt · x_refsource_CONFIRM, x_transferred
- github.com /tomoh1r/ansible-vault/issues/4 · x_refsource_CONFIRM, x_transferred
- github.com /tomoh1r/ansible-vault/commit/3f8f659ef443ab870bb19f95d43543470168ae04 · x_refsource_CONFIRM, x_transferred
- talosintelligence.com /vulnerability_reports/TALOS-2017-0305 · x_refsource_MISC, x_transferred
- nvd.nist.gov /vuln/detail/CVE-2017-2809 · advisory
- github.com /advisories/GHSA-c2w9-48qc-qpj4 · advisory
- github.com /pypa/advisory-database/tree/main/vulns/ansible-vault/PYSEC-2017-5.yaml · web
- github.com /tomoh1r/ansible-vault · package
- web.archive.org /web/20171206173637/http://www.securityfocus.com/bid/100824 · web
Sources
- CVE List: CVE-2017-2809
- GitHub Advisory: GHSA-c2w9-48qc-qpj4
- NVD: CVE-2017-2809
- OSV: PYSEC-2017-5
vulnwire keeps one entry per vulnerability: the CVE id wins, then GHSA; records that alias each other are merged. Machine-readable: JSON.