Input validation error in PHP - CVE-2007-4657

 

Input validation error in PHP - CVE-2007-4657

Published: October 26, 2018 / Updated: June 8, 2025


Vulnerability identifier: #VU110368
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2007-4657
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PHP Group
Affected software:
PHP

Detailed vulnerability description

The vulnerability allows remote attackers to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can obtain sensitive information (memory contents) or cause a denial of service (thread crash) via a large len value to the (1) strspn or (2) strcspn function, which triggers an out-of-bounds read.


How to mitigate CVE-2007-4657

Install update from vendor's website.

Sources