sapi/fpm/fpm/fpmlog.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 misinterprets the semantics of the snprintf return value, which allows attackers to obtain sensitive information from process memory or cause a denial of service (out-of-bounds read and buffer overflow) via a long string, as demonstrated by a long URI in a configuration with custom REQUESTURI logging.
{
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "5.6.0-alpha4"
},
{
"last_affected": "5.6.0-alpha4"
},
{
"introduced": "5.6.0-alpha5"
},
{
"last_affected": "5.6.0-alpha5"
}
],
"vendor_product": "php:php",
"source": "CPE_STRING"
}
]
}{
"cpe": [
"cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.0:*:*:*:*:*:*:*",
"cpe:2.3:a:php:php:7.0.1:*:*:*:*:*:*:*"
],
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "5.5.30"
},
{
"introduced": "5.6.0-alpha1"
},
{
"last_affected": "5.6.0-alpha1"
},
{
"introduced": "5.6.0-alpha2"
},
{
"last_affected": "5.6.0-alpha2"
},
{
"introduced": "5.6.0-alpha3"
},
{
"last_affected": "5.6.0-alpha3"
},
{
"introduced": "5.6.0-beta1"
},
{
"last_affected": "5.6.0-beta1"
},
{
"introduced": "5.6.0-beta2"
},
{
"last_affected": "5.6.0-beta2"
},
{
"introduced": "5.6.0-beta3"
},
{
"last_affected": "5.6.0-beta3"
},
{
"introduced": "5.6.0-beta4"
},
{
"last_affected": "5.6.0-beta4"
},
{
"introduced": "5.6.1"
},
{
"last_affected": "5.6.1"
},
{
"introduced": "5.6.2"
},
{
"last_affected": "5.6.2"
},
{
"introduced": "5.6.3"
},
{
"last_affected": "5.6.3"
},
{
"introduced": "5.6.4"
},
{
"last_affected": "5.6.4"
},
{
"introduced": "5.6.5"
},
{
"last_affected": "5.6.5"
},
{
"introduced": "5.6.6"
},
{
"last_affected": "5.6.6"
},
{
"introduced": "5.6.7"
},
{
"last_affected": "5.6.7"
},
{
"introduced": "5.6.8"
},
{
"last_affected": "5.6.8"
},
{
"introduced": "5.6.9"
},
{
"last_affected": "5.6.9"
},
{
"introduced": "5.6.10"
},
{
"last_affected": "5.6.10"
},
{
"introduced": "5.6.11"
},
{
"last_affected": "5.6.11"
},
{
"introduced": "5.6.12"
},
{
"last_affected": "5.6.12"
},
{
"introduced": "5.6.13"
},
{
"last_affected": "5.6.13"
},
{
"introduced": "5.6.14"
},
{
"last_affected": "5.6.14"
},
{
"introduced": "5.6.15"
},
{
"last_affected": "5.6.15"
},
{
"introduced": "5.6.16"
},
{
"last_affected": "5.6.16"
},
{
"introduced": "7.0.0"
},
{
"last_affected": "7.0.0"
},
{
"introduced": "7.0.1"
},
{
"last_affected": "7.0.1"
}
],
"source": [
"CPE_RANGE",
"CPE_STRING",
"REFERENCES"
]
}"2026-07-08T12:05:59Z"
[
{
"target": {
"file": "sapi/fpm/fpm/fpm_log.c"
},
"id": "CVE-2016-5114-2b4d9166",
"digest": {
"line_hashes": [
"173546673262426173184942032182949250695",
"321622208661209477458049574569903221220",
"166444530145029150694248049069211197840",
"205433036944475656471158298503614011224"
],
"threshold": 0.9
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Line",
"source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f"
},
{
"target": {
"function": "fpm_log_write",
"file": "sapi/fpm/fpm/fpm_log.c"
},
"id": "CVE-2016-5114-e692c715",
"digest": {
"function_hash": "18497476000700736301362621056643006825",
"length": 7950.0
},
"deprecated": false,
"signature_version": "v1",
"signature_type": "Function",
"source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5114.json"