CVE-2016-5771

Source
https://cve.org/CVERecord?id=CVE-2016-5771
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-5771.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2016-5771
Downstream
Related
Published
2016-08-07T10:59:19Z
Modified
2026-08-18T08:26:17Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

spl_array.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 improperly interacts with the unserialize implementation and garbage collection, which allows remote attackers to execute arbitrary code or cause a denial of service (use-after-free and application crash) via crafted serialized data.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "8.0"
                },
                {
                    "last_affected":  "8.0"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "debian:debian_linux"
        },
        {
            "cpes":  [
                "cpe:2.3:o:opensuse:leap:42.1:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "42.1"
                },
                {
                    "last_affected":  "42.1"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "opensuse:leap"
        },
        {
            "cpes":  [
                "cpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "13.2"
                },
                {
                    "last_affected":  "13.2"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "opensuse:opensuse"
        }
    ]
}
References

Affected packages

Git / github.com/php/php-src

Affected ranges

Type
GIT
Repo
https://github.com/php/php-src
Events
Database specific
Show details
{
    "cpe":  "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "fixed":  "5.5.37"
        },
        {
            "introduced":  "5.6.0"
        },
        {
            "fixed":  "5.6.23"
        },
        {
            "introduced":  "7.0.0"
        },
        {
            "fixed":  "7.0.8"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "REFERENCES"
    ]
}

Affected versions

Other
POST_64BIT_BRANCH_MERGE
POST_AST_MERGE
POST_PHP7_NSAPI_REMOVAL
POST_PHP7_REMOVALS
POST_PHPNG_MERGE
PRE_64BIT_BRANCH_MERGE
PRE_AST_MERGE
PRE_PHP7_EREG_MYSQL_REMOVALS
PRE_PHP7_NSAPI_REMOVAL
PRE_PHP7_REMOVALS
php-5.*
php-5.6.23RC1
php-7.*
php-7.0.8RC1

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2016-5771.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "172529010675807687807396361343353921974",
                "63080092587161679693851290759915191347",
                "92445649054574504178969508602087037098",
                "47983572388981575197119334583777239342",
                "49093506086661717566379834635802782751",
                "320528347532434852589338425328485404914",
                "182173827853381497248658603193030993074"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2016-5771-55bd4544",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/3f627e580acfdaf0595ae3b115b8bec677f203ee",
        "target":  {
            "file":  "ext/spl/spl_array.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "259753987416402141766353710983866908693",
            "length":  4802
        },
        "id":  "CVE-2016-5771-60a76a01",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/961e562d1b7e7d67c7370022a167938641d607ea",
        "target":  {
            "file":  "ext/wddx/wddx.c",
            "function":  "php_wddx_push_element"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "178346697772086131021134430194686741868",
            "length":  2442
        },
        "id":  "CVE-2016-5771-b5efc824",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/3f627e580acfdaf0595ae3b115b8bec677f203ee",
        "target":  {
            "file":  "ext/spl/spl_array.c",
            "function":  "PHP_MINIT_FUNCTION"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "108112416631527217460140097544647415290",
                "19194827250221392632591492071396049436",
                "327693491351152557693361828737983469639",
                "213154144896593918768606924357591146913"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2016-5771-e0fbf8ee",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/961e562d1b7e7d67c7370022a167938641d607ea",
        "target":  {
            "file":  "ext/wddx/wddx.c"
        }
    }
]
vanir_signatures_modified
"2026-08-18T08:26:17Z"