GHSA-x895-2wrm-hvp7

Suggest an improvement
Source
https://github.com/advisories/GHSA-x895-2wrm-hvp7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-x895-2wrm-hvp7/GHSA-x895-2wrm-hvp7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-x895-2wrm-hvp7
Aliases
Published
2022-05-17T02:39:13Z
Modified
2024-02-16T08:00:30.201264Z
Summary
PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles
Details

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

Affected packages

PyPI / pillow

Package

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.3.1

Affected versions

1.*

1.0
1.1
1.2
1.3
1.4
1.5
1.6
1.7.0
1.7.1
1.7.2
1.7.3
1.7.4
1.7.5
1.7.6
1.7.7
1.7.8

2.*

2.0.0
2.1.0
2.2.0
2.2.1
2.2.2
2.3.0