Arbitrary Code Execution Affecting pyyaml package, versions [5.1b1,5.3.1)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
0.54% (78th 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-PYYAML-559098
  • published2 Mar 2020
  • disclosed2 Mar 2020
  • creditRiccardo Schirone (Red Hat)

Introduced: 2 Mar 2020

CVE-2020-1747  (opens in a new tab)
CWE-20  (opens in a new tab)

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.

CVSS Scores

version 3.1