CVE-2007-1718
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.
What to do
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-bcmath | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-cli | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-common | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-dba | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-devel | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-gd | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-imap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-ldap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-mbstring | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-mysql | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-ncurses | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-odbc | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-pdo | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-pgsql | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-snmp | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-soap | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-xml | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 5 | php-xmlrpc | Fixed | 0:5.1.6-11.el5 | RHSA-2007:0153 |
| Red Hat Enterprise Linux 4 | php | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.22.4 | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-40.ent | RHSA-2007:0155 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.debian.org/security/2007/dsa-1283 (vendor-advisory)
- http://security.gentoo.org/glsa/glsa-200705-19.xml (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2007-0162.html (vendor-advisory)
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:090 (vendor-advisory)
- http://www.ubuntu.com/usn/usn-455-1 (vendor-advisory)
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:087 (vendor-advisory)
References
- http://www.securityfocus.com/bid/23145
- http://secunia.com/advisories/25056
- http://www.debian.org/security/2007/dsa-1283
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10951
- http://security.gentoo.org/glsa/glsa-200705-19.xml
- http://www.securitytracker.com/id?1017946
- http://www.redhat.com/support/errata/RHSA-2007-0162.html
- http://secunia.com/advisories/25062
- https://exchange.xforce.ibmcloud.com/vulnerabilities/33516
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:090
- http://www.ubuntu.com/usn/usn-455-1
- http://secunia.com/advisories/24909
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:087
- http://www.debian.org/security/2007/dsa-1282
- http://www.php-security.org/MOPB/MOPB-34-2007.html
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.