# CVE-2026-112897: Pillow: TiffDecode returns uninitialized memory as pixels for short JPEG strips

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 13.0.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-10-19 · Modified: 2026-10-22
- Aliases: DEBIAN-CVE-2026-112897, GHSA-q45j-58j2-45rg, CGA-78ff-5c2f-jxmj, CGA-85qc-frvc-w955, CGA-9g27-xj52-j45f, CGA-gc7q-29jv-hf79, CGA-gp4r-v3ch-36xg, CGA-qxhx-2777-6g9p, CGA-2cjp-w4p2-9965, CGA-4gm7-g3g7-5mcr, CGA-4x8w-vfhq-ggg7, CGA-6x48-92h2-63qr, CGA-7w62-6h9m-f5cm, CGA-8rj4-mw53-pvwq, CGA-p34j-h47v-gpvj, CGA-qxcf-2cg9-6554, CGA-rgm7-f6fc-p5q6, CGA-wcm7-vmm7-mvpp, CGA-rf4m-3jhg-qf9w, CGA-24hp-jv9x-rq6c, CGA-29c2-26c3-xjxq, CGA-4f8j-r75g-mr7f, CGA-9xwq-qm3h-fc4f, CGA-mgr5-9985-f78m, CGA-j7r7-697g-g6q4, CGA-mc29-g6p3-566w, CGA-p459-vj39-g922, CGA-p7h5-7phw-rhr4, CGA-x83x-726w-9xgg, CGA-365j-7x4x-85g8, CGA-5xvg-p9fm-jmm2, CGA-6jf8-p226-8w87, CGA-6xx6-7h92-prq5, CGA-cvgj-mv2m-r8wc, CGA-cvm5-xh9v-p6hr, CGA-frfw-vm28-hvqr, CGA-ghv5-3x27-668w, CGA-hpmj-33cm-c3cq, CGA-mgc5-m898-2h6h, CGA-mqrm-qfrm-3qmm, CGA-r4g2-58qm-24xg, CGA-rg3g-fcx6-76fx, CGA-rpfr-hm79-f6hv, CGA-v998-7m2f-mw2g, CGA-42c5-w4rp-mw6m, CGA-jppq-rhr6-m33h, CGA-7grh-3342-mxw3, CGA-8fw5-p3w2-8jpf, CGA-ggww-5gxq-qfmq, CGA-hc7q-7vx3-fpw9, CGA-323r-wv8q-hv29, CGA-673q-qhm7-qw4h, CGA-g63w-g8gf-74v5, CGA-58c6-9cw4-mm8p, CGA-ffxg-wf8f-pv6v, CGA-jhxq-rqc9-j4h4, CGA-397g-4xxc-6h3q, CGA-f9mc-jcc5-3h82, CGA-rw5r-5pvq-f262, CGA-998m-vhmg-w634, CGA-hvh6-p7hj-f8mw, CGA-jjrp-pq92-wvm2, CGA-vhq6-4ggj-77pw, CGA-f6r7-q8jc-wphp, CGA-443m-6ch4-rg7q, UBUNTU-CVE-2026-112897, CGA-fjv6-w3v5-mxfw, CGA-555p-4fvh-w577, CGA-rgqg-579v-53fj, CGA-77f2-q7m9-43m3, CGA-g46g-qfv7-5vfg, CGA-g5x5-c5mp-vcx9, CGA-qj7m-7r52-xhfv, CGA-v36m-g5gm-pgf3, CGA-vmq3-mh6v-g499, CGA-pf5g-v38f-3wmc, BIT-pillow-2026-112897, CGA-cq5v-w6gw-4v3p, CGA-54c8-79qm-f236, CGA-j84p-fv4h-xxg9, CGA-m68p-x4g8-8r9r, CGA-pfhw-739j-c9h4, CGA-wg4g-hhqc-gqq7
- Record: https://cvemate.com/vulnerability/CVE-2026-112897 · JSON: https://cvemate.com/vulnerability/CVE-2026-112897/json

## Description

```text
Pillow is a Python imaging library. From 5.3.0 until 13.0.0, Pillow can return uninitialized memory as pixels when libtiff performs a short decode of JPEG-compressed or Group 4 fax TIFF data. The _decodeStrip and _decodeTile buffers can be larger than the bytes written by libtiff, but Pillow converts the expected rows without clearing the unwritten tail. The tile path is affected from 5.3.0 and the strip path from 6.0.0. An attacker can supply a crafted TIFF to an application that loads and returns or re-encodes its pixels. This can disclose stale heap contents without memory corruption or a process crash. This issue is fixed in version 13.0.0.
```

## Signals

- CVSS: 8.7 high (v4.0, CVE.org) CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- EPSS: 0.479%, percentile 43.007%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected (first 20 of 63)

- chainguard apache-beam-python-3.11-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r2
- chainguard apache-beam-python-3.12-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r5
- chainguard apache-beam-python-3.13-sdk (Chainguard): All versions (No fix recorded) \| \< 2.77.0-r5
- chainguard apache-beam-python-3.14-sdk (Chainguard): \< 2.77.0-r5
- chainguard gftools (Chainguard): All versions (No fix recorded) \| \< 0.10.4-r1
- chainguard jupyter-all-spark-notebook (Chainguard): All versions (No fix recorded) \| \< 7.6.1\_git20261016-r1
- chainguard kserve-storage-controller (Chainguard): All versions (No fix recorded) \| \< 0.21.0-r9
- chainguard kserve-xgbserver (Chainguard): All versions (No fix recorded) \| \< 0.21.0-r3
- chainguard kubeflow-pipelines-visualization-server (Chainguard): All versions (No fix recorded) \| \< 2.17.2-r7
- chainguard label-studio (Chainguard): \< 1.23.2-r2
- chainguard mlflow (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r2
- chainguard mlflow-fips (Chainguard): All versions (No fix recorded) \| \< 3.17.2-r3
- chainguard nemo-gym (Chainguard): \< 0.5.0\_rc0\_git20260729-r6
- chainguard nemo-rl-cuda-13.0 (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-automodel (Chainguard): All versions (No fix recorded)
- chainguard nemo-rl-cuda-13.0-mcore (Chainguard): All versions (No fix recorded) \| \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-sglang (Chainguard): \< 0.7.0-r11
- chainguard nemo-rl-cuda-13.0-vllm (Chainguard): \< 0.7.0-r11
- chainguard nemo-skills (Chainguard): All versions (No fix recorded) \| \< 0.7.0\_git20260911-r5
- chainguard netbox (Chainguard): \< 4.7.3-r1

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-q45j-58j2-45rg>
- <https://github.com/python-pillow/Pillow/commit/1d4773e6cea0c4a2814e6d4cdc099bbcf56da6ce>
- <https://github.com/python-pillow/Pillow/releases/tag/13.0.0>
- <https://security-tracker.debian.org/tracker/CVE-2026-112897>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-112897>
- <https://github.com/python-pillow/Pillow>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/112xxx/CVE-2026-112897.json>
- <https://ubuntu.com/security/CVE-2026-112897>
- <https://www.cve.org/CVERecord?id=CVE-2026-112897>
- <https://ubuntu.com/security/notices/USN-9064-1>

---

Data as of 2026-12-05T03:09:40.821Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
