On 20 October 2026, the PHP Security Team issued an rare advance warning of an upcoming emergency security release addressing two critical vulnerabilities—both rated CVSS v4.0 9.2—while reserving the right to release early if vulnerability details leaked or active exploitation appeared in the wild.
Hours later, ahead of the originally scheduled 14:00 UTC window, the PHP team published emergency releases (PHP 8.5.12, PHP 8.4.27, PHP 8.3.36, and PHP 8.2.35) and official advisories for CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) and CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp).
If you operate PHP in production—including Apache mod_php, PHP-FPM, FrankenPHP, LiteSpeed (lsphp), or php-cgi—you need to take action immediately.
Why You Must Act Right Now (Even If You Cannot Upgrade Today)
The PHP Security Team is explicit: updating to a patched PHP release is the only complete fix. However, millions of production systems cannot be upgraded on zero notice:
- Volunteer RPM repositories lag behind: The official PHP advisory explicitly warns that
rpms.remirepo.netwill not have updated packages available today, urging operators on RHEL/Rocky/AlmaLinux/Fedora to switch to vendor packages, build from source, or apply immediate risk-reduction controls. - End-of-Life PHP branches (PHP 7.4, 8.0, 8.1): Roughly a large fraction of legacy enterprise workloads still run PHP 7.4–8.1. Because the vulnerabilities are so severe, the PHP team published emergency source-only backport branches (PHP 7.4, PHP 8.0, and PHP 8.1), while PHP 8.2 itself reaches End-of-Life on 31 December 2026.
- Pre-script execution: The most dangerous attack paths trigger during multipart request startup and early INI/session initialization—before a single line of your application's
.phpcode runs. Application-level authentication, framework middleware, andini_set()calls will not protect you.
If you cannot roll out patched binaries across every server this hour, you must immediately apply the configuration, web-server (NGINX, Apache, HAProxy), and WAF mitigations detailed below to break the exploit chains while you prepare your upgrade.
Executive Summary & Official Facts
| Attribute | Details |
|---|---|
| CVE Identifiers | CVE-2026-109618 (GHSA-w8hw-w9fx-j79w) & CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp) |
| Severity | Critical — CVSS v4.0 9.2 (Unauthenticated Remote Code Execution) |
| At-Risk Runtimes | All web-serving PHP SAPIs: Apache mod_php (highest risk), PHP-FPM, FrankenPHP, LiteSpeed (lsphp), php-cgi |
| Patched Releases | PHP 8.5.12, PHP 8.4.27, PHP 8.3.36, PHP 8.2.35 |
| EOL Source Backports | Official source branches published for PHP 7.4, PHP 8.0, and PHP 8.1 |
| Remi Repo Warning | rpms.remirepo.net does not have updates on release day |
| Primary Emergency Controls | session.upload_progress.enabled = 0, memory_limit = -1 (paired with cgroup limits & low post_max_size), fatal_error_backtraces = 0 (PHP 8.5), plus strict proxy/WAF multipart filtering |
Technical Breakdown of the Two Vulnerabilities
1. CVE-2026-109618: RCE via Out-of-Memory (OOM) Corruption (GHSA-w8hw-w9fx-j79w)
Historically, PHP used longjmp() when encountering an Out-of-Memory (OOM) error to bail out of the current execution context and abort the request.
In several internal contexts, request memory becomes reachable before it is fully initialized. If any memory allocation fails at that moment, longjmp() exits early without cleaning up or resetting the partially initialized structures. During request shutdown, PHP treats that uninitialized/corrupted memory as valid state and reads or branches on it—leading directly to Remote Code Execution.
How Attackers Trigger Controllable OOM During Request Startup
An attacker does not need an application memory leak to hit memory_limit. Several quirks in PHP's multipart/form-data parser allow a request to exhaust memory_limit during request startup while appearing to stay within post_max_size:
- Missing or Unusable
Content-Length: A multipart request without a usable declaredContent-Lengthcan bypass the initialpost_max_sizegate and continue feeding decoded body chunks. - Unbounded Multipart Part Headers: A single multipart part can contain an arbitrary number of headers. Because PHP's internal hash tables and
zend_stringstructures consume far more memory than the raw wire bytes, header amplification can exhaustmemory_limitwell belowpost_max_size. - Empty File Controls & Nested Array Amplification: Empty file upload inputs do not count against
max_file_uploads, yet still allocate$_FILESmetadata structures. Deeply nested field names (a[b][c]...) multiply the internalHashTableallocations.
SAPI Risk Profile for CVE-2026-109618
- Apache
mod_php& FrankenPHP (Highest Risk): Both SAPIs unconditionally invoke the request shutdown procedure even when request startup fails (php_request_startup()). An unauthenticated attacker can trigger a multipart OOM during startup and achieve RCE during shutdown before any application code executes. - PHP-FPM & LiteSpeed (
lsphp): FPM terminates the worker process ifphp_request_startup()fails, preventing immediate startup shutdown exploitation. However, OOM corruption can still be triggered after request startup completes, and FPM is directly exposed to CVE-2026-109619.
How PHP Patched It: The security release removes longjmp() on OOM, replacing it with a delayed soft OOM checked at the next Zend VM safe point, backed by an immediate hard _exit() if memory consumption crosses a secondary threshold.
2. CVE-2026-109619: RCE via Stale Global State & Session Upload Progress UAF (GHSA-6wmf-4rv5-p3rp)
Persistent PHP workers (mod_php, php-fpm, lsphp, FrankenPHP) retain global state structures—spanning error handling, session tracking, object storage, and extensions—that temporarily point to memory owned by the current request's heap.
Exploitation of CVE-2026-109619 follows a two-step Producer → Consumer model across requests handled by the same worker process:
- The Producer (Request 1): A PHP operation stores a pointer to request-owned heap memory in a persistent worker global. Before the operation can reset that pointer, the request is interrupted by a fatal error (such as an OOM, uncaught error, failed
require, orMaximum execution time exceeded)—or a late shutdown/cleanup warning repopulates the error state after normal shutdown cleared it. PHP frees the request heap, leaving a dangling pointer in the worker's global state. - The Consumer (Request 2 on the same worker): Before normal request initialization (
php_request_startup()) resets the worker's globals, an early pre-initialization operation accesses, frees, or branches on the stale pointer, triggering a Use-After-Free (UAF) on a controlled heap layout and yielding unauthenticated Remote Code Execution.
Confirmed Exploitation Paths for CVE-2026-109619
- RFC 1867 Session Upload Progress Lifecycle (Confirmed RCE on both
PHP-FPMandmod_php): - Because
session.upload_progress.enabledis enabled by default (1), sending amultipart/form-datarequest containingPHP_SESSION_UPLOAD_PROGRESSinitializes session and decoder state during SAPI input parsing—before normal module initialization and without any application call tosession_start(). - In addition to intra-request stale
zval*pointer hazards (post_bytes_processed/current_file_bytes_processed) when multipart streams stall acrosssession.upload_progress.min_freq, interrupting an upload or request after session/decoder state is published leaves persistent session globals pointing into freed request memory. A subsequent upload progress request routed to the same worker consumes those stale globals prior to initialization, achieving full RCE on both PHP-FPM andmod_php. - PHP 8.5
fatal_error_backtraces(Confirmed RCE onmod_php): - In PHP 8.5, when
fatal_error_backtracesis enabled, fatal error reporting stores request-owned backtrace state in global memory and fails to reset it during shutdown. Any early diagnostic on the next request consumes the freed backtrace structure. - Early INI Diagnostics Before Request Initialization:
- Any warning, notice, or deprecation emitted while applying per-request INI overrides (via
.htaccess, Apachephp_value/php_flag/php_admin_*, or FastCGIPHP_VALUE/PHP_ADMIN_VALUE) accesses global error state beforephp_request_startup()resets it. - Examples include deprecated settings (
auto_detect_line_endings=1, non-defaultfilter.default, PHP 8.3+assert.*, PHP 8.4+ legacy session directives, PHP 8.5report_memleaks=0, explicitmbstring.*oriconv.*encodings) or paths rejected byopen_basedir. - Crucial detail: PHP accesses the stale global state before checking
error_reporting,display_errors,log_errors, or the@suppression operator. Hiding warnings does not prevent exploitation.
Immediate Mitigations If You Cannot Upgrade PHP Today
Warning from the PHP Security Team: Only upgrading to PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 (or applying the official source backports for 7.4/8.0/8.1) completely resolves these vulnerabilities. If you cannot upgrade immediately, you must apply the following layered controls across both PHP and your web servers/proxies and restart all PHP workers.
Step 1: Lock Down PHP Configuration (php.ini / FPM Pool)
Do not rely on ini_set() inside PHP scripts or .user.ini files—both run after the vulnerable pre-initialization paths have already executed. Apply these settings in global php.ini or FPM pool definitions and restart every worker:
Create /etc/php/*/fpm/conf.d/99-cve-2026-109618-109619-mitigation.ini (and the equivalent for Apache/LSAPI):
; 1. Block CVE-2026-109619 session upload progress producer & consumer paths
; Recommended by the PHP Security Team even AFTER patching.
session.upload_progress.enabled = 0
; 2. Block CVE-2026-109619 PHP 8.5 fatal error backtrace producer path
fatal_error_backtraces = 0
; 3. Mitigate CVE-2026-109618 controllable per-request PHP OOM longjmp()
; IMPORTANT: Pair this with strict post_max_size and cgroup memory.max limits!
memory_limit = -1
; 4. Bound multipart and input amplification vectors (CVE-2026-109618)
post_max_size = 8M ; Use 8M if uploads aren't needed, or 32M if required
upload_max_filesize = 4M ; Keep strictly below post_max_size
max_file_uploads = 5
max_input_vars = 500
max_input_nesting_level = 16
In your PHP-FPM pool configuration (/etc/php/*/fpm/pool.d/www.conf), enforce these with php_admin_value / php_admin_flag so no application or directory override can re-enable finite memory_limit or upload_progress:
php_admin_flag[session.upload_progress.enabled] = off
php_admin_flag[fatal_error_backtraces] = off
php_admin_value[memory_limit] = -1
php_admin_value[post_max_size] = 8M
php_admin_value[max_input_nesting_level] = 16
Critical Cgroup vs.
RLIMITWarning: When settingmemory_limit = -1to prevent attackers from triggering a predictable PHPlongjmp(), enforce your process memory boundary using a container or systemd/cgroup v2 limit (MemoryMax=/memory.max) that OOM-kills the worker cleanly. NEVER useRLIMIT_ASorRLIMIT_DATA, because whenRLIMITis reached,mmap()/brk()returnsNULLto PHP, which immediately triggers the exact vulnerablelongjmp()OOM path!
Restart PHP-FPM or Apache immediately after applying:
systemctl restart php*-fpm
Step 2: Web Server & FastCGI Hardening (NGINX, Apache, HAProxy)
audit any PHP_VALUE or PHP_ADMIN_VALUE directives passed from NGINX, Apache, or HAProxy to ensure they never pass deprecated or invalid INI directives (which act as early diagnostic consumers for CVE-2026-109619), while enforcing session.upload_progress.enabled=0 and strict body limits at the proxy boundary.
Option A: NGINX + PHP-FPM
http {
# Enforce decoded body size at the reverse proxy (including chunked requests)
client_max_body_size 8m;
client_body_timeout 10s;
# Buffer the full client request before forwarding to PHP-FPM
fastcgi_request_buffering on;
proxy_request_buffering on;
server {
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass unix:/run/php/php-fpm.sock;
# Enforce administrative kill switches (ensure no deprecated INI keys are sent)
fastcgi_param PHP_ADMIN_VALUE "session.upload_progress.enabled=0\nmemory_limit=-1";
}
}
}
Reload NGINX:
nginx -t && systemctl reload nginx
Option B: Apache (mod_php and mod_proxy_fcgi)
Because Apache mod_php faces the highest risk (unconditional shutdown execution on startup OOM and pre-startup .htaccess INI evaluation):
- Disable
.htaccessoverrides (AllowOverride None) wherever possible so attackers or legacy directories cannot trigger pre-initialization INI warnings viaphp_value/php_flag. - Enforce request size and rate limits via
LimitRequestBodyandmod_reqtimeout:
# Reject oversized or un-bounded request bodies at the Apache layer (8 MB)
LimitRequestBody 8388608
<IfModule mod_reqtimeout.c>
RequestReadTimeout header=10-20,MinRate=500 body=10,MinRate=1000
</IfModule>
<IfModule mod_php.c>
php_admin_flag session.upload_progress.enabled off
php_admin_flag fatal_error_backtraces off
php_admin_value memory_limit -1
php_admin_value post_max_size 8M
</IfModule>
<IfModule mod_proxy_fcgi.c>
SetEnv PHP_ADMIN_VALUE "session.upload_progress.enabled=0"
</IfModule>
Restart Apache so all worker processes start with a clean global heap:
apachectl configtest && systemctl restart apache2
Option C: HAProxy (Edge Body Filtering, Buffering & FastCGI)
In HAProxy, you can simultaneously:
1. Block requests missing a valid Content-Length on multipart/form-data POSTs (preventing the CVE-2026-109618 post_max_size bypass),
2. Block PHP_SESSION_UPLOAD_PROGRESS in buffered multipart bodies (preventing the CVE-2026-109619 session lifecycle consumer/producer), and
3. Lock session.upload_progress.enabled=0 if using HAProxy's native fcgi-app.
frontend https_edge
bind :443 ssl crt /etc/haproxy/certs/
mode http
# Buffer client request bodies and enforce strict timeouts
option http-buffer-request
timeout http-request 5s
timeout client-fin 5s
acl is_post method POST
acl is_multipart req.hdr(Content-Type) -i -m sub multipart/form-data
# 1. CVE-2026-109618: Require a valid Content-Length on multipart POSTs and cap size
acl has_content_length req.hdr_cnt(Content-Length) eq 1
acl body_too_large req.body_size gt 8388608
http-request deny deny_status 411 if is_post is_multipart !has_content_length
http-request deny deny_status 413 if is_post body_too_large
# 2. CVE-2026-109619: Block multipart payloads containing PHP_SESSION_UPLOAD_PROGRESS
acl has_upload_progress req.body -m sub PHP_SESSION_UPLOAD_PROGRESS
http-request deny deny_status 403 if is_post is_multipart has_upload_progress
default_backend php_fpm_nodes
fcgi-app php-fpm-app
docroot /var/www/html
index index.php
path-info ^(/.+\.php)(/.*)?$
set-param PHP_ADMIN_VALUE "session.upload_progress.enabled=0"
backend php_fpm_nodes
mode http
use-fcgi-app php-fpm-app
server fpm1 127.0.0.1:9000 proto fcgi check
Validate and reload HAProxy:
haproxy -c -f /etc/haproxy/haproxy.cfg && systemctl reload haproxy
Step 3: WAF & Edge Rules (ModSecurity & OpenResty)
If your application does not use multipart/form-data file uploads at all, the PHP Security Team recommends blocking multipart/form-data requests at the frontend entirely. Otherwise, enforce strict multipart part/header bounds and block PHP_SESSION_UPLOAD_PROGRESS:
ModSecurity (Apache, NGINX, OWASP CRS)
# Block PHP_SESSION_UPLOAD_PROGRESS in parsed POST fields or raw multipart streams
SecRule REQUEST_METHOD "@streq POST" \
"id:1000101,\
phase:2,\
block,\
status:403,\
log,\
msg:'CVE-2026-109619: Blocked PHP_SESSION_UPLOAD_PROGRESS field',\
chain"
SecRule ARGS_POST_NAMES "@contains PHP_SESSION_UPLOAD_PROGRESS" ""
SecRule REQUEST_BODY "@rx name=[\"']?PHP_SESSION_UPLOAD_PROGRESS[\"']?" \
"id:1000102,\
phase:2,\
block,\
status:403,\
log,\
msg:'CVE-2026-109619: Blocked raw multipart PHP_SESSION_UPLOAD_PROGRESS'"
# Require Content-Length on multipart/form-data requests (CVE-2026-109618)
SecRule REQUEST_HEADERS:Content-Type "@rx (?i)multipart/form-data" \
"id:1000103,\
phase:1,\
block,\
status:411,\
log,\
msg:'CVE-2026-109618: Multipart request without Content-Length',\
chain"
SecRule &REQUEST_HEADERS:Content-Length "@eq 0" ""
OpenResty / NGINX with lua-nginx-module
location / {
access_by_lua_block {
local headers = ngx.req.get_headers()
local content_type = headers["content-type"]
if content_type and string.find(content_type:lower(), "multipart/form-data", 1, true) then
-- CVE-2026-109618: Reject multipart requests without a declared Content-Length
if not headers["content-length"] then
ngx.log(ngx.ERR, "Blocked chunked/unbounded multipart request (CVE-2026-109618)")
return ngx.exit(ngx.HTTP_LENGTH_REQUIRED)
end
ngx.req.read_body()
local body = ngx.req.get_body_data()
if not body then
local body_file = ngx.req.get_body_file()
if body_file then
local f = io.open(body_file, "rb")
if f then
body = f:read(65536)
f:close()
end
end
end
-- CVE-2026-109619: Reject PHP_SESSION_UPLOAD_PROGRESS
if body and string.find(body, "PHP_SESSION_UPLOAD_PROGRESS", 1, true) then
ngx.log(ngx.ERR, "Blocked PHP_SESSION_UPLOAD_PROGRESS attempt (CVE-2026-109619)")
return ngx.exit(ngx.HTTP_FORBIDDEN)
end
end
}
# Standard proxy_pass or fastcgi_pass configuration below
}
Auditing Your Fleet & Logs
The PHP Security Team recommends running a targeted configuration and log audit across all PHP hosts:
1. Check Active Runtime Versions & Vulnerable INI Directives
for bin in $(which php php-fpm php-fpm8.1 php-fpm8.2 php-fpm8.3 php-fpm8.4 php-fpm8.5 lsphp 2>/dev/null | sort -u); do
echo "=== Auditing: $bin ($("$bin" -v 2>/dev/null | head -n1)) ==="
"$bin" -i 2>/dev/null | grep -E "^(memory_limit|post_max_size|upload_max_filesize|max_file_uploads|max_input_nesting_level|fatal_error_backtraces|session\.upload_progress\.(enabled|name))"
done
2. Audit Startup & Per-Request INI Overrides for Early Diagnostic Consumers
Search your Apache, NGINX, .htaccess, and FPM configs for deprecated or invalid INI settings that emit warnings before php_request_startup() (which act as consumers for CVE-2026-109619):
grep -rnE "php_(admin_)?(value|flag)|PHP_(ADMIN_)?VALUE|auto_detect_line_endings|filter\.default|mbstring\.(http_|internal_)|iconv\." \
/etc/nginx /etc/apache2 /etc/httpd /etc/php* /var/www 2>/dev/null
3. Inspect Logs for Producer Triggers
Enable log_errors=On and error_reporting=E_ALL in your startup php.ini and check your PHP-FPM and Apache error logs for evidence of producer interruptions or early diagnostics:
Allowed memory size of ... bytes exhaustedMaximum execution time of ... seconds exceeded- Warnings or deprecations logged without a script filename or at
Unknown on line 0(indicating pre-initialization or post-deactivation diagnostics)
Official Patched Versions & Upgrade Matrix
As soon as your change window or build pipeline allows, upgrade to the patched releases published on 21 October 2026:
| PHP Branch | Affected Versions | Patched Release | Status / Notes |
|---|---|---|---|
| PHP 8.5 | < 8.5.12 |
8.5.12 | Active support — Download |
| PHP 8.4 | < 8.4.27 |
8.4.27 | Active support — Download |
| PHP 8.3 | < 8.3.36 |
8.3.36 | Security support — Download |
| PHP 8.2 | < 8.2.35 |
8.2.35 | Security support (EOL on 31 Dec 2026) |
| PHP 8.1 (EOL) | All 8.1.x |
PHP-8.1-CVE-2026-109618-109619 |
Official minimal source backport branch or LTS distro vendor |
| PHP 8.0 (EOL) | All 8.0.x |
PHP-8.0-CVE-2026-109618-109619 |
Official minimal source backport branch or LTS distro vendor |
| PHP 7.4 (EOL) | All 7.4.x |
PHP-7.4-CVE-2026-109618-109619 |
Official minimal source backport branch or LTS distro vendor |