First published: Wed Sep 12 2007(Updated: )
PHP 5.2.4 and earlier allows context-dependent attackers to 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. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.
Credit: cve@mitre.org
Affected Software | Affected Version | How to fix |
---|---|---|
PHP | <=5.2.4 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2007-4840 is rated as a moderate severity vulnerability that can lead to denial of service.
To fix CVE-2007-4840, upgrade PHP to a version later than 5.2.4.
CVE-2007-4840 can facilitate denial of service attacks through excessively long strings in certain parameters.
CVE-2007-4840 affects PHP versions up to and including 5.2.4.
The functions involved in CVE-2007-4840 include iconv, iconv_mime_decode_headers, and iconv_mime_decode.