
CLI checker that detects exposure to CVE-2026-115560 in PHP session handling by auditing ini settings and application code, with JSON output and CI/CD exit codes.
Detects whether a PHP installation is exposed to CVE-2026-115560 (RCE in the PHP session handler disclosed on October 23, 2026).
Author: Pr@fEsOr X aKa Rodolfo Hernández Baz
Web: rodolfohbaz.xyz

CLI checker that detects whether a PHP system is vulnerable to CVE-2026-115560 — a remote code execution (RCE) vulnerability triggered when the following three conditions are met in the same request:
session.serialize_handler set to php_binary or php_serialize (config).ini_set('session.serialize_handler', 'php') before session_start() (code).session.upload_progress.enabled = 1 (PHP default, config).The checker automates the verification of the three conditions in:
It produces a clear verdict:
session.upload_progress.enabled = 0 via php_admin_flag).pip install -r requirements.txt
Only colorama and pyfiglet (optional — without them the script runs in plain mode).
# Auto-detección local (live) — chequea CLI, FPM y Apache mod_php del sistema
python3 php-cve-2026-115560-checker.py
# Auditar un filesystem extraído (docker export, tar de /etc, snapshot)
python3 php-cve-2026-115560-checker.py --root /ruta/al/servidor/extraído
# Escanear solo código PHP (gate de pre-deploy en CI/CD)
python3 php-cve-2026-115560-checker.py --scan-app /var/www/mi-aplicacion
# Salida JSON para integración en pipelines
python3 php-cve-2026-115560-checker.py --json --root /ruta/al/servidor
python3 php-cve-2026-115560-checker.py --root /ruta/al/servidor
python3 php-cve-2026-115560-checker.py --scan-app /var/www/mi-aplicacion
| Code | Meaning |
|---|---|
0 | Not exposed |
1 | Exposed — apply mitigation |
2 | Script execution error |
Use them as a CI/CD gate.
; FPM — /etc/php/8.x/fpm/pool.d/www.conf
php_admin_flag[session.upload_progress.enabled] = off
# Apache — vhost o php.conf
php_admin_flag session.upload_progress.enabled off
Restart all PHP workers after the change (not just reload). Verify in the SAPI that serves real traffic with php-fpm -i | grep session.upload_progress or by publishing a phpinfo() page from the web server.
MIT License — free use, modification and distribution.
Pr@fEsOr X aKa Rodolfo Hernández Baz 🌐 rodolfohbaz.xyz