Improper Input Validation Affecting py3-yaml package, versions <5.4-r0


Severity

Recommended
0.0
critical
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
5.98% (93rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ALPINE321-PY3YAML-8485555
  • published6 Dec 2024
  • disclosed9 Feb 2021

Introduced: 9 Feb 2021

CVE-2020-14343  (opens in a new tab)
CWE-20  (opens in a new tab)

How to fix?

Upgrade Alpine:3.21 py3-yaml to version 5.4-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream py3-yaml package and not the py3-yaml package as distributed by Alpine. See How to fix? for Alpine:3.21 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1