Symlink Attack Affecting pillow package, versions [,2.3.1)


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.09% (38th percentile)
Expand this section
NVD
5.3 medium
Expand this section
Red Hat
4 medium

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 ID SNYK-PYTHON-PILLOW-40034
  • published 11 Feb 2014
  • disclosed 11 Feb 2014
  • credit Jakub Wilk

How to fix?

Upgrade to version 2.3.1 or greater.

Overview

Pillow is a Python Imaging Library (Fork).

Affected versions of this package are vulnerable to Symlink attacks due to insecurely creating temporary files. 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 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.