Research and detection tooling for PHP CVE-2026-109618 and CVE-2026-109619: exposure self-check script, detection signatures, hardening checklist, and root-cause analysis.
针对 PHP 2026-10-21 官方安全公告中两个 Critical 级漏洞的安全研究项目。
⚠️ 请先升级: 8.2.35+ / 8.3.36+ / 8.4.27+ / 8.5.12+ 已修复。本仓库提供的是升级前的暴露面自检与检测方案,以及漏洞机制的分析文档。
| CVE | 机制 | 修复版本 |
|---|---|---|
| CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) | multipart 解析发生在 RINIT 之前,解析期 OOM bailout 跳过清理路径,请求关闭阶段对半初始化数据的操作构成破坏窗口 | 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 |
| CVE-2026-109619 | session.upload_progress 在 pre-RINIT 上下文以完整 unserialize() 语义解码会话(含类查找、autoload、魔术方法、回调) | 同上 |
| 形态 | 表现 | 检测特征 |
|---|---|---|
| 延时引爆 | 攻击请求正常, 受害者下次访问时进程崩溃 | 崩溃时间点与外部请求关联 |
| 幻影 OOM | 受害者单请求内存错误后自愈, 进程存活 | 无泄漏增长曲线支撑的孤立 OOM 日志 |
| Session 摧毁 | 会话文件空覆写, 强制登出 | 同用户 session 文件长度骤降为 0 |
| 无声退出 (本研究新发现) | 攻击请求 200 OK, ~0.5s 后进程退出码 0 静默退出, 零日志 | 退出码 0 但无停止指令的健康监控告警缺口 |
FPM 部署下 startup 失败不执行 request shutdown, 以 DoS 为主。
session.upload_progress.enabled = 1(PHP 默认开启)session.serialize_handler = php_serialize(Laravel 等框架默认;PHP 默认 php 的 \| 分隔符检查构成意外防线)ps_read 不创建不存在的会话)python3 defense_check.py http://your-target.example.com/
输出: 版本受影响判定 / upload_progress 行为探测 / 服务器侧检查命令 / 加固清单。
详细判读方法见 detection-guide.md。
session.upload_progress.enabled = 0 ; 绝大多数应用不需要上传进度
session.use_strict_mode = 1
; 不要切换到 php_serialize 序列化器
post_max_size = 8M
max_file_uploads = 20
max_multipart_body_parts = 64
❌
memory_limit = -1是错误的缓解——移除软限制保护且招致系统 OOM killer。
WAF 特征: multipart 请求中同时出现 PHPSESSID 表单字段与 PHP_SESSION_UPLOAD_PROGRESS 字段。
defense_check.py — 暴露面自检脚本detection-guide.md — 补丁验证判读指南docs/ — 系列文章(根因与修复机制分析将在安全客首发后转载至此)Two critical PHP CVEs (2026-10-21 advisory): CVE-2026-109618 (OOM state corruption during multipart parsing, which happens before RINIT; bailout skips cleanup; shutdown operates on partially-initialized data) and CVE-2026-109619 (session upload progress decodes sessions with full unserialize() semantics in a pre-RINIT context). This repo provides exposure self-check tooling and detection signatures (including a newly identified silent clean-exit DoS form: process exits with code 0, zero logging, after a successful 200 response). Root-cause / patch analysis write-ups (Chinese) will be mirrored here after first publication. Full exploitation research will be published after the patch adoption window (~late Nov 2026). Patch now: 8.2.35+ / 8.3.36+ / 8.4.27+ / 8.5.12+.

Open-source XDR and SIEM platform for threat detection, log analysis, file integrity monitoring, vulnerability assessment, and compliance management across endpoints and cloud workloads.

Open-source network IDS/IPS/NSM engine for real-time traffic inspection, intrusion detection and prevention, protocol analysis, and rule-based threat hunting.

Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.