VDB
Sign up
—

PYSEC-2020-96

Quick fix

PYSEC-2020-96 — pyyaml: upgrade to the fixed version with the command below.

pip install --upgrade 'pyyaml>=5.3.1'

Details

A vulnerability was discovered in the PyYAML library in versions before 5.3.1, where 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pyyaml
Introduced in: 5.1Fixed in: 5.3.1
Fixpip install --upgrade 'pyyaml>=5.3.1'

References