GLSA-202211-10 : Pillow: Multiple Vulnerabilities

critical Nessus Plugin ID 168046

Description

The remote host is affected by the vulnerability described in GLSA-202211-10 (Pillow: Multiple Vulnerabilities)

- The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function. (CVE-2021-23437)

- Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.
(CVE-2021-34552)

- path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path. (CVE-2022-22815)

- path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path. (CVE-2022-22816)

- PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method. A lambda expression could also be used, (CVE-2022-22817)

- Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.
(CVE-2022-24303)

- Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
(CVE-2022-45198)

- Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL. (CVE-2022-45199)

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

Solution

All Pillow users should upgrade to the latest version:

# emerge --sync # emerge --ask --oneshot --verbose >=dev-python/pillow-9.3.0

See Also

https://security.gentoo.org/glsa/202211-10

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

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

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

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

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

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

Plugin Details

Severity: Critical

ID: 168046

File Name: gentoo_GLSA-202211-10.nasl

Version: 1.3

Type: local

Published: 11/22/2022

Updated: 10/3/2023

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: High

Base Score: 7.5

Temporal Score: 5.9

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

CVSS Score Source: CVE-2022-22817

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

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:P/RL:O/RC:C

Vulnerability Information

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

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

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 11/22/2022

Vulnerability Publication Date: 7/13/2021

Reference Information

CVE: CVE-2021-23437, CVE-2021-34552, CVE-2022-22815, CVE-2022-22816, CVE-2022-22817, CVE-2022-24303, CVE-2022-45198, CVE-2022-45199