Skip to main content
Vulnerability Database/CVE-2026-114501

CVE-2026-114501: Pillow Information Disclosure Vulnerability

CVE-2026-114501 is an information disclosure flaw in Pillow Python imaging library that exposes uninitialized memory through Arrow exports. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-114501 Overview

CVE-2026-114501 is an information disclosure vulnerability in Pillow, the Python imaging library. The flaw affects versions from 11.2.1 up to (but not including) 13.0.0. When applications configure PILLOW_ALIGNMENT and export images to Apache Arrow, the exported buffer can include uninitialized padding, bytes preceding the first row, or stale heap contents from previously freed images. This allows one user's pixel data or process memory to leak to another user. The weakness is categorized as sensitive information uncleared before release [CWE-226].

Critical Impact

Multi-tenant applications using Pillow's Arrow export with custom alignment can disclose pixels from other users' images or arbitrary heap memory to unauthorized parties.

Affected Products

  • Python Pillow versions 11.2.1 through 12.x
  • Applications using PILLOW_ALIGNMENT with Arrow array export
  • Image processing pipelines relying on Image.__arrow_c_array__ and related interfaces

Discovery Timeline

  • 2026-10-21 - CVE CVE-2026-114501 published to NVD
  • 2026-10-22 - Last updated in NVD database

Technical Details for CVE-2026-114501

Vulnerability Analysis

Pillow's Arrow export path assumes image rows are tightly contiguous in memory. When PILLOW_ALIGNMENT is configured, the allocator pads each row so that aligned_linesize includes trailing row padding or an aligned offset before the first row. The export routine ignores this and reads directly from im->blocks[0].ptr, producing an Arrow buffer that mixes valid pixel data with uninitialized bytes.

Because Pillow's block allocator reuses freed heap regions, those uninitialized bytes often contain remnants of previously freed images or other process memory. A consumer parsing the exported Arrow array therefore receives more data than the producer intended to publish.

Root Cause

The root cause is a mismatch between the memory layout assumed by the Arrow exporter and the layout produced by the aligned allocator. The exporter treats aligned_linesize * height bytes as a single contiguous pixel stream, but padding bytes and pre-row offsets were never initialized by Pillow and are not part of the logical image.

Attack Vector

Exploitation requires the target application to configure PILLOW_ALIGNMENT and to expose Arrow-exported image data to another user or trust boundary. An attacker who can request image conversion or Arrow export, and who can observe the resulting buffer, can read the padding regions to recover pixel data from other users' images or stale heap contents. No authentication or user interaction with the victim is required; the attack vector is network-reachable in web services that offer image-to-Arrow conversion.

text
 The rows of the image must also be contiguous. Images are not
 exportable if the default allocator pads their rows to an alignment
 (``PILLOW_ALIGNMENT``), or if they were created by
 :py:func:`~PIL.Image.frombuffer` with a row stride or with bottom-up
 rows.

Source: Pillow commit 19f64946 — documentation update describing when Arrow export is now rejected.

text
Fixed exporting Arrow arrays from images with non-contiguous rows

Exporting an image as an Arrow array assumed that its rows were contiguous. However,
this was not the case for

* images whose rows were padded to an alignment returned incorrect data,
* empty images,
* images created by PIL.Image.frombuffer, and
* images memory-mapped from uncompressed files.

Images with rows that are not contiguous now raise a ValueError, and the
others are exported correctly.

Source: Pillow 13.0.0 release notes — the fix raises ValueError for non-contiguous images instead of exporting unsafe buffers.

Detection Methods for CVE-2026-114501

Indicators of Compromise

  • Pillow versions between 11.2.1 and 12.x present in pip freeze or SBOM output.
  • Application code or environment variables setting PILLOW_ALIGNMENT to a value greater than 1.
  • Calls to Image.__arrow_c_array__, pyarrow.array(image), or similar Arrow export entry points on PIL images.

Detection Strategies

  • Scan dependency manifests (requirements.txt, poetry.lock, Pipfile.lock, container images) for vulnerable Pillow versions.
  • Perform static analysis for Arrow export calls combined with non-default PILLOW_ALIGNMENT configuration.
  • Review multi-tenant image processing services for code paths that return raw Arrow buffers derived from PIL images.

Monitoring Recommendations

  • Log Pillow version and alignment configuration at service startup to confirm patched builds are deployed.
  • Alert on anomalous outbound Arrow payload sizes that exceed the expected pixel count for a given image geometry.
  • Track SCA tool findings for GHSA-654x-cwwv-5j9c across build pipelines.

How to Mitigate CVE-2026-114501

Immediate Actions Required

  • Upgrade Pillow to version 13.0.0 or later across all application and container environments.
  • Audit services that use Arrow export to confirm whether PILLOW_ALIGNMENT is set, and remove the setting if not required.
  • Treat previously exported Arrow buffers from vulnerable versions as potentially containing leaked data and purge them from downstream caches.

Patch Information

The fix is included in Pillow 13.0.0 via pull request #10172 and commit 19f64946eb247b973dd4560be7dea3bf979d2e6a. Images with non-contiguous rows now raise ValueError on Arrow export rather than returning buffers containing uninitialized memory. Full details are in the GitHub Security Advisory GHSA-654x-cwwv-5j9c and the Pillow 13.0.0 release notes.

Workarounds

  • Unset PILLOW_ALIGNMENT or leave it at the default so rows remain tightly packed.
  • Avoid Arrow export for images created with PIL.Image.frombuffer using a custom row stride or bottom-up rows.
  • Copy image data into a freshly allocated contiguous buffer before invoking Arrow export when upgrading is not immediately possible.
bash
# Upgrade Pillow to the patched release
pip install --upgrade 'Pillow>=13.0.0'

# Verify installed version
python -c "import PIL; print(PIL.__version__)"

# Confirm alignment is not forcing row padding (should be unset or 1)
echo "PILLOW_ALIGNMENT=${PILLOW_ALIGNMENT:-unset}"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.