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

- Severity: High 8.3 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.48%, higher than 33% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-07-14T16:27:38.050Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-62p4-gmf7-7g93, BIT-PILLOW-2026-54058, PYSEC-2026-3493
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- python-pillow Pillow: < 12.3.0
- pillow (PyPI): before 12.3.0
- python pillow: before 12.3.0
- pillow (Bitnami): before 12.3.0

## Every score

- GitHub_M: CVSS:4.0 8.3 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H`
- PyPA Advisory Database: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/python-pillow/Pillow/security/advisories/GHSA-62p4-gmf7-7g93> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/python-pillow/Pillow/pull/9719> (fix, issue-tracking, patch, web)
- <https://github.com/python-pillow/Pillow/commit/6a8de891fb00968e5ea79bfa84368ed90b3cfc1d> (fix, patch, web)
- <https://github.com/python-pillow/Pillow/releases/tag/12.3.0> (article, product, release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-54058> (advisory, web)
- <https://github.com/python-pillow/Pillow> (package)
- <https://pypi.org/project/pillow> (package)
- <https://github.com/advisories/GHSA-62p4-gmf7-7g93> (advisory)

## Sources

- CVE List: [CVE-2026-54058](https://www.cve.org/CVERecord?id=CVE-2026-54058), CVE Terms of Use, modified 2026-07-14
- GitHub Advisory Database: [GHSA-62p4-gmf7-7g93](https://github.com/advisories/GHSA-62p4-gmf7-7g93), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-54058](https://nvd.nist.gov/vuln/detail/CVE-2026-54058), Public domain, modified 2026-10-24
- PyPA Advisory Database: [PYSEC-2026-3493](https://osv.dev/vulnerability/PYSEC-2026-3493), CC-BY-4.0, modified 2026-07-23
- Bitnami Vulnerability Database: [BIT-PILLOW-2026-54058](https://osv.dev/vulnerability/BIT-PILLOW-2026-54058), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-54058 · Whole record: https://cve.day/CVE-2026-54058.json · Rebuilt by cve.day 2026-11-25T22:59:27.968Z
