When PHP builds a backtrace it collects the arguments of each call on the stack. For a call that is being routed through __call() or __callStatic(), the arguments it collected while the call was still being entered could be stale, some of them pointing at memory already freed. PHP 8.5 turned fatal-error backtraces on by default, so a fatal error at that moment, such as crossing memory_limit while a logger’s magic static method is being entered, built a backtrace over freed memory: a use-after-free that the PHP Group says can corrupt memory, crash the worker or, with known addresses, execute code. It affects PHP 8.5 only, and it needs zend.exception_ignore_args to be off, which php.ini-production turns on. Upgrade PHP 8.5 to 8.5.13 and restart PHP-FPM or Apache; if you cannot today, set zend.exception_ignore_args=1 in the configuration the workers use, and restart them. Servers that started from php.ini-production already have that setting and are outside the demonstrated path.
CVE-2026-129474 at a glance.
| Component | PHP 8.5, the engine’s backtrace construction for calls handled by __call() and __callStatic(); the php8.5 packages on Ubuntu 26.04 and 26.10, Red Hat Hardened Images php-main |
| Affected versions | PHP 8.5.0 to 8.5.12 only. The advisory says 8.2 to 8.4 have the underlying backtrace error but no known remote trigger, and they are not in the affected range; Debian and Red Hat mark their 8.2, 8.3 and 8.4 packages not affected, and Ubuntu says the issue “only affected Ubuntu 26.10 and Ubuntu 26.04 LTS” |
| Fixed in | PHP 8.5.13, released 19 November 2026 as a security release, alongside 8.4.28, 8.3.37 and 8.2.36 for the other CVEs in the batch; distribution packages below. Workaround: zend.exception_ignore_args=1, or fatal_error_backtraces=0 |
| Severity | CVSS 4.0 9.2 Critical (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H) from the PHP Group, repeated by NVD. Red Hat Critical, CVSS 3.1 8.1 (CWE-825); Ubuntu medium. CWE-416 use after free. AC:H: the attacker has to size a request to cross memory_limit at the right instruction, and needs memory addresses despite ASLR for code execution |
| Exploited in the wild | Not on CISA’s Known Exploited Vulnerabilities list as of 30 November 2026; CISA’s SSVC says no known exploitation, not automatable. EPSS: no score yet as of 29 November 2026. The CVE record links to a public proof-of-concept, which this page does not reproduce |
| Who is exposed | PHP 8.5 workers running with fatal_error_backtraces=1 (the 8.5 default) and zend.exception_ignore_args=0 (the engine default, but php.ini-production and most distribution php.ini files set it to 1), serving an application in which attacker-sized request data reaches a __call() or __callStatic() dispatch. The advisory names Laravel facades and Magento’s guest shipping path as “potentially relevant” and says exploitation of a complete install of either was not demonstrated |
| Published | CVE record and GHSA-8mjj-2r7p-4hg2, 19 November 2026 (credit Adam Korcz of Ada Logics / Anthropic; the advisory notes the report was submitted with AI assistance); this page built 30 November 2026, last updated 30 November 2026 |
What it is
A call to a method that does not exist on an object is routed to __call(), and a static one to __callStatic(); the engine packs the original arguments into an array and hands them to the magic method along with the name. Between the moment the call frame is pushed and the moment the magic method is running, the frame is in a half-built state, and the advisory’s finding is that a backtrace taken in that window collects the frame’s argument slots as if they were valid: “stale argument values, some pointing to freed memory”.
Who takes a backtrace in that window? A fatal error does, when fatal_error_backtraces is on, and PHP 8.5 turned it on by default. The demonstrated trigger is the oldest fatal error there is: crossing memory_limit. The advisory’s attack sends crafted JSON to an import endpoint that logs through a magic static method, sized so that the allocation fails just as the logger call is being entered; 8.5.12 had introduced delayed handling of that allocation failure, the advisory notes. An execution-time-limit expiry in the same window is named as another possible trigger. The backtrace then walks the freed arguments, and the advisory says RCE was confirmed on 8.5 with the caveat that the demonstrated chain needs usable memory addresses despite ASLR; without those, attempts crash the worker or hit a resource limit. It is one of seven CVEs fixed in the PHP security release of 19 November 2026, which produced 8.5.13, 8.4.28, 8.3.37 and 8.2.36; all seven carry the same CVSS 4.0 score of 9.2 from the PHP Group, and this site covers each on its own page and lists the siblings under Related reading.
The setting that decides whether you are exposed is zend.exception_ignore_args. When it is 1, backtraces omit arguments altogether, and this path does not run; php.ini-production sets it to 1, and so do the distribution php.ini files derived from it, which is why the advisory’s own description says that setting “prevents this”. Servers configured from php.ini-development, from a bare build with no php.ini, or from a hand-written file that enables argument capture for better error reports are the ones the demonstrated path reaches. Changing the CLI’s php.ini does nothing for FPM or Apache, and display_errors=0 does not help, because the backtrace is built whether or not it is shown.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 30 November 2026; the link in the row is the tracker page, which will be newer than this one. Only PHP 8.5 packages carry the bug.
| Distribution | Status | Fixed package |
|---|---|---|
| Debian bookworm, trixie, forky | Not affected | php8.2 and php8.4 marked not-affected (“only affects PHP 8.5”); Debian ships no php8.5 package |
| Ubuntu 20.04 to 26.04 and ESM | Fixed on 26.04 and 26.10 (priority medium, USN-9185-1, 23 November 2026); earlier releases not affected | resolute php8.5 8.5.4-0ubuntu1.6, stonking php8.5 8.5.9-0ubuntu2.2; the USN says the issue “only affected Ubuntu 26.10 and Ubuntu 26.04 LTS” |
| RHEL, Rocky, Alma | Not affected on RHEL; Hardened Images fixed (rated Critical, 8.1) | RHEL 7 to 10 php, php:8.x and php8.4 all not affected (no 8.5 shipped); Red Hat Hardened Images php-main-8.5.13-0.1.hum1 (RHSA-2026:101658, 22 November 2026) |
| Fedora, openSUSE, Arch, Alpine | Not consulted | trackers not read for this page; SUSE lists SUSE-SU-2026:5389-1 and later errata for the batch |
php.net tarballs, Docker php images, Remi and Sury repositories, anything you built yourself | Affected below the fixed versions | php.net 8.5.13; the official Docker php:8.5 image tags from 8.5.13 (note that the Docker image ships no php.ini by default, so zend.exception_ignore_args is 0 there unless you copied php.ini-production in); Sury and Remi 8.5 packages at 8.5.13 |
How to check
Three questions: is a PHP 8.5 build older than 8.5.13 serving requests, what do the workers have for the two settings, and does the application dispatch through magic methods on a path that takes request data. The second question is the one that matters, and it has to be asked of the FPM or Apache configuration, not the CLI’s.
# 1. the versions that are installed and running (CLI and FPM can differ)
php -v | head -1
php-fpm8.4 -v 2>/dev/null || php-fpm -v 2>/dev/null | head -1
dpkg -l 'php8*' 2>/dev/null | grep '^ii' | awk '{print $2, $3}' ; rpm -qa 'php*' 2>/dev/null | head
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm -C php-fpm8.3 | head -3
# fixed: 8.5.13, 8.4.28, 8.3.37, 8.2.36 (distribution builds: compare with the table above)
# 2. the two settings as the *workers* see them (the CLI's php.ini may differ)
php-fpm8.5 -i 2>/dev/null | grep -E 'fatal_error_backtraces|zend\.exception_ignore_args'
# Apache mod_php / to be sure of the live value, drop a one-line phpinfo in a protected location, or:
grep -rnE 'fatal_error_backtraces|exception_ignore_args' /etc/php/8.5/fpm/ /etc/php/8.5/apache2/ /etc/php.ini /etc/php.d/ /etc/php-fpm.d/ 2>/dev/null
grep -rnE 'php_(admin_)?(value|flag)\s+zend\.exception_ignore_args' /etc/apache2/ /etc/httpd/ /etc/php/8.5/fpm/pool.d/ 2>/dev/null
# 3. magic-method dispatch in the codebase (Laravel facades and similar count)
grep -rlE 'function __call(Static)?\s*\(' /var/www /srv --include='*.php' 2>/dev/null | headA fixed 8.5.13 in step 1 with worker start times after the upgrade means you are done. In step 2, zend.exception_ignore_args => On for the workers means the demonstrated path is blocked regardless of the version; Off together with fatal_error_backtraces => On is the exposed configuration. Step 3 printing anything is normal for a framework application and is not by itself a problem; it tells you the dispatch the attack needs exists.
How to fix it
Upgrade PHP 8.5 and restart the workers. Ubuntu shipped the fix on 23 November; on a php.net, Docker or third-party-repository install, move to 8.5.13.
# Debian / Ubuntu (the package name carries the branch: php8.2, php8.3, php8.4, php8.5)
apt update && apt install --only-upgrade 'php8.*'
# RHEL family (module streams: dnf module update php, or dnf update php8.4 on RHEL 10)
dnf update 'php*'
# Alpine
apk upgrade 'php8*'
# php.net tarballs, Docker images: 8.5.13 / 8.4.28 / 8.3.37 / 8.2.36 (or the image tags of the same names)
# a new build is not running until every worker is replaced
systemctl restart php8.4-fpm # or php-fpm, php8.3-fpm ... ; mod_php: systemctl restart apache2 / httpd
php -v # the CLI binary, must print the fixed version
php-fpm8.4 -v 2>/dev/null || php-fpm -v # the FPM binary, same
ps -o pid,lstart,args -C php-fpm8.4 -C php-fpm | head -3 # start times must be after the upgradeEither setting blocks the demonstrated path; the advisory’s first choice is zend.exception_ignore_args=1, which is the production default anyway and costs you argument values in exception traces. fatal_error_backtraces=0 on 8.5 is the alternative. Set it in the configuration the affected workers load, and restart them.
# in the php.ini that FPM and/or Apache load (not only the CLI's)
zend.exception_ignore_args = 1
# or, 8.5 only:
# fatal_error_backtraces = 0
systemctl restart php8.5-fpm # and/or: systemctl restart apache2 / httpd
php-fpm8.5 -i 2>/dev/null | grep -E 'exception_ignore_args|fatal_error_backtraces'Do not check the setting with php -i alone and conclude you are safe: Debian and Ubuntu keep separate php.ini files for cli, fpm and apache2, and the advisory is explicit that changing only the CLI’s is insufficient. Do not count display_errors=0 as a mitigation; the backtrace is constructed before anything decides whether to display it.
Sources
- CVE-2026-129474 at CVE.org — the PHP Group CNA record (19 November 2026): the full technical description, affected ranges, CVSS 4.0 vector, CWEs and credits
- GHSA-8mjj-2r7p-4hg2 — the php-src security advisory the record cites, with the preconditions, the demonstrated impact and the workarounds
- NVD entry — Awaiting Analysis; the PHP Group’s 9.2 is the only score
- PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36 release announcements — “This is a security release”; the PHP 8 ChangeLog carries the per-release entries; supported versions for the branch dates
- PHP manual: zend.exception_ignore_args — the directive that blocks the demonstrated path, and error-handling configuration for
fatal_error_backtraces - Distribution trackers: Debian · Ubuntu · RHEL · SUSE; USN-9185-1, DSA-6641-1, DLA-4916-1
- EPSS — no score had been published for this CVE as of 29 November 2026
Related reading
- CVE-2026-129182: PHP fatal-error backtrace repopulated after shutdown — the other fatal-error-backtrace bug in this release, in the global that survives shutdown, also 8.5 only
- CVE-2026-129496: PHP timezone cache use-after-free from a startup warning (forthcoming if the link is not yet live) — the timezone-cache use-after-free, which also starts from a diagnostic at the wrong moment
- CVE-2026-129481: PHP interrupted session shutdown leaves a stale pointer (forthcoming if the link is not yet live) — the session-shutdown stale pointer from the same release
- CVE-2026-129289: PHP-FPM request smuggling through an unread request body (forthcoming if the link is not yet live) — the PHP-FPM request smuggling bug, the most exposed of the seven
- CVE-2026-109618: PHP out-of-memory handling leaves request memory uninitialized, allowing remote code execution — the October advisory on what PHP does when it runs out of memory, which is the trigger here too
- Hardening a Public-Facing Service Beyond the Basics — where PHP-FPM sits behind nginx or Apache, and what the socket between them should and should not be able to do
- The Half of Patching That Happens After the Patch is Installed — an upgraded PHP package is still the old PHP until every FPM worker and every Apache child has been replaced
This advisory page was assembled from the primary sources listed above on 30 November 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

