{"vuln_id":"GHSA-2fjv-p558-g82m","aliases":["CVE-2026-129182","CVE-2026-109619","GHSA-6wmf-4rv5-p3rp","CVE-2026-129538","CVE-2026-129474","GHSA-5j3f-64r7-f564","GHSA-8mjj-2r7p-4hg2"],"description":"Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown","published_at":"2026-11-19T14:06:04Z","modified_at":"2026-11-19T19:01:07Z","first_seen_at":"2026-11-21T19:15:07.663712Z","severity":"critical","severity_source":"ghsa","cvss_score":9.2,"cvss_vector":"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","cwe":["CWE-416","CWE-459"],"vendor":null,"product":null,"kev":{"is_kev":false,"date_added":null,"due_date":null,"ransomware":false},"epss":null,"epss_percentile":null,"nvd_status":null,"enriched_at":null,"links":{"nvd":"https://github.com/advisories/GHSA-2fjv-p558-g82m"},"matched_alias":null,"items":[{"id":654,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"[SECURITY RELEASE] php/php-src php-8.5.13 - PHP 8.5.13","summary":"Fixes advisories: GHSA-8mjj-2r7p-4hg2, GHSA-2fjv-p558-g82m, GHSA-mg3p-mxj9-g2mm, GHSA-g3vh-838c-65v7, GHSA-x8r7-mg3g-74hg, GHSA-jm4m-qfqx-967m, GHSA-mmf9-xm3v-hg2x, GHSA-f6gg-rchx-xw8j, GHSA-658j-r8rw-q6mx, GHSA-gr4f-wgx5-jpfv, GHSA-fm2m-fjf5-v3cp, GHSA-4646-p932-gw34, GHSA-qc49-hpvq-g2w6, GHSA-3mg3-cr28-46gc, GHSA-5j3f-64r7-f564, GHSA-68fq-fh7h-f8gr, GHSA-q23r-hr55-xmpg\n\n(no release notes)","url":"https://github.com/php/php-src/releases/tag/php-8.5.13","published_at":"2026-11-21T02:00:50Z","updated_at":null,"fetched_at":"2026-11-21T19:15:07.553386Z","severity":"critical","cvss_score":9.2,"epss":0.71117,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php-src","vuln_id":"CVE-2026-129474","vuln_ids":["CVE-2025-1217","CVE-2026-109619","CVE-2026-115560","CVE-2026-126714","CVE-2026-127960","CVE-2026-128064","CVE-2026-128090","CVE-2026-129182","CVE-2026-129289","CVE-2026-129291","CVE-2026-129292","CVE-2026-129438","CVE-2026-129474","CVE-2026-129481","CVE-2026-129496","CVE-2026-129501","CVE-2026-129506","CVE-2026-129538","CVE-2026-15353","CVE-2026-6735","CVE-2026-91765","GHSA-2FJV-P558-G82M","GHSA-3MG3-CR28-46GC","GHSA-4646-P932-GW34","GHSA-5J3F-64R7-F564","GHSA-658J-R8RW-Q6MX","GHSA-68FQ-FH7H-F8GR","GHSA-6WMF-4RV5-P3RP","GHSA-7QG2-V9FJ-4MWV","GHSA-8MJJ-2R7P-4HG2","GHSA-F6GG-RCHX-XW8J","GHSA-FM2M-FJF5-V3CP","GHSA-G3VH-838C-65V7","GHSA-GR4F-WGX5-JPFV","GHSA-JM4M-QFQX-967M","GHSA-MG3P-MXJ9-G2MM","GHSA-MMF9-XM3V-HG2X","GHSA-Q23R-HR55-XMPG","GHSA-Q8FM-P8FX-H6R6","GHSA-QC49-HPVQ-G2W6","GHSA-RGRP-MWPX-F6RM","GHSA-V8XR-GPVJ-CX9G","GHSA-X8R7-MG3G-74HG"],"tags":["release","repo:php/php-src","security"],"cluster_id":444,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/654","html":"https://vulnwatch.ve1ve2.com/item/654"}},{"id":766,"source":{"id":"oss-security","name":"oss-security (seclists.org)"},"title":"Re: Upcoming Critical PHP Security Release","summary":"Posted by Alan Coopersmith on Nov 19\nPHP 8.6.0, 8.5.13, 8.4.28, 8.3.37, and 8.2.36 were released today with these fixes:\n\nCGI:\n\n* Fixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)\n\n[8.2, 8.3, 8.4, 8.5, 8.6]\n\nCore:\n\n* Fixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution).\n\n(CVE-2026-129474) [8.5, 8.6]\n\n* Fixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of...","url":"https://seclists.org/oss-sec/2026/q4/793","published_at":"2026-11-20T01:01:20Z","updated_at":"2026-11-20T01:01:20Z","fetched_at":"2026-11-21T19:15:08.152088Z","severity":"critical","cvss_score":9.2,"epss":0.12818,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2026-129538","vuln_ids":["CVE-2026-109619","CVE-2026-115560","CVE-2026-126714","CVE-2026-127960","CVE-2026-128064","CVE-2026-128090","CVE-2026-129182","CVE-2026-129289","CVE-2026-129291","CVE-2026-129292","CVE-2026-129474","CVE-2026-129481","CVE-2026-129496","CVE-2026-129501","CVE-2026-129506","CVE-2026-129538","CVE-2026-15353","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-6WMF-4RV5-P3RP","GHSA-8MJJ-2R7P-4HG2"],"tags":[],"cluster_id":334,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/766","html":"https://vulnwatch.ve1ve2.com/item/766"}},{"id":8606,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129182: Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during reque…","summary":"Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown.\n\nA fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution.\n\nThis issue affects PHP versions 8.5.* before 8.5.13.\n\nReferences:\nhttps://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129182","published_at":"2026-11-19T15:17:27.390000Z","updated_at":"2026-11-20T15:17:42Z","fetched_at":"2026-11-21T19:15:31.484334Z","severity":"critical","cvss_score":9.2,"epss":0.08489,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2026-129182","vuln_ids":["CVE-2026-109619","CVE-2026-129182","CVE-2026-129474","CVE-2026-129538","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-6WMF-4RV5-P3RP","GHSA-8MJJ-2R7P-4HG2"],"tags":["CWE-416","CWE-459"],"cluster_id":447,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8606","html":"https://vulnwatch.ve1ve2.com/item/8606"}},{"id":624,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-2fjv-p558-g82m / CVE-2026-129182: Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown","summary":"Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown\n\n### Summary\r\n\r\nAs part of CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp), PHP 8.5.12 fixes a generic use-after-free of the `last_fatal_error_backtrace` global by clearing it during executor shutdown. Further scenarios have been discovered in which a fatal diagnostic during later shutdown work repopulates the global. The request heap is then released, and an early diagnostic in a subsequent request handled by the same worker can access the stale backtrace before normal executor initialization.\r\n\r\n### Details\r\n\r\nThe backtrace can be recreated while PHP restores modified INI settings after executor cleanup:\r\n\r\n- When `max_memory_limit` is specified in both the global and a path-specific configuration, restoring the global limit can fail if memory consumption still exceeds that limit. The resulting fatal error recreates the backtrace.\r\n- When the global configuration specifies `zlib.output_compression=1`, and a path-specific configuration specifies `zlib.output_compression=0` and `output_handler=ob_gzhandler` (or another handler), restoring compression before restoring `output_handler` can raise a fatal configuration error because the two settings conflict.\r\n\r\nBoth shutdown cases are possible with PHP-FPM and mod_php. The `max_memory_limit` override requires administrative configuration. `.user.ini` can supply the zlib settings but cannot change `max_memory_limit`.\r\n\r\nExploitation also requires a diagnostic before executor initialization in a later request handled by the same worker. Apache per-directory configuration can provide this. FPM is conditionally exposed when the frontend sends a diagnostic-producing `PHP_VALUE` or `PHP_ADMIN_VALUE` FastCGI parameter. Ordinary FPM pool settings and `.user.ini` do not provide this early diagnostic.\r\n\r\nThe fix is generic: PHP no longer creates or consumes the fatal-error backtrace while the executor is inactive. This also covers other shutdown diagnostics that might recreate the same state.\r\n\r\n### Impact\r\n\r\nSuccessful exploitation can result in memory corruption and potentially full remote code execution (RCE), as in CVE-2026-109619 (GHSA-6wmf-4rv5-p3rp). The two restoration cases demonstrate heap use-after-free and worker crashes. RCE through these specific entry points has not been demonstrated.\r\n\r\n### Affected versions\r\n\r\nThe affected global was introduced in PHP 8.5.0 by fatal error backtraces. The fix for CVE-2026-109619 in PHP 8.5.12 cleared it during executor shutdown but did not stop later shutdown work from setting it again, so every PHP 8.5 release before 8.5.13 is affected. PHP 8.4 and earlier do not contain the global and are not affected.\r\n\r\n### Mitigation\r\n\r\nUpgrade to PHP 8.5.13 when it becomes available. As a temporary workaround, disable fatal-error backtraces administratively with `fatal_error_backtraces=0` and restart all workers. Ensure that request-specific configuration cannot re-enable the setting.\r\n\n\nAffected packages: php:engine\nPatched: engine 8.5.13","url":"https://github.com/php/php-src/security/advisories/GHSA-2fjv-p558-g82m","published_at":"2026-11-19T14:06:04Z","updated_at":"2026-11-19T19:01:07Z","fetched_at":"2026-11-21T19:15:07.553363Z","severity":"critical","cvss_score":9.2,"epss":0.99999,"is_kev":true,"has_exploit":true,"kev_due_date":"2026-10-29","vendor":"php","product":"engine","vuln_id":"CVE-2026-129182","vuln_ids":["CVE-2026-109618","CVE-2026-109619","CVE-2026-129182","CVE-2026-129474","CVE-2026-129538","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-6WMF-4RV5-P3RP","GHSA-8MJJ-2R7P-4HG2","GHSA-W8HW-W9FX-J79W"],"tags":["repo-advisory","php","CWE-416","CWE-459","security","repo:php/php-src"],"cluster_id":446,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/624","html":"https://vulnwatch.ve1ve2.com/item/624"}},{"id":12430,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.5.13","summary":"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\n\n>\n\nVersion 8.5.13\n\n19 Nov 2026\n\nCore:\n\nFixed bug GH-24184 (System ID not being reinitialized after an Apache graceful restart, potentially causing incompatible OPcache file cache entries to be reused).\n\nFixed memory leak when an exception already contains the pending exception in its previous chain.\n\nFixed bug GH-23979 (Nullsafe operator must not flush delayed oplines of an enclosing function).\n\nFixed 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.\n\nFixed bug GH-24081 (User opcode handlers resume execution against a stale frame under ZEND_VM_KIND_TAILCALL).\n\nFixed bug GH-24218 (Invalid opcode for count() of a literal array without SCCP).\n\nFix throwing behaviour with recursive arrays in VM.\n\nFixed skipped catch block when switching fibers during exception unwinding (Nicolas Grekas)\n\nFix escape analysis for objects implementing ArrayAccess.\n\nFix UAF for resolved callable zval.\n\nFix memory leak for nested HTTP calls.\n\nFix function and constant imports in compile_to_ast and add support for grouping.\n\nFixed bug GH-24668 (zend_set_local_var() leaks the previous value of an existing CV).\n\nFixed unmapping of an unrelated range when the aligned chunk mmap fails (Marti2203).\n\nFixed AST printing dropping final on class constants and properties, and abstract on properties.\n\nFixed AST export of readonly anonymous classes dropping the readonly modifier.\n\nFixed memory leak of a duplicate named argument in new in initializer.\n\nFixed bug GH-25061 ($x = $x - 1 on null is optimized to PRE_DEC).\n\nFixed first-class callables to static methods in trait constant expressions resolving to the method of the first using class and bypassing visibility checks.\n\nFixed GHSA-8mjj-2r7p-4hg2 (Use-after-free in magic method backtraces can lead to remote code execution). (CVE-2026-129474)\n\nFixed GHSA-2fjv-p558-g82m (Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown). (CVE-2026-129182)\n\nCGI:\n\nFixed GHSA-5j3f-64r7-f564 (PHP-CGI out-of-bounds read and write during PATH_INFO correction). (CVE-2026-129538)\n\nCLI:\n\nFixed bug GH-24697 (PHP_HTTP_PARSER_STRICT build option doesn't work).\n\nFixed bug GH-9670 (List -C and -q in the CLI help).\n\nCOM:\n\nFixed bug GH-25008 (com_event_sink() and com_print_typeinfo() crash resolving an event source with no loaded typelib).\n\nCurl:\n\nFix use-after-free of CURLOPT_STDERR stream on cloned curl handle.\n\nFix UAF on clone due to callback data pointer mismatch.\n\nDate:\n\nFixed bug GH-20503 (Assertion failure with ext/date DateInterval property hash construction).\n\nFixed bug GH-24350 (MINIT reads a stale external tz database after an in-process module restart).\n\nFixed GHSA-gr4f-wgx5-jpfv (Timezone cache use-after-free can lead to remote code execution). (CVE-2026-129496)\n\nDBA:\n\nFixed bug GH-24641 (ndbm backend never checks dbm_open() return value, NULL deref on first use after a failed open).\n\nDOM:\n\nFixed a use-after-free when reflected attribute setters replace an attribute whose child still has a live wrapper.\n\nFix error paths in dom_xml_serializing_a_document_node().\n\nFixed bug GH-25118 (Dom\\HTMLDocument::createFromString() crash on OOM).\n\nFixed GHSA-x8r7-mg3g-74hg (Double free during DOM XML serialization). (CVE-2026-129501)\n\nFFI:\n\nFixed bug GH-24582 (Memory leaks in ext/ffi parser when finalize_type() bails out).\n\nFileinfo:\n\nFixed bug GH-24289 (finfo::file() reports the wrong argument number for an invalid $filename).\n\nFPM:\n\nFixed bug GH-24229 (fcgi_close() passes shutdown() a literal 1, which is SHUT_RD in WASI).\n\nFixed crash and stack memory disclosure in the worker output logging with a pool name longer than the message prefix buffer or log_limit.\n\nFixed GHSA-jm4m-qfqx-967m (PHP-FPM epoll use-after-free can lead to local privilege escalation). (CVE-2026-129291)\n\nFixed memory leaks of the _GET string on the status page error and HEAD request paths.\n\nFixed use-after-free of the scoreboard copy when","url":"https://php.net/releases/8_5_13.php","published_at":"2026-11-19T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266716Z","severity":"critical","cvss_score":9.2,"epss":0.16138,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-129474","vuln_ids":["CVE-2026-109619","CVE-2026-115560","CVE-2026-126714","CVE-2026-127960","CVE-2026-128064","CVE-2026-128090","CVE-2026-129182","CVE-2026-129289","CVE-2026-129291","CVE-2026-129292","CVE-2026-129474","CVE-2026-129481","CVE-2026-129496","CVE-2026-129501","CVE-2026-129506","CVE-2026-129538","CVE-2026-15353","CVE-2026-6735","GHSA-2FJV-P558-G82M","GHSA-3MG3-CR28-46GC","GHSA-5J3F-64R7-F564","GHSA-6WMF-4RV5-P3RP","GHSA-7QG2-V9FJ-4MWV","GHSA-8MJJ-2R7P-4HG2","GHSA-GR4F-WGX5-JPFV","GHSA-JM4M-QFQX-967M","GHSA-Q8FM-P8FX-H6R6","GHSA-QC49-HPVQ-G2W6","GHSA-X8R7-MG3G-74HG"],"tags":["release","php-branch:8.5","security","stack"],"cluster_id":445,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12430","html":"https://vulnwatch.ve1ve2.com/item/12430"}}]}