Summary
Package updates are available for Amazon Linux 2023 that fix the following vulnerabilities: CVE-2022-45199: Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL. CVE-2022-45198: Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification). 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-2021-28677: An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening. 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-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-27922: 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 ICNS container, and thus an attempted memory allocation can be very large. 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-25293: An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c. CVE-2021-25291: An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries. CVE-2021-25290: An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
Fixed packages 7
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2023 | python-pillow-debuginfo | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python-pillow-debugsource | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python3-pillow | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python3-pillow-debuginfo | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python3-pillow-devel | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python3-pillow-tk | 0:9.4.0-2.amzn2023.0.1 |
| Amazon Linux · 2023 | python3-pillow-tk-debuginfo | 0:9.4.0-2.amzn2023.0.1 |
Vulnerabilities 11
-
Critical 9.8
Buffer Overflow in Pillow
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.
-
High 7.5
Out-of-bounds Write in Pillow
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.
-
High 7.5
Out of bounds read in Pillow
An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.
-
High 7.5
Out of bounds read in Pillow
An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.
-
High 7.5
Pillow Denial of Service by Uncontrolled Resource Consumption
Pillow before 8.1.2 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.
-
High 7.5
Pillow Uncontrolled Resource Consumption
Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.
-
High 7.5
Pillow Denial of Service by Uncontrolled Resource Consumption
Pillow before 8.1.2 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.
-
High 7.5
Potential infinite loop in Pillow
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.
-
High 7.5
Uncontrolled Resource Consumption in Pillow
An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a li…
-
High 7.5
Pillow vulnerable to Data Amplification attack.
Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).
-
High 7.5
Pillow subject to DoS via SAMPLESPERPIXEL tag
Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-25290.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-25291.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-25293.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-27921.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-27922.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-27923.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-28676.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-28677.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2021-34552.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-45198.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2022-45199.html