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


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High

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-KNACK-450215
  • published 20 Jun 2019
  • disclosed 6 Feb 2019
  • credit Unknown

Introduced: 6 Feb 2019

CVE NOT AVAILABLE CWE-94 Open this link 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.