Medium
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-0740
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:02 UTC · Revision 1
Source evidence
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.
osv:CVE-2016-0740
Complete source record
{
"id": "fafb8a11cceaf10fdf2a9e766e751323914b107347d74c9633c609a838ac0f5a",
"url": "https://osv.dev/vulnerability/CVE-2016-0740",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-0740",
"summary": "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.",
"evidence": "osv:CVE-2016-0740",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2016-0740",
"aliases": [
"CVE-2016-0740",
"GHSA-hggx-3h72-49ww",
"PYSEC-2016-5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/python-pillow/pillow",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "fff5536b37c2d619c66c1189b6925fa0a8df3822"
},
{
"fixed": "6dcbf5bd96b717c58d7b642949da8d323099928e"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "3.1.0"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "6dcbf5bd96b717c58d7b642949da8d323099928e"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"3.1.0",
"3.1.0-rc1",
"2.9.0",
"2.9.0.dev2",
"2.9.0.dev1",
"2.9.0.dev0",
"2.8.1",
"2.8.0",
"2.7.0",
"2.5.0",
"2.3.0",
"2.2.1",
"2.2.0",
"2.1.0",
"2.0.0",
"1.7.8",
"1.7.7",
"1.2",
"1.0"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-0740.json",
"vanir_signatures": [
{
"id": "CVE-2016-0740-b7d6454e",
"digest": {
"threshold": 0.9,
"line_hashes": [
"29574709106573506672061254354930231163",
"177000773178755356185921572642180068015",
"218009138334723425649690001430230240593",
"165989606112090444130397288823962577566"
]
},
"source": "https://github.com/python-pillow/pillow/commit/6dcbf5bd96b717c58d7b642949da8d323099928e",
"target": {
"file": "libImaging/TiffDecode.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:03:47Z"
}
}
],
"modified": "2026-10-24T14:03:47.949873703Z",
"provider": "osv",
"references": [
"https://security.gentoo.org/glsa/201612-52",
"https://github.com/python-pillow/Pillow/blob/c3cb690fed5d4bf0c45576759de55d054916c165/CHANGES.rst",
"https://github.com/python-pillow/Pillow/commit/6dcbf5bd96b717c58d7b642949da8d323099928e"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "7.0"
},
{
"last_affected": "7.0"
},
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2016-0740",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 442853,
"published_at": "2016-04-13T16:59:01.377+00:00"
}