Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. GMS-2022-347

GMS-2022-347: Infinite loop in Pillow

March 11, 2022

JpegImagePlugin may append an EOF marker to the end of a truncated file, so that the last segment of the data will still be processed by the decoder.

If the EOF marker is not detected as such however, this could lead to an infinite loop where JpegImagePlugin keeps trying to end the file.

References

  • github.com/advisories/GHSA-4fx9-vc88-q2xc
  • github.com/python-pillow/Pillow/commit/baae9ec4b67c68e3adaf1208cf54e8de5e38a6fd
  • pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html

Code Behaviors & Features

Detect and mitigate GMS-2022-347 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 9.0.0

Fixed versions

  • 9.0.0

Solution

Upgrade to version 9.0.0 or above.

Source file

pypi/Pillow/GMS-2022-347.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:07 +0000.