{"id":"CVE-2007-1718","published":"2007-03-28T00:00:00Z","modified":"2024-08-07T13:06:26Z","title":"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…","vendor":null,"product":null,"tier":"tail","description":{"text":"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 SKIP_LONG_HEADER_SEP macro.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06948,"percentile":0.94261,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securityfocus.com/bid/23145","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://secunia.com/advisories/25056","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.debian.org/security/2007/dsa-1283","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10951","tags":["vdb-entry","signature","x_refsource_OVAL"]},{"url":"http://security.gentoo.org/glsa/glsa-200705-19.xml","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securitytracker.com/id?1017946","tags":["vdb-entry","x_refsource_SECTRACK"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0162.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://secunia.com/advisories/25062","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/33516","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:090","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.ubuntu.com/usn/usn-455-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://secunia.com/advisories/24909","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:087","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.debian.org/security/2007/dsa-1282","tags":["vendor-advisory","x_refsource_DEBIAN"]},{"url":"http://www.php-security.org/MOPB/MOPB-34-2007.html","tags":["x_refsource_MISC"]},{"url":"http://us2.php.net/releases/5_2_2.php","tags":["x_refsource_CONFIRM"]},{"url":"http://secunia.com/advisories/24924","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://rhn.redhat.com/errata/RHSA-2007-0155.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://secunia.com/advisories/24965","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:089","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://secunia.com/advisories/25445","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://secunia.com/advisories/25057","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.novell.com/linux/security/advisories/2007_32_php.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://secunia.com/advisories/25025","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2007:088","tags":["vendor-advisory","x_refsource_MANDRIVA"]},{"url":"http://www.redhat.com/support/errata/RHSA-2007-0153.html","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.85},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2007-11-26"},"first":{"date":"2007-11-26","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/29784"},"provenance":"source"},"summary":{"text":"The PHP mail() function, in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1, contains a CRLF injection flaw in how it handles the Subject and To parameters, caused by an increment bug in the SKIP_LONG_HEADER_SEP macro. An attacker who can supply those parameter values can inject arbitrary e-mail headers by placing a control character immediately after a folded line, which could enable spam relay.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:00:04Z"},"euvd":{"id":"EUVD-2007-1712","exploited":false,"provenance":"source"},"exploits":[{"id":29784,"url":"https://www.exploit-db.com/exploits/29784","title":"PHP 5.2.1 - Folded Mail Headers Email Header Injection","date":"2007-11-26","verified":true,"provenance":"source"}]}