PT-2022-6570 · Pypi+2 · Pillow+2

Hugovk

·

Published

2022-11-07

·

Updated

2024-03-06

·

CVE-2022-45199

CVSS v4.0

8.7

High

VectorAV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
Name of the Vulnerable Software and Affected Versions Pillow versions 9.2.0 through 9.2.x and prior to 9.3.0 can be simplified to: Pillow versions 9.2.0 through 9.3.0, but since 9.3.0 is the fixed version, the correct representation is: Pillow versions prior to 9.3.0
Description The issue is related to the Pillow library's handling of image decoding, specifically in the TiffImagePlugin.py module. A large value in the SAMPLESPERPIXEL tag can lead to a denial of service attack, causing memory and runtime exhaustion when setting up the context for image decoding.
Recommendations For Pillow versions prior to 9.3.0, update to version 9.3.0 or later to resolve the issue. As a temporary workaround, consider restricting the use of the TiffImagePlugin.py module or limiting the value of the SAMPLESPERPIXEL tag to prevent exploitation.

Fix

DoS

Resource Exhaustion

Weakness Enumeration

Related Identifiers

ALT-PU-2022-3019
ALT-PU-2023-7942
ALT-PU-2023-8182
BDU:2023-02448
BIT-PILLOW-2022-45199
CVE-2022-45199
GHSA-Q4MP-JVH2-76FJ
OESA-2022-2113
OESA-2023-1024
PYSEC-2022-42980

Affected Products

Alt Linux
Pillow
Red Os