Symlink Attack Affecting pillow package, versions [,2.3.1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.13% (34th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-PILLOW-2371706
  • published26 Jan 2022
  • disclosed17 Apr 2014
  • creditUnknown

Introduced: 17 Apr 2014

CVE-2014-1932  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade pillow to version 2.3.1 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack. 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.

References

CVSS Base Scores

version 3.1