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.
[
{
"signature_type": "Line",
"digest": {
"threshold": 0.9,
"line_hashes": [
"173546673262426173184942032182949250695",
"321622208661209477458049574569903221220",
"166444530145029150694248049069211197840",
"205433036944475656471158298503614011224"
]
},
"target": {
"file": "sapi/fpm/fpm/fpm_log.c"
},
"source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f",
"id": "CVE-2016-5114-2b4d9166",
"deprecated": false,
"signature_version": "v1"
},
{
"signature_type": "Function",
"digest": {
"function_hash": "18497476000700736301362621056643006825",
"length": 7950.0
},
"target": {
"file": "sapi/fpm/fpm/fpm_log.c",
"function": "fpm_log_write"
},
"source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f",
"id": "CVE-2016-5114-e692c715",
"deprecated": false,
"signature_version": "v1"
}
]