CVE-2007-4840: Input Validation

Published 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 outcharset parameter to the iconv function; or a long string in the charset parameter to the (2) iconvmimedecodeheaders, (3) iconvmimedecode, or (4) iconvstrlen 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.

Affected Software

1 affected component
PHP PHP<=5.2.4

Event History

Sep 12, 2007
CVE Published
08:17 PM
Sep 13, 2007
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description

Frequently Asked Questions

1

What is the severity of CVE-2007-4840?

CVE-2007-4840 is rated as a moderate severity vulnerability that can lead to denial of service.

2

How do I fix CVE-2007-4840?

To fix CVE-2007-4840, upgrade PHP to a version later than 5.2.4.

3

What type of attack does CVE-2007-4840 facilitate?

CVE-2007-4840 can facilitate denial of service attacks through excessively long strings in certain parameters.

4

Which versions of PHP are affected by CVE-2007-4840?

CVE-2007-4840 affects PHP versions up to and including 5.2.4.

5

What functions are involved in the CVE-2007-4840 vulnerability?

The functions involved in CVE-2007-4840 include iconv, iconv_mime_decode_headers, and iconv_mime_decode.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203