Input validation error in PHP - CVE-2007-4840

 

Input validation error in PHP - CVE-2007-4840

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


Vulnerability identifier: #VU110362
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2007-4840
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 context-dependent attackers to perform a denial of service (DoS) attack.

The vulnerability exists due to insufficient validation of user-supplied input. A remote attacker can cause a denial of service (application crash) via (1) a long string in the out_charset parameter to the iconv function; or a long string in the charset parameter to the (2) iconv_mime_decode_headers, (3) iconv_mime_decode, or (4) iconv_strlen function.


How to mitigate CVE-2007-4840

Install update from vendor's website.

Sources