CVE-2016-5114

Source
https://nvd.nist.gov/vuln/detail/CVE-2016-5114
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-5114.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-5114
Downstream
Related
Published
2016-08-07T10:59:10Z
Modified
2025-09-19T08:25:10.762126Z
Severity
  • 9.1 (Critical) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

Other

NEWS
NEWS-cvs2svn
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_NATIVE_TLS_MERGE
POST_PHP7_EREG_MYSQL_REMOVALS
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_NATIVE_TLS_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
PRE_PHPNG_MERGE

php-5.*

php-5.3.23RC1
php-5.3.29
php-5.3.29RC1
php-5.4.30RC1
php-5.4.32RC1
php-5.4.4RC2
php-5.5.24RC1

php-7.*

php-7.0.2RC1

Database specific

{
    "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
            }
        }
    ]
}