Vulnerability library
Security checkSeptember 25, 2024

PHP CGI Argument Injection RCE

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

In PHP, when configured as a CGI script (php-cgi), improper handling of certain query strings can allow remote attackers to execute arbitrary code. Specifically, query strings lacking an equals sign (=) or containing characters that may be misinterpreted due to system settings can enable attackers to pass command-line options to the PHP binary. This vulnerability, related to improper handling of command-line options or special characters, can lead to actions such as revealing source code or running arbitrary PHP code on the server.

Recommendation

To address this vulnerability, update PHP to the latest stable version.

References

Could your website be exposed too?

SmartScanner can check your website for PHP CGI Argument Injection RCE and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 25, 2024