CVE-2020-14343: Improper Input Validation in PyYAML

CVE-2020-14343 · Severity: low · CVSS 3.1 · Published 2021-02-09

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.

Technologies: PyYAML (PyPI). Vendors: PyPI.

Quick answers

Is CVE-2020-14343 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-14343 being exploited in the wild.
How severe is CVE-2020-14343?
Low severity, with a CVSS score of 3.1, published 9 February 2021.
Which products and versions are affected?
PyYAML (PyPI) ECOSYSTEM:introduced=0,fixed=5.4.
Is there a fix for CVE-2020-14343?
Yes. PyYAML (PyPI): upgrade to 5.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2020-14343?
Check whether you run PyYAML (PyPI) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • PyYAML (PyPI): upgrade to 5.4 or later
    pip install "PyYAML>=5.4"

Affected products

  • PyYAML (PyPI) ECOSYSTEM:introduced=0,fixed=5.4

Identifiers

  • CVE-2020-14343
  • GHSA-8q59-q68h-6hv4
  • PYSEC-2021-142

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.