All reports
Medium

php: Int/size_t confusion in SplFileObject::fread

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2016-5770

Probability of exploitation in the next 30 days: 7.34%

FIRST EPSS · 2026-11-23

Description

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.

A type confusion issue was found in the SPLFileObject fread() function. A remote attacker able to submit a specially crafted input to a PHP application, which uses this function, could use this flaw to execute arbitrary code with the privileges of the user running that PHP application.