CVE-2012-2311

Exp

sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.

公開: 2012-05-11 最後更新: 2026-06-16 指派方: [email protected] 來源: [email protected]

結論預警: CVE-2012-2311 綜合評估為高可利用風險(80.5/100):CVSS 技術影響為高級,利用機率偏高(EPSS 69.56%,百分位 99%) 核心證據: 已收錄 4 筆公開利用參考(Exploit-DB)。 強制指令: 存在公開利用—請盤點暴露面、落實緩解措施並優先修補。

風險隨態勢動態變化;本站持續評估並同步更新本頁展示內容。

CVE-2012-2311 的公開 exploit 引用(Exploit-DB)

EDB-ID 來源 類型 公開時間 連結
29316 exploit_db edb 2013-10-31 Exploit-DB ↗
29290 exploit_db edb 2013-10-29 Exploit-DB ↗
18836 exploit_db edb 2012-05-05 Exploit-DB ↗
18834 exploit_db edb 2012-05-04 Exploit-DB ↗

CVE-2012-2311 的 EPSS(利用預測評分)

EPSS 日更估計相對被利用可能性;百分位表示該 CVE 在已評分漏洞中的相對排名(越高表示相對更嚴重)。

# 日期 舊 EPSS 分數 新 EPSS 分數 變化(新 − 舊)
1 2026-07-12 68.85% 69.56% +0.71%
2 2026-06-15 74.53% 68.85% -5.69%
3 2026-04-02 74.53%

完整 EPSS 歷史 (共 48 筆)

CVE-2012-2311 的 CVSS 指標

該 CVE 的 CVSS 指標。

底座分 版本 嚴重度 向量 可利用性 影響 分數來源
7.5 2.0 HIGH
AV:N/AC:L/Au:N/C:P/I:P/A:P 點擊展開
存取路徑 (AV:N)
只要路由可達,即可從遠端發動利用。
存取複雜度 (AC:L)
步驟短、路徑清楚,重現成本低。
認證 (AU:N)
全程無需有效身分。
機密性影響 (C:P)
機密性受到部分損害。
完整性影響 (I:P)
完整性受到部分損害。
可用性影響 (A:P)
可用性受到部分損害。
10.0 6.4 [email protected]

CVE-2012-2311 的弱點列舉

CVE-2012-2311 的 OS 追蹤

vendor priority summary link
gentoo high CVE-2012-2311: 1 GLSA(s) (201209-03), 1 atom(s) (dev-lang/php); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2012-2311
redhat critical https://access.redhat.com/security/cve/CVE-2012-2311
suse medium CVE-2012-2311 severity moderate: SUSE including 386 source package names (apache2-mod_php5-5.2.14-0.7.30.38.1, apache2-mod_php5-5.6.28-1.1, …), 431 product×package rows across 16 product lines (SUSE Linux Enterprise Server 11 SP1-TERADATA, SUSE Linux Enterprise Server 11 SP2, … (16 product lines)): Fixed 431. https://www.suse.com/security/cve/CVE-2012-2311/
ubuntu medium CVE-2012-2311 medium priority: Ubuntu including 1 source packages (php5), 6 status rows across 6 suites (hardy, lucid, natty, oneiric, precise, upstream): released 5, needs-triage 1. https://ubuntu.com/security/CVE-2012-2311

CVE-2012-2311 的影響軟體 / 設定

廠商 產品 版本 原始 CPE
php php <= 5.3.12 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php 1.0 cpe:2.3:a:php:php:1.0:*:*:*:*:*:*:*
php php 2.0 cpe:2.3:a:php:php:2.0:*:*:*:*:*:*:*
php php 2.0b10 cpe:2.3:a:php:php:2.0b10:*:*:*:*:*:*:*
php php 3.0 cpe:2.3:a:php:php:3.0:*:*:*:*:*:*:*
php php 3.0.1 cpe:2.3:a:php:php:3.0.1:*:*:*:*:*:*:*
php php 3.0.2 cpe:2.3:a:php:php:3.0.2:*:*:*:*:*:*:*
php php 3.0.3 cpe:2.3:a:php:php:3.0.3:*:*:*:*:*:*:*
php php 3.0.4 cpe:2.3:a:php:php:3.0.4:*:*:*:*:*:*:*
php php 3.0.5 cpe:2.3:a:php:php:3.0.5:*:*:*:*:*:*:*
php php 3.0.6 cpe:2.3:a:php:php:3.0.6:*:*:*:*:*:*:*
php php 3.0.7 cpe:2.3:a:php:php:3.0.7:*:*:*:*:*:*:*
php php 3.0.8 cpe:2.3:a:php:php:3.0.8:*:*:*:*:*:*:*
php php 3.0.9 cpe:2.3:a:php:php:3.0.9:*:*:*:*:*:*:*
php php 3.0.10 cpe:2.3:a:php:php:3.0.10:*:*:*:*:*:*:*
php php 3.0.11 cpe:2.3:a:php:php:3.0.11:*:*:*:*:*:*:*
php php 3.0.12 cpe:2.3:a:php:php:3.0.12:*:*:*:*:*:*:*
php php 3.0.13 cpe:2.3:a:php:php:3.0.13:*:*:*:*:*:*:*
php php 3.0.14 cpe:2.3:a:php:php:3.0.14:*:*:*:*:*:*:*
php php 3.0.15 cpe:2.3:a:php:php:3.0.15:*:*:*:*:*:*:*
php php 3.0.16 cpe:2.3:a:php:php:3.0.16:*:*:*:*:*:*:*
php php 3.0.17 cpe:2.3:a:php:php:3.0.17:*:*:*:*:*:*:*
php php 3.0.18 cpe:2.3:a:php:php:3.0.18:*:*:*:*:*:*:*
php php 4.0 cpe:2.3:a:php:php:4.0:beta_4_patch1:*:*:*:*:*:*
php php 4.0 cpe:2.3:a:php:php:4.0:beta1:*:*:*:*:*:*
php php 4.0 cpe:2.3:a:php:php:4.0:beta2:*:*:*:*:*:*
php php 4.0 cpe:2.3:a:php:php:4.0:beta3:*:*:*:*:*:*
php php 4.0 cpe:2.3:a:php:php:4.0:beta4:*:*:*:*:*:*
php php 4.0.0 cpe:2.3:a:php:php:4.0.0:*:*:*:*:*:*:*
php php 4.0.1 cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
php php 4.0.2 cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
php php 4.0.3 cpe:2.3:a:php:php:4.0.3:*:*:*:*:*:*:*
php php 4.0.4 cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
php php 4.0.5 cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
php php 4.0.6 cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
php php 4.0.7 cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
php php 4.1.0 cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
php php 4.1.1 cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
php php 4.1.2 cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
php php 4.2.0 cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
php php 4.2.1 cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
php php 4.2.2 cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
php php 4.2.3 cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*
php php 4.3.0 cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
php php 4.3.1 cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*
php php 4.3.2 cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*
php php 4.3.3 cpe:2.3:a:php:php:4.3.3:*:*:*:*:*:*:*
php php 4.3.4 cpe:2.3:a:php:php:4.3.4:*:*:*:*:*:*:*
php php 4.3.5 cpe:2.3:a:php:php:4.3.5:*:*:*:*:*:*:*
php php 4.3.6 cpe:2.3:a:php:php:4.3.6:*:*:*:*:*:*:*
php php 4.3.7 cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*
php php 4.3.8 cpe:2.3:a:php:php:4.3.8:*:*:*:*:*:*:*
php php 4.3.9 cpe:2.3:a:php:php:4.3.9:*:*:*:*:*:*:*
php php 4.3.10 cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*
php php 4.3.11 cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*
php php 4.4.0 cpe:2.3:a:php:php:4.4.0:*:*:*:*:*:*:*
php php 4.4.1 cpe:2.3:a:php:php:4.4.1:*:*:*:*:*:*:*
php php 4.4.2 cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*
php php 4.4.3 cpe:2.3:a:php:php:4.4.3:*:*:*:*:*:*:*
php php 4.4.4 cpe:2.3:a:php:php:4.4.4:*:*:*:*:*:*:*
php php 4.4.5 cpe:2.3:a:php:php:4.4.5:*:*:*:*:*:*:*
php php 4.4.6 cpe:2.3:a:php:php:4.4.6:*:*:*:*:*:*:*
php php 4.4.7 cpe:2.3:a:php:php:4.4.7:*:*:*:*:*:*:*
php php 4.4.8 cpe:2.3:a:php:php:4.4.8:*:*:*:*:*:*:*
php php 4.4.9 cpe:2.3:a:php:php:4.4.9:*:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:*
php php 5.0.0 cpe:2.3:a:php:php:5.0.0:rc3:*:*:*:*:*:*
php php 5.0.1 cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*
php php 5.0.2 cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*
php php 5.0.3 cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
php php 5.0.4 cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*
php php 5.0.5 cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*
php php 5.1.0 cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
php php 5.1.1 cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*

CVE-2012-2311 的參考連結

URL 標籤
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
http://marc.info/?l=bugtraq&m=134012830914727&w=2
http://secunia.com/advisories/49014
http://secunia.com/advisories/49085
http://support.apple.com/kb/HT5501
http://www.debian.org/security/2012/dsa-2465
http://www.kb.cert.org/vuls/id/520827 US Government Resource
http://www.php.net/ChangeLog-5.php#5.4.3
http://www.php.net/archive/2012.php#id2012-05-08-1
http://www.securitytracker.com/id?1027022
https://bugs.php.net/bug.php?id=61910 Vendor Advisory
https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-fix-check.patch&revision=1336093719&display=1
https://h20564.www2.hp.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c03839862
cvelogic Threat Intelligence