Summary
Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: 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-2020-35653: In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations. CVE-2016-9190: Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the "crafted image file" approach, related to an "Insecure Sign Extension" issue affecting the ImagingNew in Storage.c component. CVE-2014-9601: Pillow before 2.7.0 allows remote attackers to cause a denial of service via a compressed text chunk in a PNG image that has a large size when it is decompressed.
Fixed packages 6
| Release | Package | Fixed in |
|---|---|---|
| Amazon Linux · 2 | python-pillow | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
| Amazon Linux · 2 | python-pillow-debuginfo | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
| Amazon Linux · 2 | python-pillow-devel | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
| Amazon Linux · 2 | python-pillow-doc | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
| Amazon Linux · 2 | python-pillow-sane | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
| Amazon Linux · 2 | python-pillow-tk | 0:2.0.0-23.gitd1c6db8.amzn2.0.4 |
Vulnerabilities 6
-
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.8
Arbitrary code using "crafted image file" approach affecting Pillow
Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the "crafted image file" approach, related to an "Insecure Sign Extension" issue affecting the ImagingNew in Storage.c component.
-
High 7.5
Pillow denial of service via PNG bomb
Pillow before 2.7.0 allows remote attackers to cause a denial of service via a compressed text chunk in a PNG image that has a large size when it is decompressed.
-
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.1
Pillow Out-of-bounds Read
In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations.
References
-
web
https://alas.aws.amazon.com/cve/html/CVE-2014-9601.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2016-9190.html
-
web
https://alas.aws.amazon.com/cve/html/CVE-2020-35653.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