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