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

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability: affected before 12.3.0 (CNA); fix release not confirmed
- Status: published
- Published: 2026-07-14 · Modified: 2026-07-14
- Aliases: GHSA-62p4-gmf7-7g93, BIT-pillow-2026-54058, PYSEC-2026-3493, UBUNTU-CVE-2026-54058, DEBIAN-CVE-2026-54058, CGA-2c3h-c8w6-qc76, CGA-4cwr-4534-rvhf, CGA-5f6h-4xq5-c94v, CGA-5jvm-fh3g-3mww, CGA-753j-hxwp-r35f, CGA-7wc4-wc9j-h6jx, CGA-9mr8-2r53-3vr2, CGA-9xm7-4mjp-6fhq, CGA-cgxx-g457-gjmw, CGA-fh25-44mm-5g3p, CGA-jc7j-vr95-56fr, CGA-jhmq-f4j5-4vwm, CGA-jrwp-xmw2-9j8j, CGA-v3v6-846j-wmfq, CGA-vr96-fjjc-q6hv, openSUSE-SU-2026:11839-1, CGA-2xfx-g3w6-c4mw, CGA-33xw-43xq-p6r9, CGA-3h75-3222-63v4, CGA-5j32-hj63-pjrf, CGA-5vpp-m76h-9ppp, CGA-6478-r983-8vr3, CGA-7qqq-xrgv-q9gh, CGA-84qx-79mh-wqrv, CGA-8mh5-27ch-grg3, CGA-gw4w-8rjj-5jc8, CGA-h3f2-jx69-7fv9, CGA-j6g7-38cw-rc9f, CGA-rj3j-hqh3-pm95, CGA-vr7h-77cr-gc57, CGA-xvvh-jg2p-qw6f, CGA-xxpw-7qcg-7mjf
- Record: https://cvemate.com/vulnerability/CVE-2026-54058 · JSON: https://cvemate.com/vulnerability/CVE-2026-54058/json

## Description

```text
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 access such as Image.tobytes(), getpixel, convert, or save to read beyond the mapped region and disclose adjacent process memory or fault. This issue is fixed in version 12.3.0.
```

## Signals

- CVSS: 9.1 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
- EPSS: 0.476%, percentile 42.727%, 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 27)

- chainguard label-studio (Chainguard): \< 1.23.0-r11
- chainguard lmcache-cuda-12.8 (Chainguard): \< 0.5.3-r0
- chainguard mlflow (Chainguard): \< 3.14.0-r2 \| \< 3.16.0-r0
- chainguard open-webui (Chainguard): \< 0.10.2-r1 \| All versions (No fix recorded) \| \< 0.11.0-r0
- chainguard openstack-horizon-2025.2 (Chainguard): \< 25.5.2\_git20260617-r4
- chainguard openstack-horizon-2025.2-fips (Chainguard): \< 25.5.2\_git20260617-r5
- chainguard openstack-horizon-2026.1 (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard openstack-horizon-2026.1-fips (Chainguard): \< 25.7.3\_git20260630-r2
- chainguard superset-6.0 (Chainguard): \< 6.0.0-r13
- chainguard superset-6.1 (Chainguard): \< 6.1.0-r6
- chainguard superset-6.1-iamguarded-compat (Chainguard): All versions (No fix recorded)
- chainguard superset-fips-6.1 (Chainguard): \< 6.1.0-r5
- chainguard tensorflow-gpu-jupyter (Chainguard): \< 2.21.0-r7
- chainguard text-generation-inference (Chainguard): \< 3.3.7-r20
- chainguard tritonserver-backend-vllm-cuda-13.0 (Chainguard): \< 25.11-r11
- wolfi mlflow (Wolfi): \< 3.14.0-r2 \| \< 3.16.0-r0
- wolfi open-webui (Wolfi): \< 0.10.2-r1 \| All versions (No fix recorded) \| \< 0.11.0-r0
- wolfi superset-6.0 (Wolfi): \< 6.0.0-r13
- wolfi superset-6.1 (Wolfi): \< 6.1.0-r6
- wolfi superset-6.1-iamguarded-compat (Wolfi): All versions (No fix recorded)

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93>
- <https://github.com/python-pillow/Pillow/pull/9719>
- <https://github.com/python-pillow/Pillow/commit/6a8de891fb00968e5ea79bfa84368ed90b3cfc1d>
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54058>
- <https://github.com/python-pillow/Pillow>
- <https://pypi.org/project/pillow>
- <https://github.com/advisories/GHSA-62p4-gmf7-7g93>
- <https://ubuntu.com/security/CVE-2026-54058>
- <https://www.cve.org/CVERecord?id=CVE-2026-54058>
- <https://security-tracker.debian.org/tracker/CVE-2026-54058>
- <https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/54xxx/CVE-2026-54058.json>
- <https://www.suse.com/security/cve/CVE-2026-54058>
- <https://ubuntu.com/security/notices/USN-8999-1>

---

Data as of 2026-12-05T04:12:57.884Z. 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
