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