CVE-2007-2509: Input Validation
CRLF injection vulnerability in the ftpputcmd 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.
Other sources
PHP upstream release on 20070504 stated "- Fixed CRLF injection inside ftpputcmd(). (CVE-NO-NAME, by loveshell[at]Bug.Center.Team)"
— Red Hat
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.4.7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 5.2.2
Event History
Frequently Asked Questions
What is the severity of CVE-2007-2509?
CVE-2007-2509 is considered to have a medium severity due to its potential for exploitation through CRLF injection.
How do I fix CVE-2007-2509?
To fix CVE-2007-2509, upgrade to PHP version 4.4.7 or later, or 5.2.2 or later.
What software versions are affected by CVE-2007-2509?
CVE-2007-2509 affects PHP versions prior to 4.4.7 and 5.x versions before 5.2.2.
What is CVE-2007-2509?
CVE-2007-2509 is a CRLF injection vulnerability in the ftp_putcmd function in specific PHP versions allowing remote command injection.
Can CVE-2007-2509 be exploited remotely?
Yes, CVE-2007-2509 can be exploited remotely if the attacker can send specially crafted FTP commands.