CVE-2016-5114

Source
https://cve.org/CVERecord?id=CVE-2016-5114
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5114.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-5114
Downstream
Related
Published
2016-08-07T10:59:10.947Z
Modified
2026-03-10T14:09:33.697176Z
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
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
Fixed
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.5.30"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-alpha3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.0-beta4"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.1"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.2"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.3"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.4"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.5"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.6"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.7"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.8"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.9"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.10"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.11"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.12"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.13"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.14"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.15"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "5.6.16"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.0"
        },
        {
            "introduced": "0"
        },
        {
            "last_affected": "7.0.1"
        }
    ]
}

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-5.5.30
php-5.6.0alpha1
php-5.6.1
php-5.6.10
php-5.6.10RC1
php-5.6.11
php-5.6.11RC1
php-5.6.12
php-5.6.12RC1
php-5.6.13
php-5.6.13RC1
php-5.6.14
php-5.6.14RC1
php-5.6.15
php-5.6.15RC1
php-5.6.16
php-5.6.16RC1
php-5.6.1RC1
php-5.6.3
php-5.6.3RC1
php-5.6.4
php-5.6.4RC1
php-5.6.5
php-5.6.5RC1
php-5.6.6
php-5.6.6RC1
php-5.6.7
php-5.6.7RC1
php-5.6.8
php-5.6.8RC1
php-5.6.9
php-5.6.9RC1
php-7.*
php-7.0.0
php-7.0.0RC1
php-7.0.0RC2
php-7.0.0RC3
php-7.0.0RC4
php-7.0.0RC5
php-7.0.0RC6
php-7.0.0RC7
php-7.0.0RC8
php-7.0.0alpha1
php-7.0.0alpha2
php-7.0.0beta1
php-7.0.0beta2
php-7.0.0beta3
php-7.0.1
php-7.0.1RC1

Database specific

unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.6.0-alpha4"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "5.6.0-alpha5"
            }
        ]
    }
]
vanir_signatures
[
    {
        "signature_type": "Line",
        "deprecated": false,
        "id": "CVE-2016-5114-2b4d9166",
        "target": {
            "file": "sapi/fpm/fpm/fpm_log.c"
        },
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "173546673262426173184942032182949250695",
                "321622208661209477458049574569903221220",
                "166444530145029150694248049069211197840",
                "205433036944475656471158298503614011224"
            ]
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f"
    },
    {
        "signature_type": "Function",
        "deprecated": false,
        "id": "CVE-2016-5114-e692c715",
        "target": {
            "file": "sapi/fpm/fpm/fpm_log.c",
            "function": "fpm_log_write"
        },
        "digest": {
            "length": 7950.0,
            "function_hash": "18497476000700736301362621056643006825"
        },
        "signature_version": "v1",
        "source": "https://github.com/php/php-src/commit/2721a0148649e07ed74468f097a28899741eb58f"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5114.json"