CVE-2016-5399

Source
https://cve.org/CVERecord?id=CVE-2016-5399
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5399.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-5399
Downstream
CLSA (1)
DLA (1)
DSA (1)
RHSA (2)
SUSE (6)
UBUNTU (1)
Related
Published
2017-04-21T20:59:00Z
Modified
2026-08-07T15:18:30Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

The bzread function in ext/bz2/bz2.c in PHP before 5.5.38, 5.6.x before 5.6.24, and 7.x before 7.0.9 allows remote attackers to cause a denial of service (out-of-bounds write) or execute arbitrary code via a crafted bz2 archive.

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"
        },
        {
            "last_affected":  "5.5.37"
        },
        {
            "introduced":  "5.6.0"
        },
        {
            "fixed":  "5.6.24"
        },
        {
            "introduced":  "7.0.0"
        },
        {
            "fixed":  "7.0.9"
        }
    ],
    "source":  "CPE_RANGE"
}

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.5.37
php-5.6.24RC1
php-7.*
php-7.0.9RC1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5399.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "198011536025072107975883186380452148843",
                "331728417024842654446570071457159069395",
                "205456331668105326830182380336029223146",
                "164282985402725457749299583506046134408",
                "320137256578601229186691392718001358014"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2016-5399-b7259250",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/9d582eba7448f1495fae62b13d95d2844ce6b28a",
        "target":  {
            "file":  "ext/standard/basic_functions.c"
        }
    }
]
vanir_signatures_modified
"2026-08-07T15:18:30Z"