GLSA-202402-33 : PyYAML: Arbitrary Code Execution

critical Nessus Plugin ID 190999

Description

The remote host is affected by the vulnerability described in GLSA-202402-33 (PyYAML: Arbitrary Code Execution)

- 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)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

All PyYAML users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=dev-python/pyyaml-5.4

See Also

https://security.gentoo.org/glsa/202402-33

https://bugs.gentoo.org/show_bug.cgi?id=766228

Plugin Details

Severity: Critical

ID: 190999

File Name: gentoo_GLSA-202402-33.nasl

Version: 1.0

Type: local

Published: 2/26/2024

Updated: 2/26/2024

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

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

CVSS Score Source: CVE-2020-14343

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: cpe:/o:gentoo:linux, p-cpe:/a:gentoo:linux:pyyaml

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

Exploit Ease: No known exploits are available

Patch Publication Date: 2/26/2024

Vulnerability Publication Date: 1/21/2021

Reference Information

CVE: CVE-2020-14343