High
Security advisory
Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) php_escape_shell_cmd or (2) php_escape_shell_arg function, leading to a heap-based buffer overflow.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2016-1904
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 12:09 UTC · Revision 1
Source evidence
Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) php_escape_shell_cmd or (2) php_escape_shell_arg function, leading to a heap-based buffer overflow.
osv:CVE-2016-1904
Complete source record
{
"id": "d360dbbd9bbfdbacde1c9e1da457aa5931514a83563279c83290575e3870a9bc",
"url": "https://osv.dev/vulnerability/CVE-2016-1904",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2016-1904",
"summary": "Multiple integer overflows in ext/standard/exec.c in PHP 7.x before 7.0.2 allow remote attackers to cause a denial of service or possibly have unspecified other impact via a long string to the (1) php_escape_shell_cmd or (2) php_escape_shell_arg function, leading to a heap-based buffer overflow.",
"evidence": "osv:CVE-2016-1904",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2016-1904",
"aliases": [
"CVE-2016-1904"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "60fffd296abce5fc071f3c173c25a2696cf683c6"
},
{
"last_affected": "4054ec69da7631046f19d54ab06f09728a208b8b"
},
{
"fixed": "2871c70efaaaa0f102557a17c727fd4d5204dd4b"
}
],
"database_specific": {
"extracted_events": [
{
"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"
},
{
"range": [
{
"fixed": "2871c70efaaaa0f102557a17c727fd4d5204dd4b"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"7.0.0",
"7.0.1"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-1904.json",
"vanir_signatures": [
{
"id": "CVE-2016-1904-ab212364",
"digest": {
"length": 1400,
"function_hash": "226189531185488838476725418751739334044"
},
"source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
"target": {
"file": "ext/standard/exec.c",
"function": "php_escape_shell_cmd"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
},
{
"id": "CVE-2016-1904-b1127e15",
"digest": {
"threshold": 0.9,
"line_hashes": [
"117659872304452985398727624562538687260",
"320556668755691563286244707536482766367",
"11794313782276392130508157765939661100",
"228617998571887586856532336695393756614",
"142460229576488875644992908042681967756",
"244165684301463545340692676494172903712",
"32489114690226811644780649320839838199",
"88025627161522347905451764707748517810"
]
},
"source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
"target": {
"file": "ext/standard/exec.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2016-1904-f650a616",
"digest": {
"length": 1318,
"function_hash": "218805386897322723145400729357493747163"
},
"source": "https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
"target": {
"file": "ext/standard/exec.c",
"function": "php_escape_shell_arg"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-20T13:13:14Z"
}
}
],
"modified": "2026-10-20T13:13:14.278986373Z",
"provider": "osv",
"references": [
"https://github.com/php/php-src/commit/2871c70efaaaa0f102557a17c727fd4d5204dd4b",
"https://bugs.php.net/bug.php?id=71270"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2016-1904",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 387319,
"published_at": "2016-01-19T05:59:09.373+00:00"
}