Red Hat VEX
RHVEX-CVE-2021-28677
python-pillow: Excessive CPU use in EPS image reader
Details
A flaw was found in python-pillow. The readline used in EPS has to deal with any combination of \r and \n as line endings. It accidentally used a quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a denial-of-service of Pillow in the open phase, before an image was accepted for opening.
Affected packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Red Hat:enterprise_linux:7 | python-pillow | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-devel | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-doc | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-qt | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-sane | All versions, no fix (out of support scope) |
| Red Hat:enterprise_linux:7 | python-pillow-tk | All versions, no fix (out of support scope) |