{"id":"DHI-dfrz-3ysd-cuer-ynrl","aliases":[],"title":"### Summary","originalDescription":"### Summary Every Pillow wheel from 11.1.0 onward bundles a libopenjp2 containing a heap-buffer-overflow **write** that is fixed upstream on master but has never appeared in an OpenJPEG release. See https://osv.dev/vulnerability/OSV-2025-219 Because the wheel bundles its own copy, a patched host OS does not help. It is reachable from `Image.open(fp); im.load()` with default settings. I am reporting it here rather than only upstream because Pillow is where the vulnerable binary actually reaches users. Note the inversion that makes this easy to miss: **OpenJPEG 2.5.2 and earlier are safe.** The bug was introduced in `954c6e3c` (2024-06-25), so keeping the dependency current is what creates the exposure. ### Details ## Affected wheels From `.github/dependencies.json` (`openjpeg`) at each tag: | Pillow | bundled OpenJPEG | status | |---|---|---| | 10.4.0 | 2.5.2 | safe | | 11.0.0 | 2.5.2 | safe | | **11.1.0, 11.2.1, 11.3.0** | **2.5.3** | **affected** | | **12.0.0 … 12.3.0** | **2.5.4** | **affected** | Confirmed on an installed wheel: `PIL.features.version_codec('jpg_2000')` → `2.5.4`, bundled file `pillow.libs/libopenjp2-*.so.2.5.4`. `main` still pins `2.5.4` as of 2026-10-06. ## The","severity":{"cvss":null,"vector":null,"label":null},"exploitation":{"kev":null,"epss":null,"exploitDb":null},"affected":[],"references":[{"url":"https://scout.docker.com/v/DHI-dfrz-3ysd-cuer-ynrl","type":"advisory"},{"url":"https://github.com/advisories/GHSA-78g4-xqwv-q3g8","type":"advisory"},{"url":"https://github.com/python-pillow/Pillow/security/advisories/GHSA-78g4-xqwv-q3g8","type":"advisory"},{"url":"https://github.com/uclouvain/openjpeg/commit/91d08b11a72764f6d199f32fa0c1b1abd4edc2ad","type":"fix"},{"url":"https://github.com/python-pillow/Pillow/commit/d3470c327840f4c216a1610f30e7091dfd0b97c0","type":"fix"},{"url":"https://github.com/python-pillow/Pillow/commit/5f8114c8096b181fae493543cd3837d9f9a971cc","type":"fix"},{"url":"https://github.com/python-pillow/Pillow/releases/tag/13.0.0","type":"web"}],"sources":[{"name":"osv","at":"2026-11-26T15:09:14.830Z","url":"https://osv.dev/vulnerability/DHI-dfrz-3ysd-cuer-ynrl","license":"CC-BY 4.0","firstSeenAt":"2026-11-24T11:51:48.271Z"}],"firstSeenAt":"2026-11-24T11:51:48.271Z","publishedAt":"2026-11-20T16:49:19.000Z","modifiedAt":"2026-11-26T15:00:06.943Z"}