Command Injection in PHP3 popen with safe_mode
PHP3, when configured with safe_mode enabled, fails to adequately filter shell metacharacters from commands passed to the popen function. This allows remote attackers to execute arbitrary shell commands by exploiting this insufficient sanitization.
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Remote attackers can execute arbitrary commands on the server with the privileges of the web server process, potentially leading to full system compromise.
If you can’t patch tonight, do this now.
Restrict access to vulnerable PHP scripts, disable popen if not required, and use web server controls to limit the impact of command execution. Consider running PHP with least privilege and in a chrooted environment to reduce risk.
Patch, then assume compromise.
Upgrade to a version of PHP where this issue is fixed, or apply patches that ensure proper filtering of shell metacharacters in popen when safe_mode is enabled.
No validated public exploits yet. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
No public activity tracked yet. Mallory keeps watching.
No public activity observed for this vulnerability.