CVE-2016-5096

Source
https://cve.org/CVERecord?id=CVE-2016-5096
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5096.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2016-5096
Downstream
CLSA (1)
DLA (1)
DSA (1)
MGASA (1)
RHSA (1)
SUSE (3)
UBUNTU (1)
Related
Published
2016-08-07T10:59:09Z
Modified
2026-08-07T15:18:29Z
Severity
  • 8.6 (High) CVSS_V3 - CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:H CVSS Calculator
Summary
[none]
Details

Integer overflow in the fread function in ext/standard/file.c in PHP before 5.5.36 and 5.6.x before 5.6.22 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer in the second argument.

Database specific
{
    "unresolved_ranges":  [
        {
            "cpes":  [
                "cpe:2.3:a:php:php:5.6.0:alpha4:*:*:*:*:*:*",
                "cpe:2.3:a:php:php:5.6.0:alpha5:*:*:*:*:*:*"
            ],
            "extracted_events":  [
                {
                    "introduced":  "5.6.0-alpha4"
                },
                {
                    "last_affected":  "5.6.0-alpha4"
                },
                {
                    "introduced":  "5.6.0-alpha5"
                },
                {
                    "last_affected":  "5.6.0-alpha5"
                }
            ],
            "source":  "CPE_STRING",
            "vendor_product":  "php:php"
        }
    ]
}
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
Last Affected
Fixed
Database specific
Show details
{
    "cpe":  [
        "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:alpha1:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:alpha2:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:alpha3:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:beta1:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:beta2:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:beta3:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.0:beta4:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.1:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.2:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.3:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.4:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.5:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.6:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.7:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.8:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.9:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.10:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.11:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.12:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.13:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.14:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.15:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.16:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.17:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.18:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.19:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.20:*:*:*:*:*:*:*",
        "cpe:2.3:a:php:php:5.6.21:*:*:*:*:*:*:*"
    ],
    "extracted_events":  [
        {
            "introduced":  "0"
        },
        {
            "last_affected":  "5.5.35"
        },
        {
            "introduced":  "5.6.0-alpha1"
        },
        {
            "last_affected":  "5.6.0-alpha1"
        },
        {
            "introduced":  "5.6.0-alpha2"
        },
        {
            "last_affected":  "5.6.0-alpha2"
        },
        {
            "introduced":  "5.6.0-alpha3"
        },
        {
            "last_affected":  "5.6.0-alpha3"
        },
        {
            "introduced":  "5.6.0-beta1"
        },
        {
            "last_affected":  "5.6.0-beta1"
        },
        {
            "introduced":  "5.6.0-beta2"
        },
        {
            "last_affected":  "5.6.0-beta2"
        },
        {
            "introduced":  "5.6.0-beta3"
        },
        {
            "last_affected":  "5.6.0-beta3"
        },
        {
            "introduced":  "5.6.0-beta4"
        },
        {
            "last_affected":  "5.6.0-beta4"
        },
        {
            "introduced":  "5.6.1"
        },
        {
            "last_affected":  "5.6.1"
        },
        {
            "introduced":  "5.6.2"
        },
        {
            "last_affected":  "5.6.2"
        },
        {
            "introduced":  "5.6.3"
        },
        {
            "last_affected":  "5.6.3"
        },
        {
            "introduced":  "5.6.4"
        },
        {
            "last_affected":  "5.6.4"
        },
        {
            "introduced":  "5.6.5"
        },
        {
            "last_affected":  "5.6.5"
        },
        {
            "introduced":  "5.6.6"
        },
        {
            "last_affected":  "5.6.6"
        },
        {
            "introduced":  "5.6.7"
        },
        {
            "last_affected":  "5.6.7"
        },
        {
            "introduced":  "5.6.8"
        },
        {
            "last_affected":  "5.6.8"
        },
        {
            "introduced":  "5.6.9"
        },
        {
            "last_affected":  "5.6.9"
        },
        {
            "introduced":  "5.6.10"
        },
        {
            "last_affected":  "5.6.10"
        },
        {
            "introduced":  "5.6.11"
        },
        {
            "last_affected":  "5.6.11"
        },
        {
            "introduced":  "5.6.12"
        },
        {
            "last_affected":  "5.6.12"
        },
        {
            "introduced":  "5.6.13"
        },
        {
            "last_affected":  "5.6.13"
        },
        {
            "introduced":  "5.6.14"
        },
        {
            "last_affected":  "5.6.14"
        },
        {
            "introduced":  "5.6.15"
        },
        {
            "last_affected":  "5.6.15"
        },
        {
            "introduced":  "5.6.16"
        },
        {
            "last_affected":  "5.6.16"
        },
        {
            "introduced":  "5.6.17"
        },
        {
            "last_affected":  "5.6.17"
        },
        {
            "introduced":  "5.6.18"
        },
        {
            "last_affected":  "5.6.18"
        },
        {
            "introduced":  "5.6.19"
        },
        {
            "last_affected":  "5.6.19"
        },
        {
            "introduced":  "5.6.20"
        },
        {
            "last_affected":  "5.6.20"
        },
        {
            "introduced":  "5.6.21"
        },
        {
            "last_affected":  "5.6.21"
        }
    ],
    "source":  [
        "CPE_RANGE",
        "CPE_STRING",
        "REFERENCES"
    ]
}

Affected versions

5.*
5.6.0-alpha1
5.6.0-alpha2
5.6.0-alpha3
5.6.0-beta1
5.6.0-beta2
5.6.0-beta3
5.6.0-beta4
5.6.1
5.6.10
5.6.11
5.6.12
5.6.13
5.6.14
5.6.15
5.6.16
5.6.17
5.6.18
5.6.19
5.6.2
5.6.20
5.6.21
5.6.3
5.6.4
5.6.5
5.6.6
5.6.7
5.6.8
5.6.9
php-5.*
php-5.5.35
php-5.6.21
php-5.6.21RC1

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2016-5096.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "59658699804530916909432655870060592158",
                "150474154856362723912272717948342756027",
                "317588566651663129606302716960869322617"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2016-5096-9cdc50fc",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c",
        "target":  {
            "file":  "ext/standard/file.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "85333988347855488580493020040994606941",
            "length":  572
        },
        "id":  "CVE-2016-5096-efa3368b",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/php/php-src/commit/abd159cce48f3e34f08e4751c568e09677d5ec9c",
        "target":  {
            "file":  "ext/standard/file.c",
            "function":  "PHP_FUNCTION"
        }
    }
]
vanir_signatures_modified
"2026-08-07T15:18:29Z"