Arbitrary Code Execution Affecting pyanyapi package, versions [,0.6.1]
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-PYTHON-PYANYAPI-40705
- published 28 Nov 2017
- disclosed 6 Nov 2017
- credit Joel-MalwareBenchmark
Introduced: 6 Nov 2017
CVE-2017-16616 Open this link in a new tabHow to fix?
Upgrade pyanyapi
to version 0.6.1 or higher.
Overview
pyanyapi
is tools for convenient interface creation over various types of data in a declarative way.
Affected versions of the package are vulnerable to Arbitrary Code Execution. 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.