Arbitrary Code Execution Affecting pyyaml package, versions [0,5.3.1)


0.0
critical

Snyk CVSS

    Attack Complexity Low
    Confidentiality High
    Integrity High
    Availability High
Expand this section
RHEL
9.8 critical
Expand this section
SUSE
8.8 high
Expand this section
NVD
9.8 critical

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-PYYAML-559098
  • published 2 Mar 2020
  • disclosed 2 Mar 2020
  • credit Riccardo Schirone (Red Hat)

How to fix?

Upgrade PyYAML to version 5.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Arbitrary Code Execution. It is susceptible to arbitrary code execution when it processes untrusted YAML files through the full_load method or with the FullLoader loader. Applications that use the library to process untrusted input may be vulnerable to this flaw. An attacker could use this flaw to execute arbitrary code on the system by abusing the python/object/new constructor.