CVE-2007-1718 json
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 arbi…
published 2007-03-28 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-1712
- cvss
- 7.8
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 6.9%
- EPSS 6.9% chance of exploitation in 30 days, percentile 94%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- php RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-gd RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-cli RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-dba RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-pdo RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-xml RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-imap RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
- php-ldap RHEL 1 APPLICATION_STACK 5.1.6-3.el4s1.6
red hat advisories RHSA-2007:0162RHSA-2007:0155RHSA-2007:0153
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2007-1718 updated
security flaw
-
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) php 5.1.6-3.el4s1.6, php-gd 5.1.6-3.el4s1.6, php-cli 5.1.6-3.el4s1.6, php-dba 5.1.6-3.el4s1.6, php-pdo 5.1.6-3.el4s1.6, php-xml 5.1.6-3.el4s1.6, +12 more Red Hat Application Stack v1 for Enterprise Linux ES (v.4) php 5.1.6-3.el4s1.6, php-gd 5.1.6-3.el4s1.6, php-cli 5.1.6-3.el4s1.6, php-dba 5.1.6-3.el4s1.6, php-pdo 5.1.6-3.el4s1.6, php-xml 5.1.6-3.el4s1.6, +12 morefixed: vendor fix RHSA-2007:0162
-
Red Hat Desktop version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.entfixed: vendor fix RHSA-2007:0155
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-11.el5, php-gd 5.1.6-11.el5, php-cli 5.1.6-11.el5, php-dba 5.1.6-11.el5, php-pdo 5.1.6-11.el5, php-xml 5.1.6-11.el5, +12 morefixed: vendor fix RHSA-2007:0153
-
Red Hat Enterprise Linux AS version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 morefixed: vendor fix RHSA-2007:0155
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-11.el5, php-gd 5.1.6-11.el5, php-cli 5.1.6-11.el5, php-dba 5.1.6-11.el5, php-pdo 5.1.6-11.el5, php-xml 5.1.6-11.el5, +12 morefixed: vendor fix RHSA-2007:0153
-
Red Hat Enterprise Linux ES version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 more Red Hat Enterprise Linux WS version 3 php 4.3.2-40.ent, php-imap 4.3.2-40.ent, php-ldap 4.3.2-40.ent, php-odbc 4.3.2-40.ent, php-mysql 4.3.2-40.ent, php-pgsql 4.3.2-40.ent Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.4, php-gd 4.3.9-3.22.4, php-imap 4.3.9-3.22.4, php-ldap 4.3.9-3.22.4, php-odbc 4.3.9-3.22.4, php-pear 4.3.9-3.22.4, +7 morefixed: vendor fix RHSA-2007:0155
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Timeline
- Published
- First public exploit (EDB-29784)
Exploit prediction
6.95% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-29784 PHP 5.2.1 - Folded Mail Headers Email Header Injection remote, 2007-11-26
- securityfocus.com http://www.securityfocus.com/bid/23145 referenced PoC, tagged "exploit" by a source, unverified
- php-security.org http://www.php-security.org/MOPB/MOPB-34-2007.html referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.8 | AV:N/AC:L/Au:N/C:N/I:C/A:N |
Classification
- Technology feeds
References
-
securityfocus.com
/bid/23145
vdb-entry, exploit
-
php-security.org
/MOPB/MOPB-34-2007.html
exploit
-
debian.org
/security/2007/dsa-1283
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200705-19.xml
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0162.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:090
vendor-advisory
-
ubuntu.com
/usn/usn-455-1
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:087
vendor-advisory
-
debian.org
/security/2007/dsa-1282
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2007-0155.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:089
vendor-advisory
-
novell.com
/linux/security/advisories/2007_32_php.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:088
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0153.html
vendor-advisory
-
secunia.com
/advisories/25056
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10951
vdb-entry, signature
-
securitytracker.com
/id?1017946
vdb-entry
-
secunia.com
/advisories/25062
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/33516
vdb-entry
-
secunia.com
/advisories/24909
third-party-advisory
- us2.php.net /releases/5_2_2.php
-
secunia.com
/advisories/24924
third-party-advisory
-
secunia.com
/advisories/24965
third-party-advisory
-
secunia.com
/advisories/25445
third-party-advisory
-
secunia.com
/advisories/25057
third-party-advisory
-
secunia.com
/advisories/25025
third-party-advisory
Sources
- CVE List CVE-2007-1718
- NVD CVE-2007-1718
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.