Skip to content

← Public intelligence

PyPI package

pillow

Open actionable advisories and recorded vendor fixes. This public package view has no inventory attached and cannot establish whether your deployment is affected. A vendor fix never resolves your finding; verify your installed version and the source guidance.

Open advisories

117 actionable advisories, newest first. Withdrawn advisories and news are excluded. Coverage is partial.

  1. High, CVSS 8.7PyPIAmendedPublished

    Pillow is vulnerable to Denial of Service (DOS) in the Jpeg2KImagePlugin

    CVE-2014-3598 · GHSA-j6f7-g425-4gmx

    Affected
    • PyPI pillow < 2.5.3
    Fixed in
    2.5.3· Vendor fix available
    Issue
    The Jpeg2KImagePlugin plugin in Pillow before 2.5.3 allows remote attackers to cause a denial of service via a crafted image.

    Recommended action: Upgrade to 2.5.3 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  2. UnratedPyPIAmendedPublished

    Infinite loop in Pillow

    GHSA-4fx9-vc88-q2xc

    Affected
    • PyPI pillow < 9.0.0
    Fixed in
    9.0.0· Vendor fix available
    Issue
    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.

    Recommended action: Upgrade to 9.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  3. High, CVSS 8.8PyPIAmendedPublished

    Path traversal in Pillow

    CVE-2022-24303 · GHSA-9j59-75qj-795w

    Affected
    • PyPI pillow < 9.0.1
    Fixed in
    9.0.1· Vendor fix available
    Issue
    Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.

    Recommended action: Upgrade to 9.0.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  4. Medium, CVSS 6.9PyPIAmendedPublished

    Improper Initialization in Pillow

    CVE-2022-22815 · GHSA-pw3c-h7wp-cvhx

    Affected
    • PyPI pillow < 9.0.0
    Fixed in
    9.0.0· Vendor fix available
    Issue
    Pillow is the friendly PIL (Python Imaging Library) fork. pathgetbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.

    Recommended action: Upgrade to 9.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  5. Medium, CVSS 6.9PyPIAmendedPublished

    Out-of-bounds Read in Pillow

    CVE-2022-22816 · GHSA-xrcv-f9gm-v42c

    Affected
    • PyPI pillow < 9.0.0
    Fixed in
    9.0.0· Vendor fix available
    Issue
    pathgetbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.

    Recommended action: Upgrade to 9.0.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  6. Critical, CVSS 9.3PyPIAmendedPublished

    Arbitrary expression injection in Pillow

    CVE-2022-22817 · GHSA-8vj2-vxx3-667w

    Affected
    • PyPI pillow < 9.0.1
    Fixed in
    9.0.1· Vendor fix available
    Issue
    PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method ImageMath.eval("exec(exit())"). While Pillow 9.0.0 restricted top-level builtins available to PIL.ImageMath.eval(), it did not prevent builtins available to lambda expressions. These are now also restricted in 9.0.1.

    Recommended action: Upgrade to 9.0.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  7. Critical, CVSS 9.3PyPIAmendedPublished

    PCX P mode buffer overflow in Pillow

    CVE-2020-5312 · GHSA-p49h-hjvm-jg3h

    Affected
    • PyPI pillow < 6.2.2
    Fixed in
    6.2.2· Vendor fix available
    Issue
    libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.

    Recommended action: Upgrade to 6.2.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  8. High, CVSS 8.2PyPIAmendedPublished

    Out-of-bounds read in Pillow

    CVE-2020-10378 · GHSA-3xv8-3j54-hgrp

    Affected
    • PyPI pillow < 7.1.0
    Fixed in
    7.1.0· Vendor fix available
    Issue
    In libImaging/PcxDecode.c in Pillow before 7.1.0, an out-of-bounds read can occur when reading PCX files where state-shuffle is instructed to read beyond state-buffer.

    Recommended action: Upgrade to 7.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  9. Critical, CVSS 9.3PyPIAmendedPublished

    Integer overflow in Pillow

    CVE-2020-5310 · GHSA-vcqg-3p29-xw73

    Affected
    • PyPI pillow < 6.2.2
    Fixed in
    6.2.2· Vendor fix available
    Issue
    libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.

    Recommended action: Upgrade to 6.2.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  10. Critical, CVSS 9.3PyPIAmendedPublished

    Buffer Overflow in Pillow

    CVE-2021-34552 · GHSA-7534-mm45-c74v

    Affected
    • PyPI pillow < 8.3.0
    Fixed in
    8.3.0· Vendor fix available
    Issue
    Pillow through 8.2.0 and PIL (aka Python Imaging Library) through 1.1.7 allow an attacker to pass controlled parameters directly into a convert function to trigger a buffer overflow in Convert.c.

    Recommended action: Upgrade to 8.3.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  11. High, CVSS 8.7PyPIAmendedPublished

    Uncontrolled Resource Consumption in pillow

    CVE-2021-23437 · GHSA-98vv-pw6r-q6q4

    Affected
    • PyPI pillow >= 5.2.0, < 8.3.2
    Fixed in
    8.3.2· Vendor fix available
    Issue
    The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.

    Recommended action: Upgrade to 8.3.2 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  12. High, CVSS 8.7PyPIAmendedPublished

    Uncontrolled Resource Consumption in Pillow

    CVE-2021-28677 · GHSA-q5hq-fp76-qmrc

    Affected
    • PyPI pillow < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. For EPS data, the readline implementation used in EPSImageFile has to deal with any combination of \r and \n as line endings. It used an accidentally quadratic method of accumulating lines while looking for a line ending. A malicious EPS file could use this to perform a DoS of Pillow in the open phase, before an image was accepted for opening.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  13. High, CVSS 8.8PyPIAmendedPublished

    Pillow Out-of-bounds Read vulnerability

    CVE-2021-25288 · GHSA-rwv7-3v45-hg29

    Affected
    • PyPI pillow >= 2.4.0, < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2kugrayi. This dates to Pillow 2.4.0.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  14. Medium, CVSS 6.8PyPIAmendedPublished

    Insufficient Verification of Data Authenticity in Pillow

    CVE-2021-28678 · GHSA-hjfx-8p6c-g7gx

    Affected
    • PyPI pillow >= 5.1.0, < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  15. High, CVSS 7.1PyPIAmendedPublished

    Pillow denial of service

    CVE-2021-28675 · GHSA-g6rj-rv7j-xwp4

    Affected
    • PyPI pillow < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. PSDImagePlugin.PsdImageFile lacked a sanity check on the number of input layers relative to the size of the data block. This could lead to a DoS on Image.open prior to Image.load.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  16. High, CVSS 8.8PyPIAmendedPublished

    Out-of-bounds Read in Pillow

    CVE-2021-25287 · GHSA-77gc-v2xv-rvvh

    Affected
    • PyPI pillow >= 2.4.0, < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2kugrayala.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  17. High, CVSS 8.7PyPIAmendedPublished

    Potential infinite loop in Pillow

    CVE-2021-28676 · GHSA-7r7m-5h27-29hp

    Affected
    • PyPI pillow < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. For FLI data, FliDecode did not properly check that the block advance was non-zero, potentially leading to an infinite loop on load.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  18. High, CVSS 8.7PyPIAmendedPublished

    Out of bounds read in Pillow

    CVE-2021-25291 · GHSA-mvg9-xffr-p774

    Affected
    • PyPI pillow < 8.2.0
    Fixed in
    8.2.0· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.2.0. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.

    Recommended action: Upgrade to 8.2.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  19. Medium, CVSS 6.9PyPIAmendedPublished

    Regular Expression Denial of Service (ReDoS) in Pillow

    CVE-2021-25292 · GHSA-9hx2-hgq2-2g4f

    Affected
    • PyPI pillow >= 5.1.0, < 8.1.1
    Fixed in
    8.1.1· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.1.1. The PDF parser allows a regular expression DoS (ReDoS) attack via a crafted PDF file because of a catastrophic backtracking regex.

    Recommended action: Upgrade to 8.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  20. High, CVSS 8.7PyPIAmendedPublished

    Out-of-bounds Write in Pillow

    CVE-2021-25290 · GHSA-8xjq-8fcg-g5hw

    Affected
    • PyPI pillow < 8.1.1
    Fixed in
    8.1.1· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.

    Recommended action: Upgrade to 8.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  21. High, CVSS 8.7PyPIAmendedPublished

    Out of bounds read in Pillow

    CVE-2021-25293 · GHSA-p43w-g3c5-g5mq

    Affected
    • PyPI pillow >= 4.3.0, < 8.1.1
    Fixed in
    8.1.1· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.

    Recommended action: Upgrade to 8.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  22. Critical, CVSS 9.3PyPIAmendedPublished

    Out of bounds write in Pillow

    CVE-2021-25289 · GHSA-57h3-9rgr-c24m

    Affected
    • PyPI pillow < 8.1.1
    Fixed in
    8.1.1· Vendor fix available
    Issue
    An issue was discovered in Pillow before 8.1.1. TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode. NOTE: this issue exists because of an incomplete fix for CVE-2020-35654.

    Recommended action: Upgrade to 8.1.1 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  23. High, CVSS 8.3PyPIAmendedPublished

    Pillow Out-of-bounds Read

    CVE-2020-35653 · GHSA-f5g8-5qq7-938w

    Affected
    • PyPI pillow < 8.1.0
    Fixed in
    8.1.0· Vendor fix available
    Issue
    In Pillow before 8.1.0, PcxDecode has a buffer over-read when decoding a crafted PCX file because the user-supplied stride value is trusted for buffer calculations.

    Recommended action: Upgrade to 8.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  24. Medium, CVSS 6.3PyPIAmendedPublished

    Pillow Out-of-bounds Read

    CVE-2020-35655 · GHSA-hf64-x4gq-p99h

    Affected
    • PyPI pillow >= 4.3.0, < 8.1.0
    Fixed in
    8.1.0· Vendor fix available
    Issue
    In Pillow before 8.1.0, SGIRleDecode has a 4-byte buffer over-read when decoding crafted SGI RLE image files because offsets and length tables are mishandled.

    Recommended action: Upgrade to 8.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →
  25. High, CVSS 8.6PyPIAmendedPublished

    Pillow Out-of-bounds Write

    CVE-2020-35654 · GHSA-vqcj-wrf2-7v73

    Affected
    • PyPI pillow < 8.1.0
    Fixed in
    8.1.0· Vendor fix available
    Issue
    In Pillow before 8.1.0, TiffDecode has a heap-based buffer overflow when decoding crafted YCbCr files because of certain interpretation conflicts with LibTIFF in RGBA mode.

    Recommended action: Upgrade to 8.1.0 or later, then redeploy and verify.A vendor fix does not resolve your finding until you verify it in your own systems.

    Sources:osv.dev (1)github.com (2)Source checked Evidence →