CVE-2007-1718

PHP 4.0.0-4.4.6 and 5.0.0-5.2.1 - CRLF Injection via Mail Function Header Parameters

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2007-1718. PoCs published by Stefan Esser.

AI-analyzed exploit summary This exploit demonstrates an email-header-injection vulnerability in PHP's mail() function. By injecting arbitrary headers via CRLF sequences, an attacker can manipulate email content, potentially leading to spam or phishing attacks.

Description

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.

Exploits (1)

exploitdb WORKING POC VERIFIED
by Stefan Esser · phpremotephp
https://www.exploit-db.com/exploits/29784

This exploit demonstrates an email-header-injection vulnerability in PHP's mail() function. By injecting arbitrary headers via CRLF sequences, an attacker can manipulate email content, potentially leading to spam or phishing attacks.

Classification
Working Poc 90%
Attack Type
Other
Complexity
Trivial
Reliability
Reliable
Target: PHP 4 up to 4.4.6, PHP 5 up to 5.2.1
No auth needed
Prerequisites: PHP installation with vulnerable mail() function
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (26)

Core 26
Core References
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/23145
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25056
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1283
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10951
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200705-19.xml
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1017946
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0162.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25062
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/33516
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:090
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-455-1
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24909
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:087
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1282
Release Notes x_refsource_confirm
http://us2.php.net/releases/5_2_2.php
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24924
Vendor Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2007-0155.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/24965
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:089
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25445
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25057
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_32_php.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/25025
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:088
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-0153.html

Scores

EPSS 0.0669
EPSS Percentile 93.0%

Details

Status published
Products (36)
php/php 4.0 (8 CPE variants)
php/php 4.0.0
php/php 4.0.1 (3 CPE variants)
php/php 4.0.2
php/php 4.0.3 (2 CPE variants)
php/php 4.0.4 (2 CPE variants)
php/php 4.0.5
php/php 4.0.6
php/php 4.0.7 (4 CPE variants)
php/php 4.1.0
... and 26 more
Published Mar 28, 2007
Tracked Since Feb 18, 2026