{"ecosystem":"pypi","package":"Pillow","version":null,"bugs":[{"id":636,"ecosystem":"pypi","package_name":"Pillow","affected_version":"11.2.0","fixed_version":"11.3.0","bug_id":"osv:GHSA-xg8h-j46f-w952","title":"Pillow vulnerability can cause write buffer overflow on BCn encoding","description":"There is a heap buffer overflow when writing a sufficiently large (>64k encoded with default settings) image in the DDS format due to writing into a buffer without checking for available space. \n\nThis only affects users who save untrusted data as a compressed DDS image. \n\n* Unclear how large the potential write could be. It is likely limited by process segfault, so it's not necessarily deterministic. It may be practically unbounded. \n* Unclear if there's a restriction on the bytes that could be emitted. It's likely that the only restriction is that the bytes would be emitted in chunks of 8 or 16. \n\nThis was introduced in Pillow 11.2.0 when the feature was added.","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952","labels":["BIT-pillow-2025-48379","CVE-2025-48379","PYSEC-2025-61"],"created_at":"2026-04-19T04:31:37.051629+00:00","updated_at":"2026-04-19T04:31:37.051629+00:00"},{"id":635,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.3.1","bug_id":"osv:GHSA-x895-2wrm-hvp7","title":"PIL and Pillow Vulnerable to Symlink Attack on Tmpfiles","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-1932","labels":["CVE-2014-1932","PYSEC-2014-22"],"created_at":"2026-04-19T04:31:37.051226+00:00","updated_at":"2026-04-19T04:31:37.051226+00:00"},{"id":634,"ecosystem":"pypi","package_name":"Pillow","affected_version":"10.3.0","fixed_version":"12.2.0","bug_id":"osv:GHSA-whj4-6x5x-4v2j","title":"FITS GZIP decompression bomb in Pillow","description":"### Impact\nPillow did not limit the amount of GZIP-compressed data read when decoding a FITS image, making it vulnerable to decompression bomb attacks. A specially crafted FITS file could cause unbounded memory consumption, leading to denial of service (OOM crash or severe performance degradation).\n\n### Patches\nThe amount of data read is now limited to the necessary amount.\nFixed in Pillow 12.2.0 (PR #9521).\n\n### Workarounds\nAvoid Pillow >= 10.3.0, < 12.2.0\nOnly open [specific image formats](https://pillow.readthedocs.io/en/stable/releasenotes/8.0.0.html#image-open-add-formats-parameter), excluding FITS.","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-whj4-6x5x-4v2j","labels":["BIT-pillow-2026-40192","CVE-2026-40192"],"created_at":"2026-04-19T04:31:37.050820+00:00","updated_at":"2026-04-19T04:31:37.050820+00:00"},{"id":633,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.3.2","bug_id":"osv:GHSA-w4vg-rf63-f3j3","title":"Arbitrary code using \"crafted image file\" approach affecting Pillow","description":"Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the \"crafted image file\" approach, related to an \"Insecure Sign Extension\" issue affecting the ImagingNew in Storage.c component.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9190","labels":["CVE-2016-9190","PYSEC-2016-9"],"created_at":"2026-04-19T04:31:37.050425+00:00","updated_at":"2026-04-19T04:31:37.050425+00:00"},{"id":632,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.0","bug_id":"osv:GHSA-vqcj-wrf2-7v73","title":"Pillow Out-of-bounds Write","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35654","labels":["BIT-pillow-2020-35654","CVE-2020-35654","PYSEC-2021-70"],"created_at":"2026-04-19T04:31:37.050015+00:00","updated_at":"2026-04-19T04:31:37.050015+00:00"},{"id":631,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:GHSA-vj42-xq3r-hr3r","title":"Out-of-bounds reads in Pillow","description":"In `libImaging/Jpeg2KDecode.c` in Pillow before 7.1.0, there are multiple out-of-bounds reads via a crafted JP2 file.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10994","labels":["BIT-pillow-2020-10994","CVE-2020-10994","PYSEC-2020-79"],"created_at":"2026-04-19T04:31:37.049645+00:00","updated_at":"2026-04-19T04:31:37.049645+00:00"},{"id":629,"ecosystem":"pypi","package_name":"Pillow","affected_version":"2.5.0","fixed_version":"3.1.2","bug_id":"osv:GHSA-v9pc-9mvp-x87g","title":"Pillow Buffer overflow in Jpeg2KEncode.c","description":"Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-3076","labels":["CVE-2016-3076","PYSEC-2017-92"],"created_at":"2026-04-19T04:31:37.048829+00:00","updated_at":"2026-04-19T04:31:37.048829+00:00"},{"id":628,"ecosystem":"pypi","package_name":"Pillow","affected_version":"2.4.0","fixed_version":"8.2.0","bug_id":"osv:GHSA-rwv7-3v45-hg29","title":"Pillow Out-of-bounds Read vulnerability","description":"An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i. This dates to Pillow 2.4.0.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25288","labels":["BIT-pillow-2021-25288","CVE-2021-25288","PYSEC-2021-138"],"created_at":"2026-04-19T04:31:37.048470+00:00","updated_at":"2026-04-19T04:31:37.048470+00:00"},{"id":624,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:GHSA-q5hq-fp76-qmrc","title":"Uncontrolled Resource Consumption in Pillow","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28677","labels":["BIT-pillow-2021-28677","CVE-2021-28677","PYSEC-2021-93"],"created_at":"2026-04-19T04:31:37.046849+00:00","updated_at":"2026-04-19T04:31:37.046849+00:00"},{"id":623,"ecosystem":"pypi","package_name":"Pillow","affected_version":"9.2.0","fixed_version":"9.3.0","bug_id":"osv:GHSA-q4mp-jvh2-76fj","title":"Pillow subject to DoS via SAMPLESPERPIXEL tag","description":"Pillow starting with 9.2.0 and prior to 9.3.0 allows denial of service via SAMPLESPERPIXEL. A large value in the SAMPLESPERPIXEL tag could lead to a memory and runtime DOS in TiffImagePlugin.py when setting up the context for image decoding. This issue has been patched in version 9.3.0.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45199","labels":["BIT-pillow-2022-45199","CVE-2022-45199","PYSEC-2022-42980"],"created_at":"2026-04-19T04:31:37.046384+00:00","updated_at":"2026-04-19T04:31:37.046384+00:00"},{"id":620,"ecosystem":"pypi","package_name":"Pillow","affected_version":"4.3.0","fixed_version":"8.1.1","bug_id":"osv:GHSA-p43w-g3c5-g5mq","title":"Out of bounds read in Pillow","description":"An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25293","labels":["BIT-pillow-2021-25293","CVE-2021-25293","PYSEC-2021-39"],"created_at":"2026-04-19T04:31:37.044934+00:00","updated_at":"2026-04-19T04:31:37.044934+00:00"},{"id":619,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:GHSA-mvg9-xffr-p774","title":"Out of bounds read in Pillow","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25291","labels":["BIT-pillow-2021-25291","CVE-2021-25291","PYSEC-2021-37"],"created_at":"2026-04-19T04:31:37.044508+00:00","updated_at":"2026-04-19T04:31:37.044508+00:00"},{"id":618,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.2.0","bug_id":"osv:GHSA-m2vv-5vj5-2hm7","title":"Pillow vulnerable to Data Amplification attack.","description":"Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-45198","labels":["BIT-pillow-2022-45198","CVE-2022-45198","PYSEC-2022-42979"],"created_at":"2026-04-19T04:31:37.044072+00:00","updated_at":"2026-04-19T04:31:37.044072+00:00"},{"id":616,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.0","bug_id":"osv:GHSA-j7mj-748x-7p78","title":"DOS attack in Pillow when processing specially crafted image files","description":"An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16865","labels":["CVE-2019-16865","PYSEC-2019-110"],"created_at":"2026-04-19T04:31:37.043105+00:00","updated_at":"2026-04-19T04:31:37.043105+00:00"},{"id":615,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"0.1.8","bug_id":"osv:GHSA-j7hp-h8jx-5ppr","title":"libwebp: OOB write in BuildHuffmanTable","description":"Heap buffer overflow in libwebp allow a remote attacker to perform an out of bounds memory write via a crafted HTML page.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-4863","labels":["A-299477569","ASB-A-299477569","CVE-2023-4863","CVE-2023-5129","RUSTSEC-2023-0060","RUSTSEC-2023-0061"],"created_at":"2026-04-19T04:31:37.042660+00:00","updated_at":"2026-04-19T04:31:37.042660+00:00"},{"id":614,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.5.3","bug_id":"osv:GHSA-j6f7-g425-4gmx","title":"Pillow is vulnerable to Denial of Service (DOS) in the Jpeg2KImagePlugin","description":"The Jpeg2KImagePlugin plugin in Pillow before 2.5.3 allows remote attackers to cause a denial of service via a crafted image.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-3598","labels":["CVE-2014-3598","PYSEC-2015-15"],"created_at":"2026-04-19T04:31:37.042158+00:00","updated_at":"2026-04-19T04:31:37.042158+00:00"},{"id":612,"ecosystem":"pypi","package_name":"Pillow","affected_version":"9.1.0","fixed_version":"9.1.1","bug_id":"osv:GHSA-hr8g-f6r6-mr22","title":"Buffer over-flow in Pillow","description":"When reading a TGA file with RLE packets that cross scan lines, Pillow reads the information past the end of the first line without deducting that from the length of the remaining file data. This vulnerability was introduced in Pillow 9.1.0, and can cause a heap buffer overflow.\n\nOpening an image with a zero or negative height has been found to bypass a decompression bomb check. This will now raise a SyntaxError instead, in turn raising a PIL.UnidentifiedImageError.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-30595","labels":["BIT-pillow-2022-30595","CVE-2022-30595","PYSEC-2022-43145"],"created_at":"2026-04-19T04:31:37.041241+00:00","updated_at":"2026-04-19T04:31:37.041241+00:00"},{"id":610,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:GHSA-hj69-c76v-86wr","title":"Out-of-bounds Read in Pillow","description":"`libImaging/FliDecode.c` in Pillow before 6.2.2 has an FLI buffer overflow.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5313","labels":["BIT-pillow-2020-5313","CVE-2020-5313","PYSEC-2020-84"],"created_at":"2026-04-19T04:31:37.040291+00:00","updated_at":"2026-04-19T04:31:37.040291+00:00"},{"id":607,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.7.0","bug_id":"osv:GHSA-h5rf-vgqx-wjv2","title":"Pillow denial of service via PNG bomb","description":"Pillow before 2.7.0 allows remote attackers to cause a denial of service via a compressed text chunk in a PNG image that has a large size when it is decompressed.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-9601","labels":["CVE-2014-9601","PYSEC-2015-16"],"created_at":"2026-04-19T04:31:37.039018+00:00","updated_at":"2026-04-19T04:31:37.039018+00:00"},{"id":606,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:GHSA-g6rj-rv7j-xwp4","title":"Pillow denial of service","description":"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`.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28675","labels":["BIT-pillow-2021-28675","CVE-2021-28675","PYSEC-2021-139"],"created_at":"2026-04-19T04:31:37.038553+00:00","updated_at":"2026-04-19T04:31:37.038553+00:00"},{"id":605,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.0","bug_id":"osv:GHSA-f5g8-5qq7-938w","title":"Pillow Out-of-bounds Read","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35653","labels":["BIT-pillow-2020-35653","CVE-2020-35653","PYSEC-2021-69"],"created_at":"2026-04-19T04:31:37.038116+00:00","updated_at":"2026-04-19T04:31:37.038116+00:00"},{"id":604,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.2","bug_id":"osv:GHSA-f4w8-cv6p-x6r5","title":"Pillow Denial of Service by Uncontrolled Resource Consumption","description":"Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27921","labels":["BIT-pillow-2021-27921","CVE-2021-27921","PYSEC-2021-40"],"created_at":"2026-04-19T04:31:37.037515+00:00","updated_at":"2026-04-19T04:31:37.037515+00:00"},{"id":603,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:GHSA-cqhg-xjhh-p8hf","title":"Out-of-bounds reads in Pillow","description":"Pillow before 7.1.0 has multiple out-of-bounds reads in `libImaging/FliDecode.c`.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10177","labels":["BIT-pillow-2020-10177","CVE-2020-10177","PYSEC-2020-76"],"created_at":"2026-04-19T04:31:37.037057+00:00","updated_at":"2026-04-19T04:31:37.037057+00:00"},{"id":602,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.3.2","bug_id":"osv:GHSA-cfmr-38g9-f2h7","title":"Pillow denial of service via Crafted Block Size","description":"`PIL/IcnsImagePlugin.py` in Python Imaging Library (PIL) and Pillow before 2.3.2 and 2.5.x before 2.5.2 allows remote attackers to cause a denial of service via a crafted block size.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-3589","labels":["CVE-2014-3589","PYSEC-2014-10"],"created_at":"2026-04-19T04:31:37.036513+00:00","updated_at":"2026-04-19T04:31:37.036513+00:00"},{"id":601,"ecosystem":"pypi","package_name":"Pillow","affected_version":"10.3.0","fixed_version":"12.1.1","bug_id":"osv:GHSA-cfh3-3jmp-rvhc","title":"Pillow affected by out-of-bounds write when loading PSD images","description":"### Impact\nAn out-of-bounds write may be triggered when loading a specially crafted PSD image. Pillow >= 10.3.0 users are affected.\n\n### Patches\nPillow 12.1.1 will be released shortly with a fix for this.\n\n### Workarounds\n`Image.open()` has a `formats` parameter that can be used to prevent PSD images from being opened.\n\n### References\nPillow 12.1.1 will add release notes at https://pillow.readthedocs.io/en/stable/releasenotes/index.html","severity":"high","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-cfh3-3jmp-rvhc","labels":["BIT-pillow-2026-25990","CVE-2026-25990"],"created_at":"2026-04-19T04:31:37.036009+00:00","updated_at":"2026-04-19T04:31:37.036009+00:00"},{"id":600,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.1","bug_id":"osv:GHSA-9j59-75qj-795w","title":"Path traversal in Pillow","description":"Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-24303","labels":["BIT-pillow-2022-24303","CVE-2022-24303","PYSEC-2022-168"],"created_at":"2026-04-19T04:31:37.035514+00:00","updated_at":"2026-04-19T04:31:37.035514+00:00"},{"id":598,"ecosystem":"pypi","package_name":"Pillow","affected_version":"5.2.0","fixed_version":"8.3.2","bug_id":"osv:GHSA-98vv-pw6r-q6q4","title":"Uncontrolled Resource Consumption in pillow","description":"The package pillow 5.2.0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-23437","labels":["BIT-pillow-2021-23437","CVE-2021-23437","PYSEC-2021-317","SNYK-PYTHON-PILLOW-1319443"],"created_at":"2026-04-19T04:31:37.034601+00:00","updated_at":"2026-04-19T04:31:37.034601+00:00"},{"id":597,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.2","bug_id":"osv:GHSA-95q3-8gr9-gm8w","title":"Pillow Denial of Service by Uncontrolled Resource Consumption","description":"Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICO container, and thus an attempted memory allocation can be very large.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27923","labels":["BIT-pillow-2021-27923","CVE-2021-27923","PYSEC-2021-42"],"created_at":"2026-04-19T04:31:37.034144+00:00","updated_at":"2026-04-19T04:31:37.034144+00:00"},{"id":596,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.1.1","bug_id":"osv:GHSA-8xjv-v9xq-m5h9","title":"Pillow Buffer overflow in ImagingFliDecode","description":"Buffer overflow in the `ImagingFliDecode` function in `libImaging/FliDecode.c` in Pillow before 3.1.1 allows remote attackers to cause a denial of service (crash) via a crafted FLI file.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-0775","labels":["CVE-2016-0775","PYSEC-2016-6"],"created_at":"2026-04-19T04:31:37.033687+00:00","updated_at":"2026-04-19T04:31:37.033687+00:00"},{"id":595,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:GHSA-8xjq-8fcg-g5hw","title":"Out-of-bounds Write in Pillow","description":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25290","labels":["BIT-pillow-2021-25290","CVE-2021-25290","PYSEC-2021-36"],"created_at":"2026-04-19T04:31:37.033219+00:00","updated_at":"2026-04-19T04:31:37.033219+00:00"},{"id":592,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"10.0.0","bug_id":"osv:GHSA-8ghj-p4vj-mr35","title":"Pillow Denial of Service vulnerability","description":"An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-44271","labels":["BIT-pillow-2023-44271","CVE-2023-44271","PYSEC-2023-227"],"created_at":"2026-04-19T04:31:37.031663+00:00","updated_at":"2026-04-19T04:31:37.031663+00:00"},{"id":591,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:GHSA-8843-m7mw-mxqm","title":"Buffer overflow in Pillow","description":"In Pillow before 7.1.0, there are two Buffer Overflows in `libImaging/TiffDecode.c`.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10379","labels":["BIT-pillow-2020-10379","CVE-2020-10379","PYSEC-2020-78"],"created_at":"2026-04-19T04:31:37.031207+00:00","updated_at":"2026-04-19T04:31:37.031207+00:00"},{"id":590,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:GHSA-7r7m-5h27-29hp","title":"Potential infinite loop in Pillow","description":"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.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28676","labels":["BIT-pillow-2021-28676","CVE-2021-28676","PYSEC-2021-92"],"created_at":"2026-04-19T04:31:37.030762+00:00","updated_at":"2026-04-19T04:31:37.030762+00:00"},{"id":589,"ecosystem":"pypi","package_name":"Pillow","affected_version":"2.4.0","fixed_version":"8.2.0","bug_id":"osv:GHSA-77gc-v2xv-rvvh","title":"Out-of-bounds Read in Pillow","description":"An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25287","labels":["BIT-pillow-2021-25287","CVE-2021-25287","PYSEC-2021-137"],"created_at":"2026-04-19T04:31:37.030315+00:00","updated_at":"2026-04-19T04:31:37.030315+00:00"},{"id":587,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:GHSA-5gm3-px64-rw72","title":"Uncontrolled Resource Consumption in Pillow","description":"There is a DoS vulnerability in Pillow before 6.2.2 caused by FpxImagePlugin.py calling the range function on an unvalidated 32-bit integer if the number of bands is large. On Windows running 32-bit Python, this results in an OverflowError or MemoryError due to the 2 GB limit. However, on Linux running 64-bit Python this results in the process being terminated by the OOM killer.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2019-19911","labels":["CVE-2019-19911","PYSEC-2020-172"],"created_at":"2026-04-19T04:31:37.029394+00:00","updated_at":"2026-04-19T04:31:37.029394+00:00"},{"id":584,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"10.3.0","bug_id":"osv:GHSA-44wm-f244-xhp3","title":"Pillow buffer overflow vulnerability","description":"In _imagingcms.c in Pillow before 10.3.0, a buffer overflow exists because strcpy is used instead of strncpy.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-28219","labels":["BIT-pillow-2024-28219","CVE-2024-28219"],"created_at":"2026-04-19T04:31:37.027902+00:00","updated_at":"2026-04-19T04:31:37.027902+00:00"},{"id":582,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:GHSA-3xv8-3j54-hgrp","title":"Out-of-bounds read in Pillow","description":"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`.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-10378","labels":["BIT-pillow-2020-10378","CVE-2020-10378","PYSEC-2020-77"],"created_at":"2026-04-19T04:31:37.026944+00:00","updated_at":"2026-04-19T04:31:37.026944+00:00"},{"id":581,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.2","bug_id":"osv:GHSA-3wvg-mj6g-m9cv","title":"Pillow Uncontrolled Resource Consumption","description":"Pillow before 8.1.2 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-27922","labels":["BIT-pillow-2021-27922","CVE-2021-27922","PYSEC-2021-41"],"created_at":"2026-04-19T04:31:37.026409+00:00","updated_at":"2026-04-19T04:31:37.026409+00:00"},{"id":579,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.1.1","bug_id":"osv:GHSA-3c5c-7235-994j","title":"Pillow buffer overflow in ImagingPcdDecode","description":"Buffer overflow in the `ImagingPcdDecode` function in `PcdDecode.c` in Pillow before 3.1.1 and Python Imaging Library (PIL) 1.1.7 and earlier allows remote attackers to cause a denial of service (crash) via a crafted PhotoCD file.","severity":"high","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-2533","labels":["CVE-2016-2533","PYSEC-2016-19"],"created_at":"2026-04-19T04:31:37.024816+00:00","updated_at":"2026-04-19T04:31:37.024816+00:00"},{"id":692,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"ef98b3510e3e4f14b547762764813d7e5ca3c5a4","bug_id":"osv:PYSEC-2025-61","title":"PYSEC-2025-61: advisory","description":"Pillow is a Python imaging library. In versions 11.2.0 to before 11.3.0, there is a heap buffer overflow when writing a sufficiently large (>64k encoded with default settings) image in the DDS format due to writing into a buffer without checking for available space. This only affects users who save untrusted data as a compressed DDS image. This issue has been patched in version 11.3.0.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-xg8h-j46f-w952","labels":["BIT-pillow-2025-48379","CVE-2025-48379","GHSA-xg8h-j46f-w952"],"created_at":"2026-04-19T04:31:37.074921+00:00","updated_at":"2026-04-19T04:31:37.074921+00:00"},{"id":691,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"1fe1bb49c452b0318cad12ea9d97c3bef188e9a7","bug_id":"osv:PYSEC-2023-227","title":"PYSEC-2023-227: advisory","description":"An issue was discovered in Pillow before 10.0.0. It is a Denial of Service that uncontrollably allocates memory to process a given task, potentially causing a service to crash by having it run out of memory. This occurs for truetype in ImageFont when textlength in an ImageDraw instance operates on a long text argument.","severity":"medium","status":"fixed","source":"osv","source_url":"https://devhub.checkmarx.com/cve-details/CVE-2023-44271/","labels":["BIT-pillow-2023-44271","CVE-2023-44271","GHSA-8ghj-p4vj-mr35"],"created_at":"2026-04-19T04:31:37.074446+00:00","updated_at":"2026-04-19T04:31:37.074446+00:00"},{"id":690,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"10.0.1","bug_id":"osv:PYSEC-2023-175","title":"PYSEC-2023-175: advisory","description":"Pillow versions before v10.0.1 bundled libwebp binaries in wheels that are vulnerable to CVE-2023-5129 (previously CVE-2023-4863). Pillow v10.0.1 upgrades the bundled libwebp binary to v1.3.2.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/blob/main/CHANGES.rst#1001-2023-09-15","labels":[],"created_at":"2026-04-19T04:31:37.074018+00:00","updated_at":"2026-04-19T04:31:37.074018+00:00"},{"id":689,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:PYSEC-2022-9","title":"PYSEC-2022-9: advisory","description":"path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331","labels":["BIT-pillow-2022-22816","CVE-2022-22816","GHSA-xrcv-f9gm-v42c"],"created_at":"2026-04-19T04:31:37.073639+00:00","updated_at":"2026-04-19T04:31:37.073639+00:00"},{"id":688,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:PYSEC-2022-8","title":"PYSEC-2022-8: advisory","description":"path_getbbox in path.c in Pillow before 9.0.0 improperly initializes ImagePath.Path.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/blob/c5d9223a8b5e9295d15b5a9b1ef1dae44c8499f3/src/path.c#L331","labels":["BIT-pillow-2022-22815","CVE-2022-22815","GHSA-pw3c-h7wp-cvhx"],"created_at":"2026-04-19T04:31:37.073202+00:00","updated_at":"2026-04-19T04:31:37.073202+00:00"},{"id":687,"ecosystem":"pypi","package_name":"Pillow","affected_version":"9.1.0","fixed_version":"9.1.1","bug_id":"osv:PYSEC-2022-43145","title":"PYSEC-2022-43145: advisory","description":"libImaging/TgaRleDecode.c in Pillow 9.1.0 has a heap buffer overflow in the processing of invalid TGA image files.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.1.1.html","labels":["BIT-pillow-2022-30595","CVE-2022-30595","GHSA-hr8g-f6r6-mr22"],"created_at":"2026-04-19T04:31:37.072833+00:00","updated_at":"2026-04-19T04:31:37.072833+00:00"},{"id":686,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2444cddab2f83f28687c7c20871574acbb6dbcf3","bug_id":"osv:PYSEC-2022-42980","title":"PYSEC-2022-42980: advisory","description":"Pillow before 9.3.0 allows denial of service via SAMPLESPERPIXEL.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/pull/6700","labels":["BIT-pillow-2022-45199","CVE-2022-45199","GHSA-q4mp-jvh2-76fj"],"created_at":"2026-04-19T04:31:37.072463+00:00","updated_at":"2026-04-19T04:31:37.072463+00:00"},{"id":685,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"11918eac0628ec8ac0812670d9838361ead2d6a4","bug_id":"osv:PYSEC-2022-42979","title":"PYSEC-2022-42979: advisory","description":"Pillow before 9.2.0 performs Improper Handling of Highly Compressed GIF Data (Data Amplification).","severity":"medium","status":"fixed","source":"osv","source_url":"https://bugs.gentoo.org/855683","labels":["BIT-pillow-2022-45198","CVE-2022-45198","GHSA-m2vv-5vj5-2hm7"],"created_at":"2026-04-19T04:31:37.072085+00:00","updated_at":"2026-04-19T04:31:37.072085+00:00"},{"id":684,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.1","bug_id":"osv:PYSEC-2022-168","title":"PYSEC-2022-168: advisory","description":"Pillow before 9.0.1 allows attackers to delete files because spaces in temporary pathnames are mishandled.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.1.html#security","labels":["BIT-pillow-2022-24303","CVE-2022-24303","GHSA-9j59-75qj-795w"],"created_at":"2026-04-19T04:31:37.071695+00:00","updated_at":"2026-04-19T04:31:37.071695+00:00"},{"id":683,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:PYSEC-2022-10","title":"PYSEC-2022-10: advisory","description":"PIL.ImageMath.eval in Pillow before 9.0.0 allows evaluation of arbitrary expressions, such as ones that use the Python exec method.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/9.0.0.html#restrict-builtins-available-to-imagemath-eval","labels":["BIT-pillow-2022-22817","CVE-2022-22817","GHSA-8vj2-vxx3-667w"],"created_at":"2026-04-19T04:31:37.071114+00:00","updated_at":"2026-04-19T04:31:37.071114+00:00"},{"id":682,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-94","title":"PYSEC-2021-94: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/pull/5377","labels":["BIT-pillow-2021-28678","CVE-2021-28678","GHSA-hjfx-8p6c-g7gx"],"created_at":"2026-04-19T04:31:37.070738+00:00","updated_at":"2026-04-19T04:31:37.070738+00:00"},{"id":681,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-93","title":"PYSEC-2021-93: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/pull/5377","labels":["BIT-pillow-2021-28677","CVE-2021-28677","GHSA-q5hq-fp76-qmrc"],"created_at":"2026-04-19T04:31:37.070364+00:00","updated_at":"2026-04-19T04:31:37.070364+00:00"},{"id":680,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-92","title":"PYSEC-2021-92: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28676-fix-fli-dos","labels":["BIT-pillow-2021-28676","CVE-2021-28676","GHSA-7r7m-5h27-29hp"],"created_at":"2026-04-19T04:31:37.069958+00:00","updated_at":"2026-04-19T04:31:37.069958+00:00"},{"id":679,"ecosystem":"pypi","package_name":"Pillow","affected_version":"4.3.0","fixed_version":"8.1.0","bug_id":"osv:PYSEC-2021-71","title":"PYSEC-2021-71: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html","labels":["BIT-pillow-2020-35655","CVE-2020-35655","GHSA-hf64-x4gq-p99h"],"created_at":"2026-04-19T04:31:37.069575+00:00","updated_at":"2026-04-19T04:31:37.069575+00:00"},{"id":678,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.0","bug_id":"osv:PYSEC-2021-70","title":"PYSEC-2021-70: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html","labels":["BIT-pillow-2020-35654","CVE-2020-35654","GHSA-vqcj-wrf2-7v73"],"created_at":"2026-04-19T04:31:37.069199+00:00","updated_at":"2026-04-19T04:31:37.069199+00:00"},{"id":677,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.0","bug_id":"osv:PYSEC-2021-69","title":"PYSEC-2021-69: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html","labels":["BIT-pillow-2020-35653","CVE-2020-35653","GHSA-f5g8-5qq7-938w"],"created_at":"2026-04-19T04:31:37.068794+00:00","updated_at":"2026-04-19T04:31:37.068794+00:00"},{"id":676,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-42","title":"PYSEC-2021-42: advisory","description":"Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICO container, and thus an attempted memory allocation can be very large.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-27923","CVE-2021-27923","GHSA-95q3-8gr9-gm8w"],"created_at":"2026-04-19T04:31:37.068380+00:00","updated_at":"2026-04-19T04:31:37.068380+00:00"},{"id":675,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-41","title":"PYSEC-2021-41: advisory","description":"Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for an ICNS container, and thus an attempted memory allocation can be very large.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-27922","CVE-2021-27922","GHSA-3wvg-mj6g-m9cv"],"created_at":"2026-04-19T04:31:37.067966+00:00","updated_at":"2026-04-19T04:31:37.067966+00:00"},{"id":674,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-40","title":"PYSEC-2021-40: advisory","description":"Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-27921","CVE-2021-27921","GHSA-f4w8-cv6p-x6r5"],"created_at":"2026-04-19T04:31:37.067585+00:00","updated_at":"2026-04-19T04:31:37.067585+00:00"},{"id":673,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-39","title":"PYSEC-2021-39: advisory","description":"An issue was discovered in Pillow before 8.1.1. There is an out-of-bounds read in SGIRleDecode.c.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-25293","CVE-2021-25293","GHSA-p43w-g3c5-g5mq"],"created_at":"2026-04-19T04:31:37.067194+00:00","updated_at":"2026-04-19T04:31:37.067194+00:00"},{"id":672,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-38","title":"PYSEC-2021-38: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-25292","CVE-2021-25292","GHSA-9hx2-hgq2-2g4f"],"created_at":"2026-04-19T04:31:37.066764+00:00","updated_at":"2026-04-19T04:31:37.066764+00:00"},{"id":671,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-37","title":"PYSEC-2021-37: advisory","description":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is an out-of-bounds read in TiffreadRGBATile via invalid tile boundaries.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-25291","CVE-2021-25291","GHSA-mvg9-xffr-p774"],"created_at":"2026-04-19T04:31:37.066351+00:00","updated_at":"2026-04-19T04:31:37.066351+00:00"},{"id":670,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-36","title":"PYSEC-2021-36: advisory","description":"An issue was discovered in Pillow before 8.1.1. In TiffDecode.c, there is a negative-offset memcpy with an invalid size.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-25290","CVE-2021-25290","GHSA-8xjq-8fcg-g5hw"],"created_at":"2026-04-19T04:31:37.065950+00:00","updated_at":"2026-04-19T04:31:37.065950+00:00"},{"id":669,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:PYSEC-2021-35","title":"PYSEC-2021-35: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.1.1.html","labels":["BIT-pillow-2021-25289","CVE-2021-25289","GHSA-57h3-9rgr-c24m"],"created_at":"2026-04-19T04:31:37.065582+00:00","updated_at":"2026-04-19T04:31:37.065582+00:00"},{"id":668,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.3.0","bug_id":"osv:PYSEC-2021-331","title":"PYSEC-2021-331: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/index.html","labels":["BIT-pillow-2021-34552","CVE-2021-34552","GHSA-7534-mm45-c74v"],"created_at":"2026-04-19T04:31:37.065211+00:00","updated_at":"2026-04-19T04:31:37.065211+00:00"},{"id":667,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9e08eb8f78fdfd2f476e1b20b7cf38683754866b","bug_id":"osv:PYSEC-2021-317","title":"PYSEC-2021-317: advisory","description":"The package pillow from 0 and before 8.3.2 are vulnerable to Regular Expression Denial of Service (ReDoS) via the getrgb function.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.3.2.html","labels":["BIT-pillow-2021-23437","CVE-2021-23437","GHSA-98vv-pw6r-q6q4","SNYK-PYTHON-PILLOW-1319443"],"created_at":"2026-04-19T04:31:37.064830+00:00","updated_at":"2026-04-19T04:31:37.064830+00:00"},{"id":666,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-139","title":"PYSEC-2021-139: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-28675-fix-dos-in-psdimageplugin","labels":["BIT-pillow-2021-28675","CVE-2021-28675","GHSA-g6rj-rv7j-xwp4"],"created_at":"2026-04-19T04:31:37.064315+00:00","updated_at":"2026-04-19T04:31:37.064315+00:00"},{"id":665,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-138","title":"PYSEC-2021-138: advisory","description":"An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_gray_i.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode","labels":["BIT-pillow-2021-25288","CVE-2021-25288","GHSA-rwv7-3v45-hg29"],"created_at":"2026-04-19T04:31:37.063938+00:00","updated_at":"2026-04-19T04:31:37.063938+00:00"},{"id":664,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.2.0","bug_id":"osv:PYSEC-2021-137","title":"PYSEC-2021-137: advisory","description":"An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode","labels":["BIT-pillow-2021-25287","CVE-2021-25287","GHSA-77gc-v2xv-rvvh"],"created_at":"2026-04-19T04:31:37.063512+00:00","updated_at":"2026-04-19T04:31:37.063512+00:00"},{"id":663,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"a09acd0decd8a87ccce939d5ff65dab59e7d365b","bug_id":"osv:PYSEC-2020-84","title":"PYSEC-2020-84: advisory","description":"libImaging/FliDecode.c in Pillow before 6.2.2 has an FLI buffer overflow.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/commit/a09acd0decd8a87ccce939d5ff65dab59e7d365b","labels":["BIT-pillow-2020-5313","CVE-2020-5313","GHSA-hj69-c76v-86wr"],"created_at":"2026-04-19T04:31:37.063045+00:00","updated_at":"2026-04-19T04:31:37.063045+00:00"},{"id":662,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"93b22b846e0269ee9594ff71a72bec02d2bea8fd","bug_id":"osv:PYSEC-2020-83","title":"PYSEC-2020-83: advisory","description":"libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","labels":["BIT-pillow-2020-5312","CVE-2020-5312","GHSA-p49h-hjvm-jg3h"],"created_at":"2026-04-19T04:31:37.062635+00:00","updated_at":"2026-04-19T04:31:37.062635+00:00"},{"id":661,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"a79b65c47c7dc6fe623aadf09aa6192fc54548f3","bug_id":"osv:PYSEC-2020-82","title":"PYSEC-2020-82: advisory","description":"libImaging/SgiRleDecode.c in Pillow before 6.2.2 has an SGI buffer overflow.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","labels":["BIT-pillow-2020-5311","CVE-2020-5311","GHSA-r7rm-8j6h-r933"],"created_at":"2026-04-19T04:31:37.062167+00:00","updated_at":"2026-04-19T04:31:37.062167+00:00"},{"id":660,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"4e2def2539ec13e53a82e06c4b3daf00454100c4","bug_id":"osv:PYSEC-2020-81","title":"PYSEC-2020-81: advisory","description":"libImaging/TiffDecode.c in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","labels":["BIT-pillow-2020-5310","CVE-2020-5310","GHSA-vcqg-3p29-xw73"],"created_at":"2026-04-19T04:31:37.061787+00:00","updated_at":"2026-04-19T04:31:37.061787+00:00"},{"id":659,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:PYSEC-2020-80","title":"PYSEC-2020-80: advisory","description":"In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files, a different issue than CVE-2020-5311.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html","labels":["BIT-pillow-2020-11538","CVE-2020-11538","GHSA-43fq-w8qq-v88h"],"created_at":"2026-04-19T04:31:37.061256+00:00","updated_at":"2026-04-19T04:31:37.061256+00:00"},{"id":658,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.0.0","bug_id":"osv:PYSEC-2020-79","title":"PYSEC-2020-79: advisory","description":"In libImaging/Jpeg2KDecode.c in Pillow before 7.1.0, there are multiple out-of-bounds reads via a crafted JP2 file.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html","labels":["BIT-pillow-2020-10994","CVE-2020-10994","GHSA-vj42-xq3r-hr3r"],"created_at":"2026-04-19T04:31:37.060889+00:00","updated_at":"2026-04-19T04:31:37.060889+00:00"},{"id":657,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"46f4a349b88915787fea3fb91348bb1665831bbb","bug_id":"osv:PYSEC-2020-78","title":"PYSEC-2020-78: advisory","description":"In Pillow before 7.1.0, there are two Buffer Overflows in libImaging/TiffDecode.c.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html","labels":["BIT-pillow-2020-10379","CVE-2020-10379","GHSA-8843-m7mw-mxqm"],"created_at":"2026-04-19T04:31:37.060503+00:00","updated_at":"2026-04-19T04:31:37.060503+00:00"},{"id":656,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6a83e4324738bb0452fbe8074a995b1c73f08de7","bug_id":"osv:PYSEC-2020-77","title":"PYSEC-2020-77: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html","labels":["BIT-pillow-2020-10378","CVE-2020-10378","GHSA-3xv8-3j54-hgrp"],"created_at":"2026-04-19T04:31:37.060050+00:00","updated_at":"2026-04-19T04:31:37.060050+00:00"},{"id":655,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:PYSEC-2020-76","title":"PYSEC-2020-76: advisory","description":"Pillow before 7.1.0 has multiple out-of-bounds reads in libImaging/FliDecode.c.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html","labels":["BIT-pillow-2020-10177","CVE-2020-10177","GHSA-cqhg-xjhh-p8hf"],"created_at":"2026-04-19T04:31:37.059621+00:00","updated_at":"2026-04-19T04:31:37.059621+00:00"},{"id":654,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:PYSEC-2020-172","title":"PYSEC-2020-172: advisory","description":"There is a DoS vulnerability in Pillow before 6.2.2 caused by FpxImagePlugin.py calling the range function on an unvalidated 32-bit integer if the number of bands is large. On Windows running 32-bit Python, this results in an OverflowError or MemoryError due to the 2 GB limit. However, on Linux running 64-bit Python this results in the process being terminated by the OOM killer.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html","labels":["CVE-2019-19911","GHSA-5gm3-px64-rw72"],"created_at":"2026-04-19T04:31:37.059207+00:00","updated_at":"2026-04-19T04:31:37.059207+00:00"},{"id":653,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.0","bug_id":"osv:PYSEC-2019-110","title":"PYSEC-2019-110: advisory","description":"An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pillow.readthedocs.io/en/latest/releasenotes/6.2.0.html","labels":["CVE-2019-16865","GHSA-j7mj-748x-7p78"],"created_at":"2026-04-19T04:31:37.058572+00:00","updated_at":"2026-04-19T04:31:37.058572+00:00"},{"id":652,"ecosystem":"pypi","package_name":"Pillow","affected_version":"2.5.0","fixed_version":"3.1.2","bug_id":"osv:PYSEC-2017-92","title":"PYSEC-2017-92: advisory","description":"Heap-based buffer overflow in the j2k_encode_entry function in Pillow 2.5.0 through 3.1.1 allows remote attackers to cause a denial of service (memory corruption) via a crafted Jpeg2000 file.","severity":"medium","status":"fixed","source":"osv","source_url":"https://bugzilla.redhat.com/show_bug.cgi?id=1321929","labels":["CVE-2016-3076","GHSA-v9pc-9mvp-x87g"],"created_at":"2026-04-19T04:31:37.058182+00:00","updated_at":"2026-04-19T04:31:37.058182+00:00"},{"id":651,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.3.2","bug_id":"osv:PYSEC-2016-9","title":"PYSEC-2016-9: advisory","description":"Pillow before 3.3.2 allows context-dependent attackers to execute arbitrary code by using the \"crafted image file\" approach, related to an \"Insecure Sign Extension\" issue affecting the ImagingNew in Storage.c component.","severity":"medium","status":"fixed","source":"osv","source_url":"http://pillow.readthedocs.io/en/3.4.x/releasenotes/3.3.2.html","labels":["CVE-2016-9190","GHSA-w4vg-rf63-f3j3"],"created_at":"2026-04-19T04:31:37.057803+00:00","updated_at":"2026-04-19T04:31:37.057803+00:00"},{"id":650,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.3.2","bug_id":"osv:PYSEC-2016-8","title":"PYSEC-2016-8: advisory","description":"Pillow before 3.3.2 allows context-dependent attackers to obtain sensitive information by using the \"crafted image file\" approach, related to an \"Integer Overflow\" issue affecting the Image.core.map_buffer in map.c component.","severity":"medium","status":"fixed","source":"osv","source_url":"http://pillow.readthedocs.io/en/3.4.x/releasenotes/3.3.2.html","labels":["CVE-2016-9189","GHSA-rwr3-c2q8-gm56"],"created_at":"2026-04-19T04:31:37.057402+00:00","updated_at":"2026-04-19T04:31:37.057402+00:00"},{"id":649,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"4e0d9b0b9740d258ade40cce248c93777362ac1e","bug_id":"osv:PYSEC-2016-7","title":"PYSEC-2016-7: advisory","description":"Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact via negative values of the new size, which triggers a heap-based buffer overflow.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/commit/4e0d9b0b9740d258ade40cce248c93777362ac1e","labels":["CVE-2016-4009","GHSA-hvr8-466p-75rh"],"created_at":"2026-04-19T04:31:37.057004+00:00","updated_at":"2026-04-19T04:31:37.057004+00:00"},{"id":648,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"893a40850c2d5da41537958e40569c029a6e127b","bug_id":"osv:PYSEC-2016-6","title":"PYSEC-2016-6: advisory","description":"Buffer overflow in the ImagingFliDecode function in libImaging/FliDecode.c in Pillow before 3.1.1 allows remote attackers to cause a denial of service (crash) via a crafted FLI file.","severity":"medium","status":"fixed","source":"osv","source_url":"http://www.debian.org/security/2016/dsa-3499","labels":["CVE-2016-0775","GHSA-8xjv-v9xq-m5h9"],"created_at":"2026-04-19T04:31:37.056521+00:00","updated_at":"2026-04-19T04:31:37.056521+00:00"},{"id":647,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6dcbf5bd96b717c58d7b642949da8d323099928e","bug_id":"osv:PYSEC-2016-5","title":"PYSEC-2016-5: advisory","description":"Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.","severity":"medium","status":"fixed","source":"osv","source_url":"http://www.debian.org/security/2016/dsa-3499","labels":["CVE-2016-0740","GHSA-hggx-3h72-49ww"],"created_at":"2026-04-19T04:31:37.056132+00:00","updated_at":"2026-04-19T04:31:37.056132+00:00"},{"id":646,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"ae453aa18b66af54e7ff716f4ccb33adca60afd4","bug_id":"osv:PYSEC-2016-19","title":"PYSEC-2016-19: advisory","description":"Buffer overflow in the ImagingPcdDecode function in PcdDecode.c in Pillow before 3.1.1 and Python Imaging Library (PIL) 1.1.7 and earlier allows remote attackers to cause a denial of service (crash) via a crafted PhotoCD file.","severity":"medium","status":"fixed","source":"osv","source_url":"http://www.debian.org/security/2016/dsa-3499","labels":["CVE-2016-2533","GHSA-3c5c-7235-994j"],"created_at":"2026-04-19T04:31:37.055721+00:00","updated_at":"2026-04-19T04:31:37.055721+00:00"},{"id":645,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.7.0","bug_id":"osv:PYSEC-2015-16","title":"PYSEC-2015-16: advisory","description":"Pillow before 2.7.0 allows remote attackers to cause a denial of service via a compressed text chunk in a PNG image that has a large size when it is decompressed.","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/pull/1060","labels":["CVE-2014-9601","GHSA-h5rf-vgqx-wjv2"],"created_at":"2026-04-19T04:31:37.055308+00:00","updated_at":"2026-04-19T04:31:37.055308+00:00"},{"id":644,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.5.3","bug_id":"osv:PYSEC-2015-15","title":"PYSEC-2015-15: advisory","description":"The Jpeg2KImagePlugin plugin in Pillow before 2.5.3 allows remote attackers to cause a denial of service via a crafted image.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pypi.python.org/pypi/Pillow/2.5.3","labels":["CVE-2014-3598","GHSA-j6f7-g425-4gmx"],"created_at":"2026-04-19T04:31:37.054907+00:00","updated_at":"2026-04-19T04:31:37.054907+00:00"},{"id":643,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.5.0","bug_id":"osv:PYSEC-2014-87","title":"PYSEC-2014-87: advisory","description":"Python Image Library (PIL) 1.1.7 and earlier and Pillow 2.3 might allow remote attackers to execute arbitrary commands via shell metacharacters in unspecified vectors related to CVE-2014-1932, possibly JpegImagePlugin.py.","severity":"medium","status":"fixed","source":"osv","source_url":"http://people.canonical.com/~ubuntu-security/cve/2014/CVE-2014-1932.html","labels":["CVE-2014-3007","GHSA-8m9x-pxwq-j236"],"created_at":"2026-04-19T04:31:37.054496+00:00","updated_at":"2026-04-19T04:31:37.054496+00:00"},{"id":642,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7","bug_id":"osv:PYSEC-2014-23","title":"PYSEC-2014-23: advisory","description":"The (1) JpegImagePlugin.py and (2) EpsImagePlugin.py scripts in Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.3.1 uses the names of temporary files on the command line, which makes it easier for local users to conduct symlink attacks by listing the processes.","severity":"medium","status":"fixed","source":"osv","source_url":"http://www.ubuntu.com/usn/USN-2168-1","labels":["CVE-2014-1933","GHSA-r854-96gq-rfg3"],"created_at":"2026-04-19T04:31:37.054103+00:00","updated_at":"2026-04-19T04:31:37.054103+00:00"},{"id":641,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"4e9f367dfd3f04c8f5d23f7f759ec12782e10ee7","bug_id":"osv:PYSEC-2014-22","title":"PYSEC-2014-22: advisory","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"http://www.openwall.com/lists/oss-security/2014/02/11/1","labels":["CVE-2014-1932","GHSA-x895-2wrm-hvp7"],"created_at":"2026-04-19T04:31:37.053743+00:00","updated_at":"2026-04-19T04:31:37.053743+00:00"},{"id":640,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"205e056f8f9b06ed7b925cf8aa0874bc4aaf8a7d","bug_id":"osv:PYSEC-2014-10","title":"PYSEC-2014-10: advisory","description":"PIL/IcnsImagePlugin.py in Python Imaging Library (PIL) and Pillow before 2.3.2 and 2.5.x before 2.5.2 allows remote attackers to cause a denial of service via a crafted block size.","severity":"medium","status":"fixed","source":"osv","source_url":"https://pypi.python.org/pypi/Pillow/2.5.2","labels":["CVE-2014-3589","GHSA-cfmr-38g9-f2h7"],"created_at":"2026-04-19T04:31:37.053365+00:00","updated_at":"2026-04-19T04:31:37.053365+00:00"},{"id":639,"ecosystem":"pypi","package_name":"Pillow","affected_version":"c58d2817bc891c26e6b8098b8909c0eb2e7ce61b","fixed_version":"9887544fafcd13cc8afcfa0c6d0f2e6facc1a8b8","bug_id":"osv:OSV-2022-715","title":"Segv on unknown address in jpeg_read_scanlines","description":"OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50217\nhttps://pillow.readthedocs.io/en/stable/releasenotes/9.3.0.html#decode-jpeg-compressed-blp1-data-in-original-mode\n\n```\nCrash type: Segv on unknown address\nCrash state:\njpeg_read_scanlines\nImagingJpegDecode\n_decode\n```\n","severity":"medium","status":"fixed","source":"osv","source_url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50217","labels":[],"created_at":"2026-04-19T04:31:37.052989+00:00","updated_at":"2026-04-19T04:31:37.052989+00:00"},{"id":638,"ecosystem":"pypi","package_name":"Pillow","affected_version":"bb2016794f1f9bf9e4726727080e1beb789823fb","fixed_version":"f7363c1091c70356d92e56abfca6b65bef9e7b26","bug_id":"osv:OSV-2022-1074","title":"Invalid-free in _dealloc","description":"OSS-Fuzz report: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52587\n\n```\nCrash type: Invalid-free\nCrash state:\n_dealloc\n_Py_DECREF\nframe_dealloc\n```\n","severity":"medium","status":"fixed","source":"osv","source_url":"https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=52587","labels":[],"created_at":"2026-04-19T04:31:37.052572+00:00","updated_at":"2026-04-19T04:31:37.052572+00:00"},{"id":637,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:GHSA-xrcv-f9gm-v42c","title":"Out-of-bounds Read in Pillow","description":"path_getbbox in path.c in Pillow before 9.0.0 has a buffer over-read during initialization of ImagePath.Path.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22816","labels":["BIT-pillow-2022-22816","CVE-2022-22816","PYSEC-2022-9"],"created_at":"2026-04-19T04:31:37.052173+00:00","updated_at":"2026-04-19T04:31:37.052173+00:00"},{"id":627,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.3.2","bug_id":"osv:GHSA-rwr3-c2q8-gm56","title":"Pillow Integer overflow in Map.c","description":"Pillow before 3.3.2 allows context-dependent attackers to obtain sensitive information by using the \"crafted image file\" approach, related to an \"Integer Overflow\" issue affecting the `Image.core.map_buffer` in `map.c` component.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-9189","labels":["CVE-2016-9189","PYSEC-2016-8"],"created_at":"2026-04-19T04:31:37.048115+00:00","updated_at":"2026-04-19T04:31:37.048115+00:00"},{"id":626,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.3.1","bug_id":"osv:GHSA-r854-96gq-rfg3","title":"Pillow Temporary file name leakage","description":"The (1) JpegImagePlugin.py and (2) EpsImagePlugin.py scripts in Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.3.1 uses the names of temporary files on the command line, which makes it easier for local users to conduct symlink attacks by listing the processes.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-1933","labels":["CVE-2014-1933","PYSEC-2014-23"],"created_at":"2026-04-19T04:31:37.047726+00:00","updated_at":"2026-04-19T04:31:37.047726+00:00"},{"id":622,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:GHSA-pw3c-h7wp-cvhx","title":"Improper Initialization in Pillow","description":"Pillow is the friendly PIL (Python Imaging Library) fork. `path_getbbox` in `path.c` in Pillow before 9.0.0 improperly initializes `ImagePath.Path`.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22815","labels":["BIT-pillow-2022-22815","CVE-2022-22815","PYSEC-2022-8"],"created_at":"2026-04-19T04:31:37.045964+00:00","updated_at":"2026-04-19T04:31:37.045964+00:00"},{"id":617,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.2","bug_id":"osv:GHSA-jgpv-4h4c-xhw3","title":"Uncontrolled Resource Consumption in pillow","description":"### Impact\n_Pillow before 8.1.1 allows attackers to cause a denial of service (memory consumption) because the reported size of a contained image is not properly checked for a BLP container, and thus an attempted memory allocation can be very large._\n\n### Patches\n_An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image._\n\n### Workarounds\n_An issue was discovered in Pillow before 6.2.0. When reading specially crafted invalid image files, the library can either allocate very large amounts of memory or take an extremely long period of time to process the image._\n\n### References\nhttps://nvd.nist.gov/vuln/detail/CVE-2021-27921\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [example link to repo](http://example.com)\n* Email us at [example email address](mailto:example@example.com)","severity":"medium","status":"fixed","source":"osv","source_url":"https://github.com/calix2/pyVulApp/security/advisories/GHSA-jgpv-4h4c-xhw3","labels":[],"created_at":"2026-04-19T04:31:37.043586+00:00","updated_at":"2026-04-19T04:31:37.043586+00:00"},{"id":611,"ecosystem":"pypi","package_name":"Pillow","affected_version":"5.1.0","fixed_version":"8.2.0","bug_id":"osv:GHSA-hjfx-8p6c-g7gx","title":"Insufficient Verification of Data Authenticity in Pillow","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-28678","labels":["BIT-pillow-2021-28678","CVE-2021-28678","PYSEC-2021-94"],"created_at":"2026-04-19T04:31:37.040758+00:00","updated_at":"2026-04-19T04:31:37.040758+00:00"},{"id":609,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.1.1","bug_id":"osv:GHSA-hggx-3h72-49ww","title":"Pillow Buffer overflow in ImagingLibTiffDecode","description":"Buffer overflow in the `ImagingLibTiffDecode` function in `libImaging/TiffDecode.c` in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-0740","labels":["CVE-2016-0740","PYSEC-2016-5"],"created_at":"2026-04-19T04:31:37.039879+00:00","updated_at":"2026-04-19T04:31:37.039879+00:00"},{"id":608,"ecosystem":"pypi","package_name":"Pillow","affected_version":"4.3.0","fixed_version":"8.1.0","bug_id":"osv:GHSA-hf64-x4gq-p99h","title":"Pillow Out-of-bounds Read","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-35655","labels":["BIT-pillow-2020-35655","CVE-2020-35655","PYSEC-2021-71"],"created_at":"2026-04-19T04:31:37.039450+00:00","updated_at":"2026-04-19T04:31:37.039450+00:00"},{"id":599,"ecosystem":"pypi","package_name":"Pillow","affected_version":"5.1.0","fixed_version":"8.1.1","bug_id":"osv:GHSA-9hx2-hgq2-2g4f","title":"Regular Expression Denial of Service (ReDoS) in Pillow","description":"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.","severity":"medium","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25292","labels":["BIT-pillow-2021-25292","CVE-2021-25292","PYSEC-2021-38"],"created_at":"2026-04-19T04:31:37.035061+00:00","updated_at":"2026-04-19T04:31:37.035061+00:00"},{"id":585,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.0","bug_id":"osv:GHSA-4fx9-vc88-q2xc","title":"Infinite loop in Pillow","description":"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.\n\nIf the EOF marker is not detected as such however, this could lead to an infinite loop where JpegImagePlugin keeps trying to end the file.","severity":"low","status":"fixed","source":"osv","source_url":"https://github.com/python-pillow/Pillow/commit/baae9ec4b67c68e3adaf1208cf54e8de5e38a6fd","labels":[],"created_at":"2026-04-19T04:31:37.028399+00:00","updated_at":"2026-04-19T04:31:37.028399+00:00"},{"id":630,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:GHSA-vcqg-3p29-xw73","title":"Integer overflow in Pillow","description":"`libImaging/TiffDecode.c` in Pillow before 6.2.2 has a TIFF decoding integer overflow, related to realloc.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5310","labels":["BIT-pillow-2020-5310","CVE-2020-5310","PYSEC-2020-81"],"created_at":"2026-04-19T04:31:37.049245+00:00","updated_at":"2026-04-19T04:31:37.049245+00:00"},{"id":625,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:GHSA-r7rm-8j6h-r933","title":"Buffer Copy without Checking Size of Input in Pillow","description":"`libImaging/SgiRleDecode.c` in Pillow before 6.2.2 has an SGI buffer overflow.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5311","labels":["BIT-pillow-2020-5311","CVE-2020-5311","PYSEC-2020-82"],"created_at":"2026-04-19T04:31:37.047288+00:00","updated_at":"2026-04-19T04:31:37.047288+00:00"},{"id":621,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"6.2.2","bug_id":"osv:GHSA-p49h-hjvm-jg3h","title":"PCX P mode buffer overflow in Pillow","description":"libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-5312","labels":["BIT-pillow-2020-5312","CVE-2020-5312","PYSEC-2020-83"],"created_at":"2026-04-19T04:31:37.045534+00:00","updated_at":"2026-04-19T04:31:37.045534+00:00"},{"id":613,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"3.1.1","bug_id":"osv:GHSA-hvr8-466p-75rh","title":"Pillow Integer overflow in ImagingResampleHorizontal","description":"Integer overflow in the `ImagingResampleHorizontal` function in `libImaging/Resample.c` in Pillow before 3.1.1 allows remote attackers to have unspecified impact via negative values of the new size, which triggers a heap-based buffer overflow.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2016-4009","labels":["CVE-2016-4009","PYSEC-2016-7"],"created_at":"2026-04-19T04:31:37.041705+00:00","updated_at":"2026-04-19T04:31:37.041705+00:00"},{"id":594,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"9.0.1","bug_id":"osv:GHSA-8vj2-vxx3-667w","title":"Arbitrary expression injection in Pillow","description":"`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())\")`.\n\nWhile 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.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2022-22817","labels":["BIT-pillow-2022-22817","CVE-2022-22817","PYSEC-2022-10"],"created_at":"2026-04-19T04:31:37.032770+00:00","updated_at":"2026-04-19T04:31:37.032770+00:00"},{"id":593,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"2.5.0","bug_id":"osv:GHSA-8m9x-pxwq-j236","title":"Pillow command injection","description":"Python Image Library (PIL) 1.1.7 and earlier and Pillow before 2.5.0 might allow remote attackers to execute arbitrary commands via shell metacharacters in unspecified vectors related to CVE-2014-1932, possibly JpegImagePlugin.py.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2014-3007","labels":["CVE-2014-3007","PYSEC-2014-87"],"created_at":"2026-04-19T04:31:37.032278+00:00","updated_at":"2026-04-19T04:31:37.032278+00:00"},{"id":588,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.3.0","bug_id":"osv:GHSA-7534-mm45-c74v","title":"Buffer Overflow in Pillow","description":"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.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-34552","labels":["BIT-pillow-2021-34552","CVE-2021-34552","PYSEC-2021-331"],"created_at":"2026-04-19T04:31:37.029854+00:00","updated_at":"2026-04-19T04:31:37.029854+00:00"},{"id":586,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"8.1.1","bug_id":"osv:GHSA-57h3-9rgr-c24m","title":"Out of bounds write in Pillow","description":"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.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-25289","labels":["BIT-pillow-2021-25289","CVE-2021-25289","PYSEC-2021-35"],"created_at":"2026-04-19T04:31:37.028960+00:00","updated_at":"2026-04-19T04:31:37.028960+00:00"},{"id":583,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"7.1.0","bug_id":"osv:GHSA-43fq-w8qq-v88h","title":"Out-of-bounds read in Pillow","description":"In libImaging/SgiRleDecode.c in Pillow through 7.0.0, a number of out-of-bounds reads exist in the parsing of SGI image files, a different issue than CVE-2020-5311.","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-11538","labels":["BIT-pillow-2020-11538","CVE-2020-11538","PYSEC-2020-80"],"created_at":"2026-04-19T04:31:37.027429+00:00","updated_at":"2026-04-19T04:31:37.027429+00:00"},{"id":580,"ecosystem":"pypi","package_name":"Pillow","affected_version":null,"fixed_version":"10.2.0","bug_id":"osv:GHSA-3f63-hfp8-52jq","title":"Arbitrary Code Execution in Pillow","description":"Pillow through 10.1.0 allows PIL.ImageMath.eval Arbitrary Code Execution via the environment parameter, a different vulnerability than CVE-2022-22817 (which was about the expression parameter).","severity":"critical","status":"fixed","source":"osv","source_url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50447","labels":["BIT-pillow-2023-50447","CVE-2023-50447"],"created_at":"2026-04-19T04:31:37.025902+00:00","updated_at":"2026-04-19T04:31:37.025902+00:00"}],"total":114,"_cache":"miss"}