Уязвимость перезаписи произвольных файлов и получения чувствительной информации в Python Imaging Library (PIL) и Pillow через атаку с использованием символьных ссылок на временные файлы
Описание
Обнаружена уязвимость в следующих функциях:
load_djpegв файлеJpegImagePlugin.py,Ghostscriptв файлеEpsImagePlugin.py,loadв файлеIptcImagePlugin.py,_copyв файлеImage.py.
Проблема затрагивает Python Imaging Library (PIL) версии 1.1.7 и более ранние, а также Pillow до версии 2.3.1. Функции не создают временные файлы должным образом, что позволяет локальным пользователям перезаписывать произвольные файлы и получать доступ к чувствительной информации через атаку с использованием символьных ссылок (symlink attack) на временные файлы.
Затронутые версии ПО
- Python Imaging Library (PIL) 1.1.7 и более ранние версии
- Pillow до версии 2.3.1
Тип уязвимости
- Перезапись произвольных файлов
- Раскрытие чувствительной информации
Затронутые пакеты
| Платформа | Пакет | Состояние | Рекомендация | Релиз |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | python-imaging | Will not fix | ||
| Red Hat Enterprise Linux 6 | python-imaging | Will not fix | ||
| Red Hat Enterprise Linux 7 | python-pillow | Will not fix |
Показывать по
Дополнительная информация
Статус:
EPSS
2.1 Low
CVSS2
Связанные уязвимости
The (1) load_djpeg function in JpegImagePlugin.py, (2) Ghostscript function in EpsImagePlugin.py, (3) load function in IptcImagePlugin.py, and (4) _copy function in Image.py in Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.3.1 do not properly create temporary files, which allow local users to overwrite arbitrary files and obtain sensitive information via a symlink attack on the temporary file.
The (1) load_djpeg function in JpegImagePlugin.py, (2) Ghostscript function in EpsImagePlugin.py, (3) load function in IptcImagePlugin.py, and (4) _copy function in Image.py in Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.3.1 do not properly create temporary files, which allow local users to overwrite arbitrary files and obtain sensitive information via a symlink attack on the temporary file.
The (1) load_djpeg function in JpegImagePlugin.py, (2) Ghostscript fun ...
PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles
EPSS
2.1 Low
CVSS2