{"vuln_id":"GHSA-8mjj-2r7p-4hg2","aliases":["CVE-2026-129474","CVE-2026-129538","GHSA-5j3f-64r7-f564","GHSA-2fjv-p558-g82m"],"description":"Use-after-free in magic method backtraces can lead to remote code execution","published_at":"2026-11-19T14:06:20Z","modified_at":"2026-11-19T19:04:50Z","first_seen_at":"2026-11-21T19:15:07.663708Z","severity":"critical","severity_source":"ghsa","cvss_score":9.2,"cvss_vector":"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","cwe":["CWE-416"],"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-8mjj-2r7p-4hg2"},"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":8611,"source":{"id":"nvd","name":"NVD CVE API 2.0"},"title":"CVE-2026-129474: Use-after-free in magic method backtraces can lead to remote code execution. When collecting the arguments of a method call handled by __call() or __callStatic…","summary":"Use-after-free in magic method backtraces can lead to remote code execution.\n\nWhen collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this.\n\nThis issue affects PHP versions 8.5.* before 8.5.13.\n\nReferences:\nhttps://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2\nhttps://access.redhat.com/security/cve/cve-2026-129474\nhttps://github.com/murrez/php2shell/blob/a8e24f4efab57f67384909d9408e42a74b973bfb/poc.py#L808-L816\nhttps://ubuntu.com/security/CVE-2026-129474","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129474","published_at":"2026-11-19T15:17:28.110000Z","updated_at":"2026-11-22T01:16:52.627000Z","fetched_at":"2026-11-21T19:15:31.484338Z","severity":"critical","cvss_score":9.2,"epss":0.07248,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":null,"vuln_id":"CVE-2026-129474","vuln_ids":["CVE-2026-129474","CVE-2026-129538","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-8MJJ-2R7P-4HG2"],"tags":["CWE-416"],"cluster_id":445,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/8611","html":"https://vulnwatch.ve1ve2.com/item/8611"}},{"id":623,"source":{"id":"gh-php-src","name":"PHP releases (GitHub php/php-src tags)"},"title":"GHSA-8mjj-2r7p-4hg2 / CVE-2026-129474: Use-after-free in magic method backtraces can lead to remote code execution","summary":"Use-after-free in magic method backtraces can lead to remote code execution\n\n### Summary\r\n\r\nPHP can access freed memory when collecting the arguments of a method handled by `__call()` or `__callStatic()` for a backtrace. On PHP 8.5 and later, an unauthenticated attacker may be able to trigger this through a crafted request that causes a fatal error while the application enters such a method. Successful exploitation can execute arbitrary code with the privileges of the PHP worker.\r\n\r\nThe demonstrated remote attack requires `fatal_error_backtraces=1` and `zend.exception_ignore_args=0`. Fatal error backtraces are enabled by default in PHP 8.5. PHP's built-in default also includes arguments, but `php.ini-production` sets `zend.exception_ignore_args=1` and prevents this attack path.\r\n\r\n### Details\r\n\r\nApplications and frameworks commonly use `__call()` and `__callStatic()` to forward method calls to another object, including logging facades, database interfaces and service proxies. Before PHP enters the actual magic method, it briefly represents the requested method as a separate call. A backtrace taken during this interval can collect values left behind by an earlier call instead of the current arguments. Some of those values can refer to memory that has already been freed.\r\n\r\nThe demonstrated attack submits crafted JSON to an import endpoint that processes the body and then logs it through a magic static method. The request is sized so that constructing a logging argument crosses `memory_limit`. PHP 8.5.12 introduced delayed handling of this allocation failure, allowing the fatal error to be reported while the magic method call is being entered. If fatal error backtraces include arguments, PHP can then treat request-controlled bytes in reused memory as live values. Processing or releasing the backtrace can corrupt memory or transfer control to an attacker-chosen address.\r\n\r\nFatal error backtraces were introduced in PHP 8.5.0. An execution time limit expiring during the same interval is another possible trigger. PHP 8.2–8.4 contain the underlying backtrace error, but reaching it requires a PCNTL signal handler or another component to inspect an interrupted call. No attacker-controlled remote trigger has been established for those branches. They are therefore outside this advisory’s affected version range.\r\n\r\n### Impact\r\n\r\nRemote code execution has been confirmed on PHP 8.5 and later. Exploitation depends on the application and requires control over enough request data to influence memory allocation, a reachable magic method call, and a fatal error at the relevant point. The demonstrated code execution chain also requires knowledge of usable memory addresses despite address space randomisation. Other attempts can crash the worker or produce an ordinary resource limit error.\r\n\r\nPotentially relevant paths include [Laravel facades](https://github.com/laravel/framework/blob/v13.40.0/src/Illuminate/Support/Facades/Facade.php#L356) and [Magento guest shipping estimation](https://github.com/magento/magento2/blob/2.4.9/app/code/Magento\n\nAffected packages: php:engine\nPatched: engine 8.5.13","url":"https://github.com/php/php-src/security/advisories/GHSA-8mjj-2r7p-4hg2","published_at":"2026-11-19T14:06:20Z","updated_at":"2026-11-19T19:04:50Z","fetched_at":"2026-11-21T19:15:07.553360Z","severity":"critical","cvss_score":9.2,"epss":0.07248,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"engine","vuln_id":"CVE-2026-129474","vuln_ids":["CVE-2026-129474","CVE-2026-129538","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-8MJJ-2R7P-4HG2"],"tags":["repo-advisory","php","CWE-416","security","repo:php/php-src"],"cluster_id":444,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/623","html":"https://vulnwatch.ve1ve2.com/item/623"}},{"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"}},{"id":12429,"source":{"id":"php-releases","name":"PHP releases (all active branches, php.net)"},"title":"[SECURITY RELEASE] PHP 8.6.0","summary":"Fixes: CVE-2026-129474, GHSA-8mjj-2r7p-4hg2\n\n>\n\nVersion 8.6.0\n\n19 Nov 2026\n\nCore:\n\nFix potential ABI incompatibility when adding fields in patches by adding padding to globals.\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 bug GH-25023 (ZEND_CONTAINER_OF() fails to compile with -std=c11).\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 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\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\nFixed GH-23921 (Fibers start with error_reporting = 0 when the error_reporting INI directive is not set).\n\nDeprecated using \"let\" or \"is\" as the name of a class, function, or constant, and as an alias in class_alias() and use declarations.\n\nDeprecated using \"_\" as a constant name and as an alias for a class or constant in use declarations.\n\nFixed incorrect internal pointer and foreach iterator positions when compacting arrays with holes.\n\nFix handling of references to typed properties during unserialization of various internal classes.\n\nFixed bug GH-23752 (Use scoped diagnostic suppression for the global register declarations so the caller's -Wvolatile-register-var state is restored).\n\nFixed OSS-Fuzz #538730793 (Assertion failure when returning by-ref from closure invoke).\n\nFixed OSS-Fuzz #540904105 (ASSERT: ast->attr == T_CLASS_C).\n\nCalling is_a() or is_subclass_of() with a string as the first argument when $allow_string is false is now deprecated.\n\nEnabled the TAILCALL VM (--disable-gcc-global-regs) when building with GCC >= 16.\n\nFixed GH-10497 (Allow direct mutation of objects stored in constants or class constants via OBJ->prop = $val).\n\nUsing the return statement in a finally block is now deprecated.\n\nDeprecated \"namespace\" as a class constant name.\n\nChanged run-tests.php to run in parallel by default, using up to 10 automatically detected workers. Pass -j1 for sequential execution.\n\nAllowed readonly properties to declare default values.\n\nChanged run-tests.php to run test subprocesses without a shell where possible.\n\nFixed GH-23121 (is_callable() wrongly accepts objects with no get_closure handler).\n\nPassing a 3rd argument to define() is now deprecated.\n\nNaming a function readonly is now deprecated.\n\nAdded stateless closure cache.\n\nImplemented partial function application RFC.\n\nCompile array_map() into a foreach() loop when using Partial Function Application as callback.\n\nFixed bug GH-22263 (reset typed property default on every unserialize failure path).\n\nFixed bug GH-18847 (SEGV in zend_fetch_debug_backtrace() when the memory limit is reached while the tracing JIT enters a call frame).\n\nSync Boost.Context assembly with 1.91.0.\n\nFixed bug GH-22387 (AST pretty-printing drops meaningful parentheses around RHS of instanceof).\n\nFixed bug GH-15672 and GH-15911 (Stack overflow when an interna","url":"https://php.net/releases/8_6_0.php","published_at":"2026-11-19T00:00:00Z","updated_at":null,"fetched_at":"2026-11-22T13:46:14.266715Z","severity":"critical","cvss_score":9.2,"epss":0.07248,"is_kev":false,"has_exploit":false,"kev_due_date":null,"vendor":"php","product":"php","vuln_id":"CVE-2026-129474","vuln_ids":["CVE-2026-129474","CVE-2026-129538","GHSA-2FJV-P558-G82M","GHSA-5J3F-64R7-F564","GHSA-8MJJ-2R7P-4HG2"],"tags":["release","php-branch:8.6","security","stack"],"cluster_id":445,"links":{"self":"https://vulnwatch.ve1ve2.com/api/v1/items/12429","html":"https://vulnwatch.ve1ve2.com/item/12429"}}]}