VulnWatch by ve1ve2
critical 9.2 EPSS 16.1%

[SECURITY RELEASE] PHP 8.5.13

Source:
PHP releases (all active branches, php.net)
Published:
Fetched:
Affects:
php php

https://php.net/releases/8_5_13.php ↗

releasephp-branch:8.5securitystack

Fixes: CVE-2026-129474, CVE-2026-129182, CVE-2026-129538, CVE-2026-129496, CVE-2026-129501, CVE-2026-129291, CVE-2026-129289, CVE-2026-129292, GHSA-8mjj-2r7p-4hg2, GHSA-2fjv-p558-g82m, GHSA-5j3f-64r7-f564, GHSA-gr4f-wgx5-jpfv, GHSA-x8r7-mg3g-74hg, GHSA-jm4m-qfqx-967m, GHSA-qc49-hpvq-g2w6, GHSA-3mg3-cr28-46gc > Version 8.5.13 19 Nov 2026 Core: Fixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused). Fixed memory leak when an exception already contains the pending exception in its previous chain. Fixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function). Fixed memory manager keeping a block reallocated to exactly the size of the next smaller bin in its larger bin, which efree_size() then freed into the wrong one. Fixed bug GH-24081 (User opcode handlers resume execution against a stale frame under ZEND_VM_KIND_TAILCALL). Fixed bug GH-24218 (Invalid opcode for count() of a literal array without SCCP). Fix throwing behaviour with recursive arrays in VM. Fixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas) Fix escape analysis for objects implementing ArrayAccess. Fix UAF for resolved callable zval. Fix memory leak for nested HTTP calls. Fix function and constant imports in compile_to_ast and add support for grouping. Fixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV). Fixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203). Fixed AST printing dropping final on class constants and properties, and abstract on properties. Fixed AST export of readonly anonymous classes dropping the readonly modifier. Fixed memory leak of a duplicate named argument in new in initializer. Fixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC). Fixed first-class callables to static methods in trait constant expressions resolving to the method of the first using class and bypassing visibility checks. Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution). (CVE-2026-129474) Fixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown). (CVE-2026-129182) CGI: Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538) CLI: Fixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work). Fixed bug GH-9670 (List -C and -q in the CLI help). COM: Fixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib). Curl: Fix use-after-free of CURLOPT_STDERR stream on cloned curl handle. Fix UAF on clone due to callback data pointer mismatch. Date: Fixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction). Fixed bug GH-24350 (MINIT reads a stale external tz database after an in-process module restart). Fixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote code execution). (CVE-2026-129496) DBA: Fixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open). DOM: Fixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper. Fix error paths in dom_xml_serializing_a_document_node(). Fixed bug GH-25118 (Dom\HTMLDocument::createFromString() crash on OOM). Fixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501) FFI: Fixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type() bails out). Fileinfo: Fixed bug GH-24289 (finfo::file() reports the wrong argument number for an invalid $filename). FPM: Fixed bug GH-24229 (fcgi_close() passes shutdown() a literal 1, which is SHUT_RD in WASI). Fixed crash and stack memory disclosure in the worker output logging with a pool name longer than the message prefix buffer or log_limit. Fixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local privilege escalation). (CVE-2026-129291) Fixed memory leaks of the _GET string on the status page error and HEAD request paths. Fixed use-after-free of the scoreboard copy when

Linked vulnerabilities (16)

CVE-2026-129289 critical 9.2 EPSS 16.1% (p97) NVDCVE.orgGHSA
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

PHP-FPM request smuggling through an unread HTTP request body. PHP does not discard the unread part of an HTTP request body at request shutdown when the application has opened php://input without reading it to the end. When the front end reuses backend connections, which is not the default in nginx or Apache (for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse the leftover bytes as a new FastCGI request. An unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen...

CWE: CWE-444, CWE-670Aliases: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129291, CVE-2026-129292, CVE-2026-129496, CVE-2026-129506, CVE-2026-129538, CVE-2026-15353, GHSA-qc49-hpvq-g2w6, CVE-2026-129481, CVE-2026-129501NVD: Awaiting Analysis
CVE-2026-129291 high 8.8 EPSS 1.03% (p65) NVDCVE.orgGHSA
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

PHP-FPM epoll use-after-free can lead to local privilege escalation. When catch_workers_output is enabled and the epoll event backend is used, the PHP-FPM master can close a worker's output pipe in fpm_child_close() without removing the associated event, and the delayed cleanup can free the worker record while its epoll registration is still active. A later event is then dispatched through a pointer into freed memory. A local attacker who can execute PHP code in an FPM worker can crash the master or execute code with its privileges, commonly root. catch_workers_output is disabled by...

CWE: CWE-416, CWE-825Aliases: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129292, CVE-2026-129496, CVE-2026-129506, CVE-2026-129538, CVE-2026-15353, GHSA-jm4m-qfqx-967m, CVE-2026-129481, CVE-2026-129501NVD: Awaiting Analysis
CVE-2026-129496 critical 9.2 EPSS 8.14% (p95) NVDCVE.orgGHSA
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for example for an invalid date.timezone value or a session configuration warning, causes the timezone cache to be allocated in startup memory that is freed while a reference to it is kept. A diagnostic raised early in the first request of a worker, such as the max_input_vars warning, then accesses the freed cache. On such a deployment an unauthenticated remote attacker can crash PHP-FPM, Apache mod_php or CGI workers with a...

CWE: CWE-416, CWE-459, CWE-825Aliases: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129291, CVE-2026-129292, CVE-2026-129506, CVE-2026-129538, CVE-2026-15353, GHSA-gr4f-wgx5-jpfv, CVE-2026-129481, CVE-2026-129501NVD: Awaiting Analysis
CVE-2026-129292 medium 5.3 EPSS 1.07% (p66) NVDCVE.orgGHSAGHSAGHSA
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

PHP-FPM status endpoint XSS via unescaped user and script fields. The PHP-FPM full status output includes the request method, authentication user and script filename of each worker without escaping them for the HTML, XML or JSON format. When the status endpoint is enabled, an unauthenticated remote attacker can store markup in a worker's scoreboard entry with an ordinary request, for example through the username of an HTTP Basic authentication header that the web server forwards to PHP-FPM, or through the script filename where the attacker can influence it. When a user views the full...

CWE: CWE-79Aliases: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129291, CVE-2026-129496, CVE-2026-129506, CVE-2026-129538, CVE-2026-15353, GHSA-3mg3-cr28-46gc, CVE-2026-6735, GHSA-7qg2-v9fj-4mwv, GHSA-q8fm-p8fx-h6r6, CVE-2026-129481, CVE-2026-129501NVD: Awaiting Analysis
CVE-2026-129538 medium 6.9 EPSS 12.8% (p96) NVDCVE.orgGHSAGHSAGHSA
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

PHP-CGI out-of-bounds read and write during PATH_INFO correction. The PHP CGI binary (php-cgi), in CGI and FastCGI mode with cgi.fix_pathinfo enabled (the default), can perform an out-of-bounds read and write when the path removed from SCRIPT_FILENAME or PATH_TRANSLATED is longer than the supplied PATH_INFO, or when PATH_INFO is empty. This requires a web server mapping that passes such inconsistent values, or a FastCGI listener reachable by untrusted clients. An unauthenticated remote attacker can crash the process, may obtain process memory if the application exposes PATH_INFO or...

CWE: CWE-125, CWE-787, CWE-823Aliases: CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129291, CVE-2026-129292, CVE-2026-129496, CVE-2026-129506, CVE-2026-15353, GHSA-5j3f-64r7-f564, CVE-2026-129474, GHSA-8mjj-2r7p-4hg2, GHSA-2fjv-p558-g82m, CVE-2026-129481, CVE-2026-129501NVD: Awaiting Analysis
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Use-after-free in magic method backtraces can lead to remote code execution

CWE: CWE-416Aliases: CVE-2026-129474, CVE-2026-129538, GHSA-5j3f-64r7-f564, GHSA-2fjv-p558-g82m
CVE-2026-129474 critical 9.2 EPSS 7.25% (p94) NVDCVE.orgGHSAGHSAGHSA
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Use-after-free in magic method backtraces can lead to remote code execution

CWE: CWE-416, CWE-825Aliases: GHSA-8mjj-2r7p-4hg2, CVE-2026-129538, GHSA-5j3f-64r7-f564, GHSA-2fjv-p558-g82mNVD: Awaiting Analysis
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

CWE: CWE-416, CWE-459Aliases: CVE-2026-129182, CVE-2026-109619, GHSA-6wmf-4rv5-p3rp, CVE-2026-129538, CVE-2026-129474, GHSA-5j3f-64r7-f564, GHSA-8mjj-2r7p-4hg2
CVE-2026-129182 critical 9.2 EPSS 8.49% (p95) NVDCVE.orgGHSAGHSA
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown

CWE: CWE-416, CWE-459, CWE-825Aliases: GHSA-2fjv-p558-g82m, CVE-2026-109619, GHSA-6wmf-4rv5-p3rpNVD: Awaiting Analysis
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Double free during DOM XML serialization

CWE: CWE-415, CWE-416Aliases: CVE-2026-129501
CVE-2026-129501 medium 6.3 EPSS 0.65% (p52) NVDCVE.orgGHSA
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

Double free during DOM XML serialization

CWE: CWE-415, CWE-416, CWE-1341Aliases: GHSA-x8r7-mg3g-74hg, CVE-2026-115560, CVE-2026-126714, CVE-2026-127960, CVE-2026-128064, CVE-2026-128090, CVE-2026-129289, CVE-2026-129291, CVE-2026-129292, CVE-2026-129481, CVE-2026-129496, CVE-2026-129506, CVE-2026-129538, CVE-2026-15353NVD: Awaiting Analysis
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H

PHP-FPM epoll use-after-free can lead to local privilege escalation

CWE: CWE-416Aliases: CVE-2026-129291
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Timezone cache use-after-free can lead to remote code execution

CWE: CWE-416, CWE-459Aliases: CVE-2026-129496
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

PHP-FPM request smuggling through an unread HTTP request body

CWE: CWE-444, CWE-670Aliases: CVE-2026-129289
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N

PHP-FPM status endpoint XSS via unescaped user and script fields

CWE: CWE-79Aliases: CVE-2026-129292, CVE-2026-6735, GHSA-7qg2-v9fj-4mwv, GHSA-q8fm-p8fx-h6r6
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N

PHP-CGI out-of-bounds read and write during PATH_INFO correction

CWE: CWE-125, CWE-787, CWE-823Aliases: CVE-2026-129538, CVE-2026-129474, GHSA-8mjj-2r7p-4hg2, GHSA-2fjv-p558-g82m

Also reported by (3)