PHP PHP-CGI Query String Parameter Injection Arbitrary Code Execution

High Nessus Plugin ID 59088


The remote web server contains a version of PHP that allows arbitrary code execution.


The PHP installation on the remote web server contains a flaw that could allow a remote attacker to pass command-line arguments as part of a query string to the PHP-CGI program. This could be abused to execute arbitrary code, reveal PHP source code, cause a system crash, etc.


If using Lotus Foundations, upgrade the Lotus Foundations operating system to version 1.2.2b or later.

Otherwise, upgrade to PHP 5.3.13 / 5.4.3 or later.

See Also

Plugin Details

Severity: High

ID: 59088

File Name: php_cgi_query_string_code_execution.nasl

Version: 1.19

Type: remote

Family: CGI abuses

Published: 2012/05/14

Updated: 2018/07/25

Dependencies: 10107, 11936

Risk Information

Risk Factor: High

CVSS v2.0

Base Score: 8.3

Temporal Score: 7.2

Vector: CVSS2#AV:N/AC:M/Au:N/C:C/I:P/A:P

Temporal Vector: CVSS2#E:H/RL:OF/RC:C

Vulnerability Information

CPE: cpe:/a:php:php

Required KB Items: www/PHP

Excluded KB Items: Settings/disable_cgi_scanning

Exploit Available: false

Exploit Ease: No exploit is required

Exploited by Nessus: true

Patch Publication Date: 2011/05/03

Vulnerability Publication Date: 2012/05/03

Exploitable With


Core Impact

Metasploit (PHP CGI Argument Injection)

Reference Information

CVE: CVE-2012-1823, CVE-2012-2311

BID: 53388

CERT: 520827

EDB-ID: 18834