Skip to content
OpenAdvisories
High SUSE-SU-2026:3268-1 11 CVEs

Security update for python-Pillow

Published Jul 27, 2026 · Updated Jul 28, 2026

Summary

This update for python-Pillow fixes the following issues:

- CVE-2026-54058: out-of-bounds read via attacker-controlled row stride on `mmap` path (bsc#1271419).
- CVE-2026-54059: bomb protection bypass via PCF font loading due to `Image.frombytes()` being called without
`_decompression_bomb_check()` (bsc#1270409).
- CVE-2026-54060: excessive allocation due to `FontFile.compile()`: `Image.new()` being called without
`_decompression_bomb_check()` (bsc#1270410).
- CVE-2026-55379: bomb protection bypass via font loading due to `Image.new()` being called without
`_decompression_bomb_check()` (bsc#1270411).
- CVE-2026-55380: unchecked 4.3 GB C-heap allocation due to image dimensions being accepted without
`_decompression_bomb_check()` in `GdImageFile._open()` (bsc#1270412).
- CVE-2026-59197: heap out-of-bounds write in `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`
(bsc#1271418).
- CVE-2026-59198: out-of-bounds heap data copied into file generated by TGA RLE encoder (bsc#1271420).
- CVE-2026-59199: heap out-of-bounds write in `Image.paste()` and `Image.crop()` via signed coordinate overflow
(bsc#1271421).
- CVE-2026-59200: decompression bomb DoS via `PdfParser.PdfStream.decode()` (bsc#1271422).
- CVE-2026-59204: denial of service through memory exhaustion via JPEG2000 tiled decoder (bsc#1271424).
- CVE-2026-59205: controlled heap out-of-bounds write in `ImageCmsTransform.apply()` via output mode mismatch
(bsc#1271425).

Fixed packages 11

ReleasePackageFixed in
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-ESPOS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLE HPC 15 SP4 Linux Enterprise High Performance Computing 15 SP4-LTSS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-ESPOS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLE HPC 15 SP5 Linux Enterprise High Performance Computing 15 SP5-LTSS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES 3 Linux Enterprise Module for Python 3 15 SP7 python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES 15 SP4 Linux Enterprise Server 15 SP4-LTSS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES 15 SP5 Linux Enterprise Server 15 SP5-LTSS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES 15 SP6 Linux Enterprise Server 15 SP6-LTSS python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES for SAP 15 SP4 Linux Enterprise Server for SAP Applications 15 SP4 python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES for SAP 15 SP5 Linux Enterprise Server for SAP Applications 15 SP5 python-Pillow 9.5.0-150400.5.25.1
SUSE · SLES for SAP 15 SP6 Linux Enterprise Server for SAP Applications 15 SP6 python-Pillow 9.5.0-150400.5.25.1

Vulnerabilities 11

  • High 8.7

    Pillow JPEG2000 tiled decode retains a growing scratch buffer and can be used for denial of service

    Pillow is a Python imaging library. From 8.2.0 through 12.2.0, src/libImaging/Jpeg2KDecode.c accumulates total_component_width across every tile in a JPEG2000 image instead of recomputing it per tile, allowing a crafted tiled JPEG2000 file to force substantia…

  • High 8.3

    Pillow: Out-of-bounds read via attacker-controlled row stride on Pillow's mmap path (McIdas AREA files)

    Pillow is a Python imaging library. Prior to 12.3.0, when Pillow loads an uncompressed McIdas AREA image from a filename through the mmap raw codec path, attacker-controlled header words can set a row stride smaller than the natural row width, causing pixel a…

  • High 8.2

    Pillow: Heap out-of-bounds write in Pillow `ImageFilter.RankFilter` via integer overflow in `ImagingExpand`

    Pillow is a Python imaging library. Prior to 12.3.0, Pillow's public rank-filter API can trigger a native heap out-of-bounds write when given a very large odd filter size because ImageFilter.RankFilter.filter() calls image.expand(size // 2, size // 2) before …

  • High 7.5

    Pillow: PcfFontFile._load_bitmaps()`: `Image.frombytes()` called without `_decompression_bomb_check()` — bomb protection bypass via PCF font loading

    Pillow is a Python imaging library. Prior to 12.3.0, PIL/PcfFontFile.py _load_bitmaps() read glyph dimensions from the PCF METRICS section and passed them directly to Image.frombytes() without calling Image._decompression_bomb_check(), allowing crafted PCF fo…

  • High 7.5

    Pillow: `FontFile.compile()`: `Image.new()` called without `_decompression_bomb_check()`

    Pillow is a Python imaging library. Prior to 12.3.0, PIL/FontFile.py FontFile.compile() assembled per-glyph images into a combined bitmap with Image.new("1", (xsize, ysize)) without calling Image._decompression_bomb_check(), allowing a font to trigger excessi…

  • High 7.5

    Pillow BdfFontFile`: `Image.new()` called without `_decompression_bomb_check()` — bomb protection bypass via font loading

    Pillow is a Python imaging library. Prior to 12.3.0, PIL/BdfFontFile.py bdf_char() read the BBX width and height field from a BDF font file and passed attacker-controlled dimensions to Image.new() without calling Image._decompression_bomb_check(), bypassing P…

  • High 7.5

    Pillow GdImageFile decompression bomb protection bypass

    Pillow is a Python imaging library. Prior to 12.3.0, PIL/GdImageFile.py GdImageFile._open() read image dimensions from the GD 2.x header and stored them in self._size without calling Image._decompression_bomb_check(), allowing a crafted .gd file to trigger ex…

  • High 7.5

    Pillow: Heap out-of-bounds write `Image.paste()` / `Image.crop()` via signed coordinate overflow

    Pillow is a Python imaging library. Prior to 12.3.0, Pillow public image coordinate APIs can trigger a native heap out-of-bounds write when given coordinates near the signed 32-bit integer limits in Image.paste(), Image.crop(), or Image.alpha_composite(). Thi…

  • High 7.5

    Pillow: Decompression Bomb DoS via PdfParser.PdfStream.decode()

    Pillow is a Python imaging library. From 5.1.0 until 12.3.0, PdfParser.PdfStream.decode() in PIL/PdfParser.py calls zlib.decompress() with bufsize set to the PDF stream Length field without bounding the decompressed output size, allowing a crafted FlateDecode…

  • High 7.5

    Pillow: Controlled heap out-of-bounds write in `ImageCmsTransform.apply()` via output mode mismatch

    Pillow is a Python imaging library. Prior to 12.3.0, Pillow's ImageCms.ImageCmsTransform.apply(im, imOut) API can trigger controlled native heap corruption when the caller supplies an output image whose mode does not match the transform's declared output mode…

  • Medium 6.5

    Pillow TGA RLE encoder can serialize up to ~57 KB of adjacent heap data into generated images

    Pillow is a Python imaging library. From 5.2.0 until 12.3.0, Pillow's TGA RLE encoder reads past its packed row buffer when saving a mode 1 image with TGA RLE compression, allowing adjacent process heap bytes to be copied into the generated TGA file. This iss…

References

  • report
    https://bugzilla.suse.com/1270409
  • report
    https://bugzilla.suse.com/1270410
  • report
    https://bugzilla.suse.com/1270411
  • report
    https://bugzilla.suse.com/1270412
  • report
    https://bugzilla.suse.com/1271418
  • report
    https://bugzilla.suse.com/1271419
  • report
    https://bugzilla.suse.com/1271420
  • report
    https://bugzilla.suse.com/1271421
  • report
    https://bugzilla.suse.com/1271422
  • report
    https://bugzilla.suse.com/1271424
  • report
    https://bugzilla.suse.com/1271425
  • web
    https://www.suse.com/security/cve/CVE-2026-54058
  • web
    https://www.suse.com/security/cve/CVE-2026-54059
  • web
    https://www.suse.com/security/cve/CVE-2026-54060
  • web
    https://www.suse.com/security/cve/CVE-2026-55379
  • web
    https://www.suse.com/security/cve/CVE-2026-55380
  • web
    https://www.suse.com/security/cve/CVE-2026-59197
  • web
    https://www.suse.com/security/cve/CVE-2026-59198
  • web
    https://www.suse.com/security/cve/CVE-2026-59199
  • web
    https://www.suse.com/security/cve/CVE-2026-59200
  • web
    https://www.suse.com/security/cve/CVE-2026-59204
  • web
    https://www.suse.com/security/cve/CVE-2026-59205