Every CVE Search/ Get API key

CVE-2016-5770

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in...

9.8 Critical

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

7.34%Up 5.2 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.8

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Record
CVE-2016-5770
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-190
Updated
2026-11-02
CVE List No score

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Record
CVE-2016-5770
Updated
2026-11-02
EUVDEUVD-2016-6705 No score

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Record
EUVD-2016-6705
Updated
2026-11-03
GitHub AdvisoriesGHSA-cc8q-wj33-74wc 9.8

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in...

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Record
GHSA-cc8q-wj33-74wc
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-190
Updated
2026-11-02
OSV 9.8

Integer overflow in the SplFileObject::fread function in spl_directory.c in the SPL extension in PHP before 5.5.37 and 5.6.x before 5.6.23 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a large integer argument, a related issue to CVE-2016-5096.

Record
CVE-2016-5770
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVRHSA-2016:2750 8.1

Red Hat Security Advisory: rh-php56 security, bug fix, and enhancement update

Record
RHSA-2016:2750
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVMGASA-2016-0238 No score

Updated php packages fix security vulnerability

php-mbstring _php_mb_regex_ereg_replace_exec() - double free (CVE-2016-5768).

php-mcrypt heap Overflow due to integer overflows (CVE-2016-5769).

php-SPL int/size_t confusion in SplFileObject::fread (CVE-2016-5770).

php-SPL Use After Free Vulnerability in PHP's GC algorithm and unserialize (CVE-2016-5771).

php-WDDX Double Free Courruption in wddx_deserialize (CVE-2016-5772).

php-zip ZipArchive class Use After Free Vulnerability in PHP's GC algorithm and unserialize (CVE-2016-5773).

The php package has been updated to version 5.6.23, fixing these issues and several other bugs. See the upstream ChangeLog for details.

Record
MGASA-2016-0238
Updated
2026-11-02
OSVSUSE-SU-2016:1842-1 No score

Security update for php5

This update for php5 fixes the following issues:

  • It is possible to launch a web server with 'php -S localhost:8080' It used to be possible to set an arbitrary $HTTP_PROXY environment variable for request handlers -- like CGI scripts -- by including a specially crafted HTTP header in the request (CVE-2016-5385). As a result, these server components would potentially direct all their outgoing HTTP traffic through a malicious proxy server. This patch fixes the issue: the updated php server ignores such HTTP headers and never sets $HTTP_PROXY for sub-processes. (bnc#988486)
  • There was multiple cases where a remote attacker could trigger a double free and, given specific PHP code using callbacks, trigger code execution vectors. (bnc#986246,bnc#986244,CVE-2016-5768,CVE-2016-5772)
  • It was possible to inject header or content information (XSS) when a user was using internet explorer as the browser. (bnc#986004, CVE-2015-8935)
  • In several cases it was possible for a integer overflow to trigger an excessive memory allocation (bnc#986392, bnc#986388, bnc#986386, bnc#986393, CVE-2016-5770, CVE-2016-5769, CVE-2016-5766, CVE-2016-5767)
  • It was possible for an attacker to abuse the garbage collector to free a target array. At this point an attacker could craft a fake zval object and exploit the PHP process by taking over the EIP/RIP. (bnc#986391, CVE-2016-5771)
Record
SUSE-SU-2016:1842-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php5
Debian:7
From an advisory covering 19 CVEs
before 5.4.45-0+deb7u5, plus listed versions
5.4.11-15.4.15-15.4.34-0+deb7u15.4.35-0+deb7u15.4.35-0+deb7u2
Show 34 moreShow less
5.4.36-0+deb7u15.4.36-0+deb7u35.4.38-0+deb7u15.4.39-0+deb7u15.4.39-0+deb7u25.4.4-145.4.4-14+deb7u15.4.4-14+deb7u105.4.4-14+deb7u115.4.4-14+deb7u125.4.4-14+deb7u135.4.4-14+deb7u145.4.4-14+deb7u25.4.4-14+deb7u35.4.4-14+deb7u45.4.4-14+deb7u55.4.4-14+deb7u75.4.4-14+deb7u85.4.4-14+deb7u95.4.4-155.4.4-15.15.4.41-0+deb7u15.4.44-0+deb7u15.4.45-0+deb7u15.4.45-0+deb7u25.4.45-0+deb7u35.4.45-0+deb7u45.4.6-15.4.6-25.4.8-15.4.9-15.4.9-25.4.9-35.4.9-4
5.4.45-0+deb7u5
php5
Debian:8
From an advisory covering 6 CVEs
before 5.6.23+dfsg-0+deb8u1, plus listed versions
5.6.11+dfsg-15.6.12+dfsg-0+deb8u15.6.12+dfsg-15.6.13+dfsg-0+deb8u15.6.13+dfsg-1
Show 25 moreShow less
5.6.13+dfsg-25.6.14+dfsg-0+deb8u15.6.14+dfsg-15.6.15+dfsg-15.6.16+dfsg-15.6.16+dfsg-25.6.16+dfsg-35.6.16+dfsg-45.6.17+dfsg-0+deb8u15.6.17+dfsg-15.6.17+dfsg-35.6.18+dfsg-15.6.19+dfsg-0+deb8u15.6.19+dfsg-15.6.19+dfsg-25.6.20+dfsg-0+deb8u15.6.20+dfsg-15.6.21+dfsg-15.6.21+dfsg-25.6.22+dfsg-0+deb8u15.6.22+dfsg-15.6.22+dfsg-25.6.7+dfsg-15.6.9+dfsg-0+deb8u15.6.9+dfsg-1
5.6.23+dfsg-0+deb8u1
php
Mageia:5
From an advisory covering 6 CVEs
before 5.6.23-1.mga5
5.6.23-1.mga5
rh-php56
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56-php
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-common
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
Show 61 moreShow less
Affected packages
PackageAffectedFixed
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-imap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pear
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 1:1.9.5-4.el6
1:1.9.5-4.el6
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-process
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-tidy
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-runtime
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56-scldevel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
rh-php56-php
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-common
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pear
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 1:1.9.5-4.el7
1:1.9.5-4.el7
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-process
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-runtime
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
rh-php56-scldevel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
php5
SUSE:Linux Enterprise Module for Web and Scripting 12
From an advisory covering 9 CVEs
before 5.5.14-68.1
5.5.14-68.1
php5
SUSE:Linux Enterprise Software Development Kit 12 SP1
From an advisory covering 9 CVEs
before 5.5.14-68.1
5.5.14-68.1

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-5770 is a critical vulnerability (CVSS 9.8) in Php, published July 5, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 7.34%, the 94th percentile. No source names a fixed version.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 150 references. The JSON record has them.

MoveEnter Open