CVE-2007-2509 Command injection in n/a
Remote attackers can inject arbitrary FTP commands via CRLF sequences in PHP FTP functions, potentially leading to code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2007-2509?
CVE-2007-2509 is a low-severity command injection vulnerability in Php Php, published on 9 May 2007. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-20
Which versions are affected by CVE-2007-2509?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2007-2509?
Upgrade to a fixed version.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2007-2509 being exploited?
There is no known exploitation of CVE-2007-2509 in the wild and no public exploit code.
Other vulnerabilities in Php Php
Sources
Also known as DSA-1296-1, GHSA-xcv3-8774-8394.