Arbitrary Code Execution Affecting knack package, versions [,0.5.2)


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-KNACK-450215
  • published20 Jun 2019
  • disclosed6 Feb 2019
  • creditUnknown

Introduced: 6 Feb 2019

CVE NOT AVAILABLE CWE-94  (opens in a new tab)

How to fix?

Upgrade knack to version 0.5.2 or higher.

Overview

knack is a Python command line interface framework.

Affected versions of this package are vulnerable to Arbitrary Code Execution due to using the insecure yaml.load() function. Default behavior of PyYAML's yaml.load() method is unsafe and can execute code stored in yaml files.

CVSS Base Scores

version 3.1