Skip to content
OpenAdvisories
High · 7.7 CVE-2014-1932 EUVD-2014-0041GHSA-x895-2wrm-hvp7PYSEC-2014-22

PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles

Published Apr 17, 2014 · Updated Aug 6, 2024 · Assigned by mitre

Description

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pillow 2.4.0-1 —
Debian 13 pillow 2.4.0-1 —
Debian 12 pillow 2.4.0-1 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 python-pillow +4 2.0.0-23.gitd1c6db8.amzn2.0.8 ALAS2-2023-2286

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI pillow < 2.3.1 2.3.1 GHSA-x895-2wrm-hvp7

Advisories 1

References