All vulnerabilities

Servers and applications

CVE-2007-4840

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…

Severity
Medium 5.0
Published
12 Sept 2007
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
3.2% in the next 30 daysHigher than 88% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Improper input validation (CWE-20)
Attack
Over the network · No login needed
Attacker can
Slow it down
CVSS vector
AV:N/AC:L/Au:N/C:N/I:N/A:P
Sources
NVD

Description

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.

From NVD.

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Every version up to 5.2.4

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-4840
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-4840