Arbitrary Code Execution Affecting pyanyapi package, versions [,0.6.1]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (74th percentile)

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 Learn

Learn about Arbitrary Code Execution vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-PYANYAPI-40705
  • published28 Nov 2017
  • disclosed6 Nov 2017
  • creditJoel-MalwareBenchmark

Introduced: 6 Nov 2017

CVE-2017-16616  (opens in a new tab)
CWE-94  (opens in a new tab)

How 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.

CVSS Scores

version 3.1