Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. PyYAML
  4. ›
  5. CVE-2020-14343

CVE-2020-14343: Improper Input Validation in PyYAML

March 25, 2021 (updated October 25, 2024)

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.

References

  • bugzilla.redhat.com/show_bug.cgi?id=1860466
  • github.com/SeldonIO/seldon-core/issues/2252
  • github.com/advisories/GHSA-8q59-q68h-6hv4
  • github.com/pypa/advisory-database/tree/main/vulns/pyyaml/PYSEC-2021-142.yaml
  • github.com/yaml/pyyaml
  • github.com/yaml/pyyaml/commit/a001f2782501ad2d24986959f0239a354675f9dc
  • github.com/yaml/pyyaml/issues/420
  • github.com/yaml/pyyaml/issues/420
  • nvd.nist.gov/vuln/detail/CVE-2020-14343
  • pypi.org/project/PyYAML
  • www.oracle.com/security-alerts/cpuapr2022.html
  • www.oracle.com/security-alerts/cpujul2022.html

Code Behaviors & Features

Detect and mitigate CVE-2020-14343 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 5.4

Fixed versions

  • 5.4

Solution

Upgrade to version 5.4 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation

Source file

pypi/PyYAML/CVE-2020-14343.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:10 +0000.