OESA-2021-1257

Source
https://www.openeuler.org/en/security/security-bulletins/detail/?id=openEuler-SA-2021-1257
Import Source
https://repo.openeuler.org/security/data/osv/OESA-2021-1257.json
JSON Data
https://api.test.osv.dev/v1/vulns/OESA-2021-1257
Upstream
Published
2021-07-03T11:03:02Z
Modified
2025-08-12T05:05:16.014714Z
Summary
PyYAML security update
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)

Database specific
{
    "severity": "Critical"
}
References

Affected packages

openEuler:20.03-LTS-SP1 / PyYAML

Package

Name
PyYAML
Purl
pkg:rpm/openEuler/PyYAML&distro=openEuler-20.03-LTS-SP1

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
pyyaml-5.3.1-4.oe1

Ecosystem specific

{
    "src": [
        "pyyaml-5.3.1-4.oe1.src.rpm"
    ],
    "aarch64": [
        "python3-pyyaml-5.3.1-4.oe1.aarch64.rpm",
        "pyyaml-debuginfo-5.3.1-4.oe1.aarch64.rpm",
        "pyyaml-debugsource-5.3.1-4.oe1.aarch64.rpm"
    ],
    "x86_64": [
        "pyyaml-debuginfo-5.3.1-4.oe1.x86_64.rpm",
        "python3-pyyaml-5.3.1-4.oe1.x86_64.rpm",
        "pyyaml-debugsource-5.3.1-4.oe1.x86_64.rpm"
    ]
}