GLSA-202003-45 : PyYAML: Arbitrary code execution

critical Nessus Plugin ID 134731

Synopsis

The remote Gentoo host is missing one or more security-related patches.

Description

The remote host is affected by the vulnerability described in GLSA-202003-45 (PyYAML: Arbitrary code execution)

It was found that using yaml.load() API on untrusted input could lead to arbitrary code execution.
Impact :

A remote attacker could entice a user to process specially crafted input in an application using yaml.load() from PyYAML, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.
Workaround :

There is no known workaround at this time.

Solution

All PyYAML users should upgrade to the latest version:
# emerge --sync # emerge --ask --oneshot --verbose '>=dev-python/pyyaml-5.1'

See Also

https://security.gentoo.org/glsa/202003-45

Plugin Details

Severity: Critical

ID: 134731

File Name: gentoo_GLSA-202003-45.nasl

Version: 1.3

Type: local

Published: 3/20/2020

Updated: 3/21/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.9

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.5

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2017-18342

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.5

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

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:gentoo:linux:pyyaml, cpe:/o:gentoo:linux

Required KB Items: Host/local_checks_enabled, Host/Gentoo/release, Host/Gentoo/qpkg-list

Exploit Ease: No known exploits are available

Patch Publication Date: 3/19/2020

Vulnerability Publication Date: 6/27/2018

Reference Information

CVE: CVE-2017-18342

GLSA: 202003-45