跳到主要內容

PHP2Shell評測:AI揪出十年RCE漏洞,70%網站中槍 | PHP2Shell Review: AI Found a 10-Year RCE in 70% of the Web

By Kit 小克 | AI Tool Observer | 2026-10-22

🇹🇼 PHP2Shell評測:AI揪出十年RCE漏洞,70%網站中槍

PHP2Shell 是這兩天資安圈最熱的詞——OpenAI 資助的程式碼稽核,搭配 GPT-5.6 Sol、Google Gemini 4 Argon 協助揪出藏在 PHP 核心超過十年的兩個重大漏洞(CVE-2026-109618 與 CVE-2026-109619),經安全公司 Wiz 與 Calif 獨立驗證後,PHP 官方已於 2026 年 10 月 21 日緊急發布修補版本。這不是又一次「AI 自動抓漏洞」的噱頭新聞,而是一次真實影響全球約 70% 網站伺服器語言的資安事件,幾乎所有用 PHP 寫後端的站都該立刻檢查。

PHP2Shell 是什麼:CVSS 9.2 的未授權 RCE

兩個漏洞合稱 PHP2Shell,根源都是 PHP 在請求異常中斷時記憶體會進入損毀狀態,攻擊者可藉此達成未授權遠端程式碼執行;另一個則類似當年的 Heartbleed,會洩漏記憶體內容。CVSS v4.0 評分雙雙高達 9.2。

  • 影響版本:PHP 8.2.x(<8.2.35)、8.3.x(<8.3.36)、8.4.x(<8.4.27)、8.5.x(<8.5.12)
  • 觸發條件:session.upload_progress.enabled=On(出廠預設就是開啟)加上接受 multipart 上傳的端點
  • 受影響架構:PHP-FPM、Apache mod_php、php-cgi、FrankenPHP、LiteSpeed 全部中槍

AI 怎麼挖出十年沒人發現的漏洞

流程其實很老實:OpenAI「Patch the Planet」計畫出錢請安全公司稽核 PHP 原始碼,GPT-5.6 Sol 在今年 8 月的審查中圈出其中一個可疑的記憶體操作模式,Wiz 與 Calif 的研究員接手手動確認、重現、負責任揭露。AI 在這裡扮演的是放大鏡而不是自動駭客——把本來要耗費數週人力逐行比對的程式碼,壓縮成幾天內就能鎖定可疑區塊,省下的是時間,不是判斷。

修補速度 vs 攻擊速度的賽跑

美國 CISA 已發出緊急警告要求機關立即更新,現實是漏洞細節一旦公開,攻擊者同樣能用 AI 工具加速逆向與武器化,這形成一場修補速度對攻擊速度的賽跑。對一般網站經營者最實際的動作,是現在就把 PHP 升級到 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35,而不是等到大規模掃描攻擊出現才處理。

給 PHP 開發者的檢查清單

  • 確認線上環境 PHP 版本是否低於修補版本,不確定就用 php -v 查
  • 檢查 php.ini 裡 session.upload_progress.enabled 是否為 On(多數主機預設開著)
  • 更新後務必重啟 PHP-FPM 或 Apache,設定檔改了不重啟不會生效

PHP2Shell 提醒的事其實很老派:再熱的 AI 新聞,最後都得靠人把版本升級、把服務重啟。好不好用,試了才知道。


🇺🇸 PHP2Shell Review: AI Found a 10-Year RCE in 70% of the Web

PHP2Shell is the security story everyone is talking about this week: two critical vulnerabilities (CVE-2026-109618 and CVE-2026-109619) that sat hidden inside PHP core for over a decade, surfaced with help from an OpenAI-funded code audit using GPT-5.6 Sol and Google Gemini 4 Argon, then independently confirmed by security firms Wiz and Calif. PHP shipped emergency patches on October 21, 2026. This is not another "AI found a bug" headline — PHP powers roughly 70% of the web's server-side code, so this affects nearly every PHP site still running an unpatched version.

What PHP2Shell Actually Is: A CVSS 9.2 Unauthenticated RCE

Both flaws, collectively called PHP2Shell, trace back to the same root cause: PHP can leave memory in a corrupted state when a request terminates abnormally. One path leads to unauthenticated remote code execution; the other causes Heartbleed-style memory disclosure. Both score 9.2 on CVSS v4.0.

  • Affected versions: PHP 8.2.x (before 8.2.35), 8.3.x (before 8.3.36), 8.4.x (before 8.4.27), 8.5.x (before 8.5.12)
  • Trigger condition: session.upload_progress.enabled=On (the factory default) plus any endpoint accepting multipart uploads
  • Affected setups: PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed are all exposed

How AI Found a Decade-Old Bug Nobody Else Caught

The actual workflow is less dramatic than the headlines suggest. OpenAI's "Patch the Planet" initiative funded a security audit of PHP's source code; GPT-5.6 Sol flagged a suspicious memory-handling pattern during that review back in August, and researchers at Wiz and Calif took it from there, manually verifying, reproducing, and responsibly disclosing both flaws. AI acted as a magnifying glass, not an autonomous hacker — it compressed weeks of line-by-line code review into days of focused attention, but humans still did the confirming.

The Real Race: Patching Speed vs. Attack Speed

The Hacker News reports that exploit attempts are already emerging, and CISA has issued an emergency alert urging immediate patching — for good reason. Once vulnerability details go public, attackers can use the same class of AI tools to speed up reverse-engineering and weaponization, turning this into a race between patch adoption and exploit development. For most site owners, the practical move is upgrading to 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35 right now, not waiting for mass-scanning attacks to show up in the logs.

A Checklist for PHP Developers

  • Check your running PHP version with php -v — do not assume your host already patched it
  • Check php.ini for session.upload_progress.enabled — most hosting defaults leave it On
  • Restart PHP-FPM or Apache after updating; config and binary changes do not take effect until the service restarts

PHP2Shell is a reminder that no matter how exciting the AI headline, someone still has to bump the version number and restart the service. 好不好用,試了才知道。

Sources / 資料來源

延伸閱讀 / Related Articles


AI 工具觀察站 — 每日精選 AI Agent 與工具趨勢
AI Tool Observer — Daily curated AI Agent & tool trends

留言

這個網誌中的熱門文章

Google Ironwood TPU v7 推理專用晶片解析:效能追平 NVIDIA、成本低 44%,AI 晶片戰爭正式開打 | Google Ironwood TPU v7 Explained: Matching NVIDIA Performance at 44% Lower Cost — The AI Chip War Heats Up

Claude Code 實測:AI 幫你寫程式到底行不行? | Claude Code Review: Can AI Really Code for You?

Cursor vs GitHub Copilot vs Claude Code:AI 程式助手大比拼 | AI Coding Assistants Compared: Cursor vs GitHub Copilot vs Claude Code