CVE-2007-1718: CRLF Injection
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 "\r\n\t\n" sequence, related to an increment bug in the SKIPLONGHEADERSEP macro.
Other sources
Flaw bug created to hold information about an old flaw we knew something about. For more details see the MITRE CVE description.
— Red Hat
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2007-1718?
CVE-2007-1718 is considered a moderate severity vulnerability, allowing for the injection of arbitrary email headers.
How do I fix CVE-2007-1718?
To mitigate CVE-2007-1718, upgrade to a patched version of PHP that is not vulnerable, such as versions 4.4.7 or later and 5.2.2 or later.
What PHP versions are affected by CVE-2007-1718?
CVE-2007-1718 affects PHP versions from 4.0.0 to 4.4.6 and 5.0.0 to 5.2.1.
What types of attacks can result from CVE-2007-1718?
CVE-2007-1718 can potentially allow remote attackers to conduct spam attacks by injecting malicious email headers.
Is there a workaround for CVE-2007-1718 if I cannot upgrade PHP?
A potential workaround for CVE-2007-1718 is to sanitize input to the mail function to prevent control character injection.