At a glance
- CVE ID(s): CVE-2026-129289, CVE-2026-129474, CVE-2026-129481, CVE-2026-115560, CVE-2026-129182, CVE-2026-129496, CVE-2026-126714
- Severity: All seven are CVSS 4.0 9.2 CRITICAL. CVE-2026-129289, CVE-2026-129182 and CVE-2026-126714 use
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
. The other four use the same vector with AC:H. - Vendor / product: PHP Group / PHP (PHP-FPM, mod_php, CGI and the session extension, depending on the CVE)
- CVE-2026-129289 (PHP-FPM request smuggling via unread request body), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
- CVE-2026-129474 (use-after-free in magic method backtraces), CVSS 9.2. Affected: 8.5.* before 8.5.13. Fixed: 8.5.13.
- CVE-2026-129481 (use-after-free after interrupted session shutdown), CVSS 9.2. Affected: 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.3.37, 8.4.28, 8.5.13.
- CVE-2026-115560 (session serializer mismatch), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
- CVE-2026-129182 (use-after-free via last_fatal_error_backtrace after shutdown), CVSS 9.2. Affected: 8.5.* before 8.5.13. Fixed: 8.5.13.
- CVE-2026-129496 (timezone cache use-after-free, non-thread-safe builds), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
- CVE-2026-126714 (partially overwritten session files), CVSS 9.2. Affected: 8.2.* before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28, 8.5.* before 8.5.13. Fixed: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
- Exploited in the wild: No known exploitation. None of the seven is listed in CISA KEV.
- Attack vector: Network, no authentication and no user interaction in the CVSS vectors. Attack requirements are present for all seven, and most need specific configuration. Details are below.
- Published by: php (CNA), all on 2026-11-19
- Official advisory: GHSA-qc49-hpvq-g2w6 (CVE-2026-129289). The other advisories are linked under References.
What is this vulnerability?
This is a batch of seven PHP advisories published together. Five are memory or state bugs. Two are logic flaws in session handling and FPM request parsing. Here is each one in plain terms.
- CVE-2026-129289 (PHP-FPM request smuggling). If an application opens
php://input
and does not read it to the end, PHP does not discard the rest of the body at request shutdown. If the front end reuses backend connections, PHP-FPM can parse the leftover bytes as a new FastCGI request. One crafted multipart/form-data request can forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE. That can lead to execution of attacker-controlled PHP code. With LSAPI, later requests on the same connection can be disrupted. Connection reuse is not the default in nginx or Apache. Examples of settings that enable it are nginxfastcgi_keep_conn on
and Apache mod_proxy_fcgienablereuse=on
. - CVE-2026-129474 (magic method backtraces). PHP 8.5 can read stale values when it collects arguments for a backtrace of a call handled by
__call()
or__callStatic()
. A fatal error at that moment, such as hitting memory_limit, can corrupt memory. The attacker needs enough control over request data to influence allocation. This needs fatal_error_backtraces enabled (the default in 8.5) and zend.exception_ignore_args disabled. - CVE-2026-129481 (session shutdown). If a fatal error occurs in an application callback during session variable destruction, a stale filename pointer survives. A later request on the same worker can free it. The advisory says code execution has not been demonstrated. It needs the filename in request memory, for example when the script is not cached by OPcache. The advisory describes it as an incomplete fix for CVE-2026-109619.
- CVE-2026-115560 (serializer mismatch). Session upload progress can store attacker-controlled data in a session key under the php_binary or php_serialize serializer. If that session is later read with the php serializer, bytes in the key reach the unserializer. Code execution needs a suitable gadget chain in the reading application.
- CVE-2026-129182 (last_fatal_error_backtrace). A fatal error while INI settings are restored at shutdown can repopulate a stored backtrace after cleanup. A later request on the same PHP-FPM or mod_php worker can then touch freed memory. It needs per-path configuration, and an early diagnostic enabled by Apache per-directory configuration or by a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end.
- CVE-2026-129496 (timezone cache). This affects non-thread-safe builds only. A diagnostic written to a file-based error_log during module startup leaves the timezone cache in freed memory. A diagnostic early in a worker's first request, such as the max_input_vars warning, then touches it. An unauthenticated attacker can crash workers with a crafted request. Code execution may be possible and was demonstrated with known memory addresses.
- CVE-2026-126714 (session files). The default files session handler writes into the existing session file without clearing it. An interrupted write can leave the start of the new session followed by the end of the old one. Bytes of an ordinary string can then be unserialized as objects. An attacker who can influence session data and interrupt a write may inject objects.
How does it affect you?
The worst case is remote code execution with the privileges of the PHP worker. Other outcomes are worker crashes, session corruption and denial of service.
The realistic risk depends on your setup. All seven are scored 9.2, but most need specific conditions on top of an unpatched version.
- CVE-2026-129289 is the one to look at first. Its attack complexity is Low, it needs no authentication, and the code-execution path is reachable through one crafted request. It only applies if your front end reuses FastCGI connections to PHP-FPM, and an application must leave
php://input
unread. - The session CVEs (115560, 126714) depend on session upload progress, serializer mismatches, or a usable gadget chain in your code or libraries. The advisory for 115560 reports command execution using Guzzle and Monolog gadgets in a test setup.
- The use-after-free CVEs (129474, 129481, 129182, 129496) need precise memory conditions. The advisory for 129474 says code execution needs knowledge of usable memory addresses, and that exploitation of a full Laravel or Magento install has not been demonstrated.
No exploitation in the wild is known. Treat that as a snapshot from publication day, not a guarantee.
Who is affected?
You are in scope if you run PHP 8.2 through 8.5 below the fixed release for your branch:
- 8.2.x before 8.2.36
- 8.3.x before 8.3.37
- 8.4.x before 8.4.28
- 8.5.x before 8.5.13
Branch coverage differs by CVE. 129474, 129182 are 8.5 only. 129481 covers 8.3, 8.4 and 8.5. The other four cover 8.2 to 8.5. Versions older than 8.2 are not listed in the records. The advisory for 115560 notes that session upload progress has existed since PHP 5.4.0 and that older unsupported releases may also be affected. For other unsupported versions, check the vendor page.
Narrower exposure conditions:
- PHP-FPM behind nginx or Apache with connection reuse (129289).
- Non-thread-safe builds with a file-based error_log (129496).
- Shared session stores or runtime changes to session.serialize_handler, with upload progress enabled (115560).
- The default files session handler (126714).
- Per-path INI overrides via .user.ini, Apache per-directory config or PHP_VALUE / PHP_ADMIN_VALUE (129182).
How to check if you are vulnerable
- Find the PHP version of every runtime, not only the CLI. Run
php -v
for the CLI. For FPM and Apache, check the packaged version through your package manager, or use phpinfo output from a protected admin context. - Compare to the fixed versions above. Vendors and distributions may backport fixes without changing the version number, so check your distribution's security notices for the exact package release.
- For CVE-2026-129289, review your front-end config. In nginx, look for
fastcgi_keep_conn on
. In Apache, look for mod_proxy_fcgi withenablereuse=on
. If neither is set, the advisory says connection reuse is not the default. - For CVE-2026-129474, check the effective values of fatal_error_backtraces and zend.exception_ignore_args in the FPM pool or Apache config. The CLI config can differ from the web config.
- For the session CVEs, check whether session.upload_progress.enabled is on, which serializer each application uses, and whether applications share one session store.
- For CVE-2026-129496, check whether the build is non-thread-safe and whether error_log points to a file.
How to fix and recover
Upgrade to the fixed release for your branch: 8.2.36, 8.3.37, 8.4.28 or 8.5.13. The advisories say to upgrade when the release becomes available. If your package source does not offer it yet, apply the mitigations below and check your distribution for updates.
- Upgrade PHP on all hosts and containers, including build images.
- Restart PHP-FPM or the web server so workers load the new version.
- Verify with
php -v
and by checking the FPM or Apache runtime version. - Note the behavior change in the fix for CVE-2026-115560. Session upload progress is disabled by default and runtime changes to session settings are rejected while upload progress is enabled. An explicit setting in your config overrides the new default.
- If the upload-progress feature stays on anywhere, all readers and writers of that session data must use the same session.serialize_handler, even after patching.
If you suspect compromise, which is most relevant for exposed FPM setups with connection reuse:
- Review web and FPM logs from before the patch for unusual multipart/form-data requests, unexpected script paths, and worker crashes.
- Look for new or modified PHP files and unexpected child processes of the PHP user.
- Rotate secrets the PHP worker could read, such as database passwords, API keys and application keys.
- Invalidate existing sessions. Where session stores were shared across serializers, expire or migrate old records.
- Restore known-good configuration and application code from trusted sources.
Workarounds and mitigations
These come from the advisories. Use them only until you can patch.
- CVE-2026-129474: set
zend.exception_ignore_args=1
in the config used by the workers and restart them.php.ini-production
already sets this. Settingfatal_error_backtraces=0
also prevents this attack path on PHP 8.5. Changing only the CLI config is not enough, and display_errors=0 does not help. Request-size limits help but are not a complete substitute. - CVE-2026-129481: avoid fatal errors in callbacks reached during session cleanup. For PHP-FPM,
pm.max_requests=1
with a worker restart prevents the demonstrated sequence from reaching a second request on one worker, at a performance cost. Disabling session upload progress does not address this path. Enabling OPcache alone is not a reliable mitigation. - CVE-2026-115560: keep
session.upload_progress.enabled=0
in every configuration that can write to the affected session store. Set it administratively before request input is processed, because calling ini_set() from the application is too late. Where the feature is needed, use one serializer everywhere and isolate session storage between applications that need different formats. - CVE-2026-129289, CVE-2026-129182, CVE-2026-129496, CVE-2026-126714: the advisory text provided does not state a vendor workaround. Patching is the fix. For 129289 you can also review whether backend connection reuse is needed at all, since the issue requires it. That is our reading of the conditions, not a vendor-stated mitigation. Check the vendor page for any updates.
What to monitor
- FPM and PHP error logs: repeated worker crashes, segfault messages, or fatal errors about memory_limit that line up with large requests.
- Web and proxy logs: large multipart/form-data requests, especially to endpoints that open
php://input
, and requests that are followed by backend errors. - Process activity: shells or unexpected programs spawned by the PHP worker user.
- File changes: new PHP files in web roots, upload directories and session directories.
- Session store: corrupted or oddly large session files, and decode failures in application logs.
- Configuration drift: upload progress being re-enabled, serializer settings changing, or fastcgi_keep_conn and enablereuse being turned on.
- Advisory pages: the advisories say patched builds were still to be released for some branches at publication time. Watch them for updates.
References
- GHSA-qc49-hpvq-g2w6 - CVE-2026-129289 PHP-FPM request smuggling
- GHSA-8mjj-2r7p-4hg2 - CVE-2026-129474 magic method backtraces
- GHSA-g3vh-838c-65v7 - CVE-2026-129481 interrupted session shutdown
- GHSA-658j-r8rw-q6mx - CVE-2026-115560 session serializer mismatch
- GHSA-2fjv-p558-g82m - CVE-2026-129182 last_fatal_error_backtrace
- GHSA-gr4f-wgx5-jpfv - CVE-2026-129496 timezone cache
- GHSA-fm2m-fjf5-v3cp - CVE-2026-126714 partially overwritten session files
