// Security Advisory Triage
Pillow 11.1.0–12.x heap overflow via bundled libopenjp2
GitHub advisories — pip · published 2026-10-23 04:55 UTC
WHAT CHANGEDGitHub published GHSA-78g4-xqwv-q3g8 on 22 October 2026, rating high severity. Pillow versions 11.1.0 through 12.x bundle libopenjp2 2.5.4, which contains OSV-2025-219, a heap-buffer-overflow write reachable through Image.open().load(). First patched version is 13.0.0.
WHY IT MATTERSAny service that calls Image.open().load() on untrusted input—uploaded images, scraped content, user-supplied files—can trigger the overflow. Pillow is a common dependency in Python web services and data pipelines, making this reachable from public attack surface.
WHAT TO DOGrep your requirements files and lockfiles for pillow<13.0.0. Upgrade to 13.0.0 or later in this cycle. If you cannot upgrade immediately, audit all Image.open() call sites and ensure they process only trusted sources until patched.
Model-reported confidence 95% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+ghsa_id: GHSA-78g4-xqwv-q3g8 +summary: Pillow: Bundled libopenjp2 2.5.4 in all wheels since 11.1.0 carries OSV-2025-219 heap-buffer-overflow write reachable from Image.open().load() +severity: high +published_at: 2026-10-22T17:01:08Z +cve_id: +vulnerabilities[].package.name: pillow +vulnerabilities[].first_patched_version: 13.0.0
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | Pillow is a standard Python image library in many service dependency trees. Heap-buffer-overflow reachable from public API is exploitable. |
| signals | known vulnerability in bundled dependency (libopenjp2) · heap-buffer-overflow in image processing · reachable from public API (Image.open().load()) · pillow is a common dependency in Python services · first patched version specified (13.0.0) · high severity rating with exploitation vector |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |