ADVISORIES

openEuler Security Advisory

OESA-2021-1257

PyYAML security update

Critical CVE-2020-14343

Details

YAML is a data serialization format designed for human readability and interaction with scripting languages. PyYAML is a YAML parser and emitter for Python. PyYAML features a complete YAML 1.1 parser, Unicode support, pickle support, capable extension API, and sensible error messages. PyYAML supports standard YAML tags and provides Python-specific tags that allow to represent an arbitrary Python object. PyYAML is applicable for a broad range of tasks from complex configuration files to object serialization and persistence.

Security Fix(es):

A vulnerability was discovered in the PyYAML library in versions before 5.4, 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. This flaw allows an attacker to execute arbitrary code on the system by abusing the python/object/new constructor. This flaw is due to an incomplete fix for CVE-2020-1747.(CVE-2020-14343)

Affected packages

EcosystemPackageAffected versions
openEuler:20.03-LTS-SP1PyYAML
All versions before pyyaml-5.3.1-4.oe1 (fixed in pyyaml-5.3.1-4.oe1)

References