The exifprocessIFDinTIFF function in ext/exif/exif.c in PHP before 5.6.25 and 7.x before 7.0.10 mishandles the case of a thumbnail offset that exceeds the file size, which allows remote attackers to obtain sensitive information from process memory via a crafted TIFF image.
{
"cpe": [
"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "5.6.24"
},
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.0"
},
{
"introduced": "7.0.1"
},
{
"last_affected": "7.0.1"
},
{
"introduced": "7.0.2"
},
{
"last_affected": "7.0.2"
},
{
"introduced": "7.0.3"
},
{
"last_affected": "7.0.3"
},
{
"introduced": "7.0.4"
},
{
"last_affected": "7.0.4"
},
{
"introduced": "7.0.5"
},
{
"last_affected": "7.0.5"
},
{
"introduced": "7.0.6"
},
{
"last_affected": "7.0.6"
},
{
"introduced": "7.0.7"
},
{
"last_affected": "7.0.7"
},
{
"introduced": "7.0.8"
},
{
"last_affected": "7.0.8"
},
{
"introduced": "7.0.9"
},
{
"last_affected": "7.0.9"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}[
{
"source": "https://github.com/php/php-src/commit/6dbb1ee46b5f4725cc6519abf91e512a2a10dfed",
"signature_version": "v1",
"signature_type": "Line",
"digest": {
"line_hashes": [
"113995618109138763489426236600846229519",
"207010564147224868569939080510464845863",
"12225492273767835515959966646041988909",
"199120476063143625235472752618703837168",
"211446056386641717420862799601742907394",
"55640858025059606115613149648190827300"
],
"threshold": 0.9
},
"deprecated": false,
"id": "CVE-2016-7128-a782b938",
"target": {
"file": "ext/exif/exif.c"
}
},
{
"source": "https://github.com/php/php-src/commit/6dbb1ee46b5f4725cc6519abf91e512a2a10dfed",
"signature_version": "v1",
"signature_type": "Function",
"digest": {
"function_hash": "215008229581677938185334749663650265429",
"length": 7964.0
},
"deprecated": false,
"id": "CVE-2016-7128-b22bc4ec",
"target": {
"function": "exif_process_IFD_in_TIFF",
"file": "ext/exif/exif.c"
}
}
]
"2026-07-08T12:41:39Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-7128.json"