Input validation error in PHP - CVE-2007-1718

 

Input validation error in PHP - CVE-2007-1718

Published: October 30, 2018 / Updated: June 9, 2025


Vulnerability identifier: #VU110421
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2007-1718
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to manipulate data.

CRLF injection vulnerability in the mail function in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 allows remote attackers to inject arbitrary e-mail headers and possibly conduct spam attacks via a control character immediately following folding of the (1) Subject or (2) To parameter, as demonstrated by a parameter containing a " " sequence, related to an increment bug in the SKIP_LONG_HEADER_SEP macro.


Affected software

PHP
Gentoo Linux
dev-lang/php

How to mitigate CVE-2007-1718

Install update from vendor's website.

PHP - addressed in versions 4.4.7, 4.10, 5.2.2
dev-lang/php - update to 5.2.2

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins