CVE-2017-2809 json
Code injection in ansible
published 2017-09-14 9 y ago modified 2026-06-17 4 mo ago also GHSA-c2w9-48qc-qpj4 , PYSEC-2017-5 , EUVD-2017-0001
- cvss
- 7.5
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.0%
- EPSS 3.0% chance of exploitation in 30 days, 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.
Patch / fix
Exploit prediction
2.98% chance of exploitation in the next 30 days, higher than 87% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- talosintelligence.com https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0305 referenced PoC, tagged "exploit" by a source, unverified
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 |
| 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
-
github.com
/tomoh1r/ansible-vault/commit/3f8f659ef443ab870bb19f95d43543470168ae04
web, third-party-advisory, patch
-
talosintelligence.com
/vulnerability_reports/TALOS-2017-0305
web, exploit, third-party-advisory
-
securityfocus.com
/bid/100824
vdb-entry, third-party-advisory, web
-
github.com
/tomoh1r/ansible-vault/blob/v1.0.5/CHANGES.txt
web, third-party-advisory
-
github.com
/tomoh1r/ansible-vault/issues/4
web, third-party-advisory, report
-
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
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.