TencentOS Server 3: python-pillow (TSSA-2022:0012)

high Nessus Plugin ID 238675

Synopsis

The remote TencentOS Server 3 host is missing one or more security updates.

Description

The version of Tencent Linux installed on the remote TencentOS Server 3 host is prior to tested version. It is, therefore, affected by multiple vulnerabilities as referenced in the TSSA-2022:0012 advisory.

Package updates are available for TencentOS Server 3 that fix the following vulnerabilities:

CVE-2019-16865:
An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.

CVE-2020-11538:
In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files, a different issue than CVE-2020-5311.

CVE-2020-35655:
In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.

CVE-2020-5311:
libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.

CVE-2020-5313:
libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.

CVE-2021-27921:
Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.

CVE-2021-27923:
Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICO container, and thus an attempted memory allocation can be very large.

CVE-2021-28676:
An issue was discovered in Pillow before 8.2.0. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.

CVE-2021-28678:
An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.

CVE-2021-34552:
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-2022-22816:
path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.

CVE-2022-22817:
PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.

Tenable has extracted the preceding description block directly from the Tencent Linux security advisory.

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

Solution

Update the affected packages.

See Also

https://mirrors.tencent.com/tlinux/errata/tssa-20220012.xml

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2019-16865

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-11538

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-35655

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-5311

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-5313

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27921

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-27923

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28676

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-28678

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-34552

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22816

https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-22817

Plugin Details

Severity: High

ID: 238675

File Name: tencentos_TSSA_2022_0012.nasl

Version: 1.1

Type: local

Published: 6/16/2025

Updated: 6/16/2025

Supported Sensors: Nessus

Vulnerability Information

CPE: cpe:/o:tencent:tencentos_server:3, p-cpe:/a:tencent:tencentos_server:python-pillow

Required KB Items: Host/local_checks_enabled, Host/cpu, Host/etc/os-release, Host/TencentOS/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 2/24/2022

Vulnerability Publication Date: 2/24/2022