Vulnerabilities in pkg:pypi/pyanyapi
PACKAGECVE-2017-16616 is a CRITICAL (CVSS 9.8) unsafe pyyaml load usage vulnerability (CWE-502: Deserialization of Untrusted Data) affecting Pyanyapi libraries in the PyPI ecosystem. The issue involves unsafe pyyaml load usage in pyanyapi. Remediation is available by upgrading affected packages to version 0.6.1.
pkg:pypi/pyanyapi
Vulnerability advisories affecting package pkg:pypi/pyanyapi. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-vg8g-jpm9-jh8r | CVE-2017-16616 | CRITICAL | Unsafe pyyaml load usage in PyAnyAPI |
CVE-2017-16616 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2017-16616
To remediate this vulnerability, upgrade all affected Pyanyapi dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
pip install pyanyapi>=0.6.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
pip show pyanyapi
How to Check if You Are Affected
To determine whether your Python environment is affected by CVE-2017-16616, inspect your installed packages using pip:
pip show pyanyapi
Analyze the terminal output to locate any version of Pyanyapi in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.6.1), your application is affected.
Note: The pip show pyanyapi command checks currently installed packages in your active Python environment.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-502: Deserialization of Untrusted Data, where the product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid. In Pyanyapi, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2017-16616 Affected Pyanyapi Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
pyanyapi
|
PyPI |
< 0.6.1
|
0.6.1
|
References
Frequently Asked Questions
What is CVE-2017-16616?
Which Pyanyapi versions are affected?
What version fixes CVE-2017-16616?
Is pyanyapi affected?
What is the CVSS score of CVE-2017-16616?
What CWE is associated with CVE-2017-16616?
How can I check PyPI dependencies for CVE-2017-16616?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vg8g-jpm9-jh8r",
"modified" : "2024-10-21T20:51:43Z",
"published" : "2022-05-13T01:44:08Z",
"aliases" : [ "CVE-2017-16616" ],
"summary" : "Unsafe pyyaml load usage in PyAnyAPI",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "PyPI",
"name" : "pyanyapi"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "0.6.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-16616"
}, {
"type" : "WEB",
"url" : "https://github.com/Stranger6667/pyanyapi/issues/41"
}, {
"type" : "WEB",
"url" : "https://github.com/Stranger6667/pyanyapi/commit/810db626c18ebc261d5f4299d0f0eac38d5eb3cf"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Stranger6667/pyanyapi"
}, {
"type" : "WEB",
"url" : "https://github.com/Stranger6667/pyanyapi/releases/tag/0.6.1"
}, {
"type" : "ADVISORY",
"url" : "https://github.com/advisories/GHSA-vg8g-jpm9-jh8r"
}, {
"type" : "WEB",
"url" : "https://github.com/pypa/advisory-database/tree/main/vulns/pyanyapi/PYSEC-2017-23.yaml"
}, {
"type" : "WEB",
"url" : "https://joel-malwarebenchmark.github.io/blog/2017/11/08/cve-2017-16616-yamlparser-in-pyanyapi"
}, {
"type" : "WEB",
"url" : "https://pypi.python.org/pypi/pyanyapi/0.6.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-502" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2022-05-26T18:45:59Z",
"nvd_published_at" : "2017-11-08T03:29:00Z"
}
}