High
Security advisory
The exif_convert_any_to_int function in ext/exif/exif.c in PHP before 5.6.30, 7.0.x before 7.0.15, and 7.1.x before 7.1.1 allows remote attackers to cause a denial of service (application crash) via crafted EXIF data that triggers an attempt to divide the minimum representable negative integer by -1.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-10158
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:10 UTC · Revision 1
Source evidence
The exif_convert_any_to_int function in ext/exif/exif.c in PHP before 5.6.30, 7.0.x before 7.0.15, and 7.1.x before 7.1.1 allows remote attackers to cause a denial of service (application crash) via crafted EXIF data that triggers an attempt to divide the minimum representable negative integer by -1.
osv:CVE-2016-10158
Complete source record
{
"id": "622150552d7c32022c361052086a1daf3821eedba643c170efdfcee4cdd16ea5",
"url": "https://osv.dev/vulnerability/CVE-2016-10158",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-10158",
"summary": "The exif_convert_any_to_int function in ext/exif/exif.c in PHP before 5.6.30, 7.0.x before 7.0.15, and 7.1.x before 7.1.1 allows remote attackers to cause a denial of service (application crash) via crafted EXIF data that triggers an attempt to divide the minimum representable negative integer by -1.",
"evidence": "osv:CVE-2016-10158",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-10158",
"aliases": [
"CVE-2016-10158"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"last_affected": "b4e4201c1c18eff67450b7d73ff028b81610e749"
},
{
"introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
},
{
"last_affected": "0221e9f827632942225586687a33cfd554860d5e"
},
{
"fixed": "1cda0d7c2ffb62d8331c64e703131d9cabdc03ea"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"last_affected": "5.6.29"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.0"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.1"
},
{
"last_affected": "7.0.1"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.2:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.2"
},
{
"last_affected": "7.0.2"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.3:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.3"
},
{
"last_affected": "7.0.3"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.4:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.4"
},
{
"last_affected": "7.0.4"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.5:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.5"
},
{
"last_affected": "7.0.5"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.6:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.6"
},
{
"last_affected": "7.0.6"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.7:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.7"
},
{
"last_affected": "7.0.7"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.8:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.8"
},
{
"last_affected": "7.0.8"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.9:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.9"
},
{
"last_affected": "7.0.9"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.10:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.10"
},
{
"last_affected": "7.0.10"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.11:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.11"
},
{
"last_affected": "7.0.11"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.12:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.12"
},
{
"last_affected": "7.0.12"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.13:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.13"
},
{
"last_affected": "7.0.13"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.0.14:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.14"
},
{
"last_affected": "7.0.14"
}
],
"source": "CPE_STRING"
},
{
"cpe": "cpe:2.3:a:php:php:7.1.0:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.1.0"
},
{
"last_affected": "7.1.0"
}
],
"source": "CPE_STRING"
},
{
"range": [
{
"fixed": "1cda0d7c2ffb62d8331c64e703131d9cabdc03ea"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"7.0.0",
"7.0.1",
"7.0.10",
"7.0.11",
"7.0.12",
"7.0.13",
"7.0.14",
"7.0.2",
"7.0.3",
"7.0.4",
"7.0.5",
"7.0.6",
"7.0.7",
"7.0.8",
"7.0.9",
"7.1.0",
"php-5.6.29",
"php-5.6.29RC1",
"php-7.1.0",
"php-7.1.0RC6",
"POST_PHP7_NSAPI_REMOVAL",
"PRE_PHP7_NSAPI_REMOVAL",
"PRE_PHP7_EREG_MYSQL_REMOVALS",
"PRE_PHP7_REMOVALS",
"POST_PHP7_REMOVALS",
"POST_AST_MERGE",
"PRE_AST_MERGE",
"POST_64BIT_BRANCH_MERGE",
"PRE_64BIT_BRANCH_MERGE",
"POST_PHPNG_MERGE"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-10158.json",
"vanir_signatures": [
{
"id": "CVE-2016-10158-527a49fb",
"digest": {
"threshold": 0.9,
"line_hashes": [
"164345692419806313782867716889242662623",
"199961379753220402556809735134877964513",
"81811983889484349135308472968212951300",
"306448116651839402360195260972894763694"
]
},
"source": "https://github.com/php/php-src/commit/1cda0d7c2ffb62d8331c64e703131d9cabdc03ea",
"target": {
"file": "ext/exif/exif.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-10158-a3bc0f1f",
"digest": {
"length": 1196,
"function_hash": "176999397470364082473290218156567094275"
},
"source": "https://github.com/php/php-src/commit/1cda0d7c2ffb62d8331c64e703131d9cabdc03ea",
"target": {
"file": "ext/exif/exif.c",
"function": "exif_convert_any_to_int"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:14:35Z"
}
}
],
"modified": "2026-10-20T13:14:35.513275041Z",
"provider": "osv",
"references": [
"https://www.tenable.com/security/tns-2017-04",
"https://access.redhat.com/errata/RHSA-2018:1296",
"https://security.gentoo.org/glsa/201702-29",
"https://security.netapp.com/advisory/ntap-20180112-0001/",
"https://bugs.php.net/bug.php?id=73737",
"https://github.com/php/php-src/commit/1cda0d7c2ffb62d8331c64e703131d9cabdc03ea"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-10158",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387375,
"published_at": "2017-01-24T21:59:00.133+00:00"
}