CVE-2017-16616
CRITICAL 9.8CVSS 3.0Unsafe pyyaml load usage in PyAnyAPI
An exploitable vulnerability exists in the YAML parsing functionality in the YAMLParser method in Interfaces.py in PyAnyAPI before 0.6.1. A YAML parser can execute arbitrary Python commands resulting in command execution because load is used where safe_load should have been used. An attacker can insert Python into loaded YAML to trigger this vulnerability.
- Published
- 8 Nov 2017
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-502
- Also known as
- GHSA-vg8g-jpm9-jh8rPYSEC-2017-23
- Sources
- NVDJSONOSV GHSA-vg8g-jpm9-jh8rJSONOSV PYSEC-2017-23JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | CRITICAL 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pyanyapi_project | pyanyapicpe:2.3:a:pyanyapi_project:pyanyapi:*:*:*:*:*:*:*:* |
< 0.6.1 | 0.6.1 |
| OSV | PyPI | pyanyapi | < 0.6.1 | 0.6.1 |
References
- https://github.com/Stranger6667/pyanyapi/issues/41 · Issue Tracking, WEB, REPORT
- https://github.com/Stranger6667/pyanyapi/releases/tag/0.6.1 · Release Notes, WEB
- https://joel-malwarebenchmark.github.io/blog/2017/11/08/cve-2017-16616-yamlparser-in-pyanyapi/ · Third Party Advisory, WEB, ARTICLE
- https://pypi.python.org/pypi/pyanyapi/0.6.1 · Product, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2017-16616 · ADVISORY
- https://github.com/Stranger6667/pyanyapi/commit/810db626c18ebc261d5f4299d0f0eac38d5eb3cf · WEB
- https://github.com/Stranger6667/pyanyapi · PACKAGE
- https://github.com/advisories/GHSA-vg8g-jpm9-jh8r · ADVISORY
- https://github.com/pypa/advisory-database/tree/main/vulns/pyanyapi/PYSEC-2017-23.yaml · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 8 Nov 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 8 Nov 2017)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 13 May 2022)