CVE-2007-2509 json
CRLF injection vulnerability in the ftp_putcmd function in PHP before 4.4.7, and 5.x before 5.2.2 allows remote attackers to inject arbitra…
published 2007-05-09 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-2502
- cvss
- 2.6
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.1%
- EPSS 2.1% chance of exploitation in 30 days, percentile 81%
- public exploits
- 0
- none known
Summary
CRLF injection vulnerability in the ftp_putcmd function in PHP before 4.4.7, and 5.x before 5.2.2 allows remote attackers to inject arbitrary FTP commands via CRLF sequences in the parameters to earlier FTP commands.
Patch / fix
- php RHEL 3 4.3.2-43.ent
- php-imap RHEL 3 4.3.2-43.ent
- php-ldap RHEL 3 4.3.2-43.ent
- php-odbc RHEL 3 4.3.2-43.ent
- php-mysql RHEL 3 4.3.2-43.ent
- php-pgsql RHEL 3 4.3.2-43.ent
- php RHEL 2.1 4.1.2-2.19
- php-imap RHEL 2.1 4.1.2-2.19
red hat advisories RHSA-2007:0889RHSA-2007:0888RHSA-2007:0355RHSA-2007:0349RHSA-2007:0348
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-2509 updated
php CRLF injection
-
Red Hat Application Stack v1 for Enterprise Linux AS (v.4) php 5.1.6-3.el4s1.7, php-gd 5.1.6-3.el4s1.7, php-cli 5.1.6-3.el4s1.7, php-dba 5.1.6-3.el4s1.7, php-pdo 5.1.6-3.el4s1.7, php-xml 5.1.6-3.el4s1.7, +12 more Red Hat Application Stack v1 for Enterprise Linux ES (v.4) php 5.1.6-3.el4s1.7, php-gd 5.1.6-3.el4s1.7, php-cli 5.1.6-3.el4s1.7, php-dba 5.1.6-3.el4s1.7, php-pdo 5.1.6-3.el4s1.7, php-xml 5.1.6-3.el4s1.7, +12 morefixed: vendor fix RHSA-2007:0355
-
Red Hat Desktop version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux (v. 5 server) php 5.1.6-12.el5, php-gd 5.1.6-12.el5, php-cli 5.1.6-12.el5, php-dba 5.1.6-12.el5, php-pdo 5.1.6-12.el5, php-xml 5.1.6-12.el5, +12 morefixed: vendor fix RHSA-2007:0348
-
Red Hat Enterprise Linux AS (Advanced Server) version 2.1 php 4.1.2-2.19, php-imap 4.1.2-2.19, php-ldap 4.1.2-2.19, php-odbc 4.1.2-2.19, php-mysql 4.1.2-2.19, php-pgsql 4.1.2-2.19, +1 morefixed: vendor fix RHSA-2007:0888
-
Red Hat Enterprise Linux AS version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux AS version 4 php 4.3.9-3.22.5, php-gd 4.3.9-3.22.5, php-imap 4.3.9-3.22.5, php-ldap 4.3.9-3.22.5, php-odbc 4.3.9-3.22.5, php-pear 4.3.9-3.22.5, +7 more Red Hat Enterprise Linux Desktop version 4 php 4.3.9-3.22.5, php-gd 4.3.9-3.22.5, php-imap 4.3.9-3.22.5, php-ldap 4.3.9-3.22.5, php-odbc 4.3.9-3.22.5, php-pear 4.3.9-3.22.5, +7 morefixed: vendor fix RHSA-2007:0349
-
Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php 5.1.6-12.el5, php-gd 5.1.6-12.el5, php-cli 5.1.6-12.el5, php-dba 5.1.6-12.el5, php-pdo 5.1.6-12.el5, php-xml 5.1.6-12.el5, +12 morefixed: vendor fix RHSA-2007:0348
-
Red Hat Enterprise Linux ES version 2.1 php 4.1.2-2.19, php-imap 4.1.2-2.19, php-ldap 4.1.2-2.19, php-odbc 4.1.2-2.19, php-mysql 4.1.2-2.19, php-pgsql 4.1.2-2.19, +1 morefixed: vendor fix RHSA-2007:0888
show 6 moreshow fewer
-
Red Hat Enterprise Linux ES version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux ES version 4 php 4.3.9-3.22.5, php-gd 4.3.9-3.22.5, php-imap 4.3.9-3.22.5, php-ldap 4.3.9-3.22.5, php-odbc 4.3.9-3.22.5, php-pear 4.3.9-3.22.5, +7 morefixed: vendor fix RHSA-2007:0349
-
Red Hat Enterprise Linux WS version 2.1 php 4.1.2-2.19, php-imap 4.1.2-2.19, php-ldap 4.1.2-2.19, php-odbc 4.1.2-2.19, php-mysql 4.1.2-2.19, php-pgsql 4.1.2-2.19, +1 morefixed: vendor fix RHSA-2007:0888
-
Red Hat Enterprise Linux WS version 3 php 4.3.2-43.ent, php-imap 4.3.2-43.ent, php-ldap 4.3.2-43.ent, php-odbc 4.3.2-43.ent, php-mysql 4.3.2-43.ent, php-pgsql 4.3.2-43.entfixed: vendor fix RHSA-2007:0889
-
Red Hat Enterprise Linux WS version 4 php 4.3.9-3.22.5, php-gd 4.3.9-3.22.5, php-imap 4.3.9-3.22.5, php-ldap 4.3.9-3.22.5, php-odbc 4.3.9-3.22.5, php-pear 4.3.9-3.22.5, +7 morefixed: vendor fix RHSA-2007:0349
-
Red Hat Linux Advanced Workstation 2.1 php 4.1.2-2.19, php-imap 4.1.2-2.19, php-ldap 4.1.2-2.19, php-odbc 4.1.2-2.19, php-mysql 4.1.2-2.19, php-pgsql 4.1.2-2.19, +1 morefixed: vendor fix RHSA-2007:0888
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
Exploit prediction
2.07% chance of exploitation in the next 30 days, higher than 81% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 2.6 | AV:N/AC:H/Au:N/C:N/I:P/A:N |
Classification
- Weakness
-
- CWE-20 Improper Input Validation
- Technology feeds
References
-
securityfocus.com
/bid/23818
vdb-entry, patch
-
mandriva.com
/security/advisories?name=MDKSA-2007:103
vendor-advisory
-
ubuntu.com
/usn/usn-462-1
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0888.html
vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:102
vendor-advisory
-
debian.org
/security/2007/dsa-1296
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0355.html
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200705-19.xml
vendor-advisory
-
trustix.org
/errata/2007/0017/
vendor-advisory
-
redhat.com
/support/errata/RHSA-2007-0349.html
vendor-advisory
-
debian.org
/security/2007/dsa-1295
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2007-0889.html
vendor-advisory
-
rhn.redhat.com
/errata/RHSA-2007-0348.html
vendor-advisory
-
lists.opensuse.org
/opensuse-security-announce/2007-07/msg00006.html
vendor-advisory
-
secunia.com
/advisories/25187
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/25191
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/25318
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/25255
third-party-advisory, vendor-advisory
-
secunia.com
/advisories/25660
third-party-advisory
-
vupen.com
/english/advisories/2007/2187
vdb-entry
-
secunia.com
/advisories/26048
third-party-advisory
-
secunia.com
/advisories/26967
third-party-advisory
-
secunia.com
/advisories/27351
third-party-advisory
-
securityfocus.com
/bid/23813
vdb-entry
- us2.php.net /releases/4_4_7.php
-
exchange.xforce.ibmcloud.com
/vulnerabilities/34413
vdb-entry
-
securityfocus.com
/archive/1/463596/100/0/threaded
mailing-list
- us2.php.net /releases/5_2_2.php
-
secunia.com
/advisories/25365
third-party-advisory
-
securityreason.com
/securityalert/2672
third-party-advisory
-
secunia.com
/advisories/25445
third-party-advisory
- support.avaya.com /elmodocs2/security/ASA-2007-231.htm
-
secunia.com
/advisories/25372
third-party-advisory
-
oval.cisecurity.org
/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10839
vdb-entry, signature
-
securitytracker.com
/id?1018022
vdb-entry
Sources
- CVE List CVE-2007-2509
- NVD CVE-2007-2509
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.