PHP's 19 Nov 2026 security release: phpAfterShell, 7 criticals, patch order

Patch PHP-FPM hosts with FastCGI keep-alive and every PHP 8.5 host first, set session.upload_progress.enabled=0 now, and plan PHP 8.6 separately.

Read time
16 min
Word count
2.4K
Sections
10
FAQs
8
Share
Systems administrator reviewing blank planning cards at a desk beside a server rack, with PHP Patch Priority title text
On this page · 10 sections
  1. What PHP shipped on 18 and 19 November
  2. The seven critical flaws
  3. The high and medium flaws worth a look
  4. Patch order for real hosts
  5. Stopgaps while you schedule the update
  6. What Cloudflare and Google Cloud changed
  7. Should you jump to PHP 8.6.0?
  8. India-specific considerations
  9. How eCorpIT can help
  10. References

Summary. On 19 November 2026 PHP shipped 8.5.13, 8.4.28, 8.3.37 and 8.2.36, a security release it had pre-announced on 18 November as CRITICAL, alongside the general availability of PHP 8.6.0. The 8.5.13 changelog lists 17 PHP security advisories, and seven of them are rated critical at CVSS v4.0 9.2. The best known is phpAfterShell, CVE-2026-126714, a flaw in the default file-based session handler that Google Cloud and Cloudflare both singled out. The release lands four weeks after PHP2Shell (CVE-2026-109618 and CVE-2026-109619, 21 October), and two of the new criticals are incomplete fixes for that earlier work. Cloudflare updated its PHP remote code execution WAF rule on 19 November, and Google Cloud published bulletin GCP-2026-090 on 20 November, updated on 23 November. None of the seven was in CISA's Known Exploited Vulnerabilities catalogue as of version 2026.11.25. Our verdict: patch PHP-FPM hosts that reuse FastCGI connections and every PHP 8.5 host first, set session.upload_progress.enabled=0 everywhere today, and treat PHP 8.6.0 as a planned upgrade, not the patch. PHP 8.2 has five weeks of security support left.

About this article. This is for engineering leads, hosting teams and agencies that run WordPress, Laravel or other PHP applications on PHP-FPM, Apache or managed cloud runtimes. On 26 November 2026 we checked every version, CVE, score and date here against the php.net release archive, changelog and supported-versions page, the PHP project's GitHub security advisories, the CVE record, CISA's KEV feed, Cloudflare's WAF changelog, Google Cloud's security bulletin feed, and the Ubuntu and Debian security trackers. This is technical guidance, not legal advice, and no vendor paid for inclusion. Researched with AI assistance and checked against the primary sources listed in the references.

What PHP shipped on 18 and 19 November

On 18 November the PHP security team announced releases for 19 November between 14:00 and 14:30 UTC, said they were part of the regular four-week cycle, rated the highest severity CRITICAL, and added that the critical issues need either non-default configuration or uncommon setups. The releases arrived on schedule, and the GitHub advisories were published between 14:05 and 14:09 UTC.

The fixed versions are:

  • PHP 8.5.13. All 17 advisories, including two that exist only in 8.5.
  • PHP 8.4.28. 14 advisories.
  • PHP 8.3.37. 13 advisories.
  • PHP 8.2.36. 12 advisories.
  • PHP 8.6.0. The new major release, which also carries these fixes in its changelog.

PHP also updated its bundled uriparser library for a separate dependency flaw, CVE-2026-48841, which is why some trackers count 18 entries. The CVE record for phpAfterShell was published on 19 November with a CVSS v4.0 base score of 9.2.

The seven critical flaws

Every critical advisory carries the same 9.2 score, so the score will not tell you where to start. The exposure condition will.

CVE Short name Branches affected What has to be true
CVE-2026-126714 phpAfterShell, interrupted session file write 8.2 to 8.5 Default files handler, attacker-influenced session data, an interrupted write, a gadget chain
CVE-2026-115560 Session serialiser mismatch 8.2 to 8.5 Upload progress on, php_binary or php_serialize writer, php reader on the same store, a gadget chain
CVE-2026-129289 PHP-FPM request smuggling 8.2 to 8.5 Front end reuses FastCGI connections, app opens php://input without reading it all
CVE-2026-129496 Timezone cache use-after-free 8.2 to 8.5 Startup diagnostic written to a PHP error log file, early request diagnostic in a fresh worker
CVE-2026-129481 Session shutdown use-after-free 8.3 to 8.5 Fatal error in a callback during session cleanup, same worker reused
CVE-2026-129474 Magic method backtrace use-after-free 8.5 only fatal_error_backtraces on, zend.exception_ignore_args off, a reachable __call or __callStatic
CVE-2026-129182 Fatal error backtrace repopulated after shutdown 8.5 only Specific per-directory INI overrides and an early diagnostic in a later request

phpAfterShell (CVE-2026-126714)

The files session handler writes new data over the existing session file without clearing it first. If that write is interrupted, the file can hold the start of the new session and the tail of the old one, and bytes that were part of a harmless string can be read back as serialised objects. With a suitable gadget chain in the application, that becomes code execution as the PHP worker. PHP traces the code back to PHP 4.1.0 and says the issue is not limited to session upload progress, although upload progress is one way a remote client can influence session contents. Google Cloud's bulletin calls this phpAfterShell and lists PHP 7.2 and 8.1 as affected but unpatched upstream, because both are end of life.

Session serialiser mismatch (CVE-2026-115560)

This is the flaw PHP warned about on 23 October, when it told users to set session.upload_progress.enabled=0 until the next regular release. Upload progress can write attacker-supplied data in one serialisation format, and a later reader using the php format can treat part of a key as an object. The report reproduced command execution with a Guzzle gadget on 8.2.35, 8.3.36, 8.4.27 and 8.5.12, and with a Monolog gadget. The mismatch does not need a runtime ini_set() call: two applications, pools or cron jobs with different fixed settings that share a session directory are enough.

The fix changes a default. Patched releases disable session upload progress by default and reject runtime changes to session settings while it is enabled. An explicit session.upload_progress.enabled=1 anywhere in your configuration overrides that new default.

PHP-FPM request smuggling (CVE-2026-129289)

This one needs no unusual PHP setting, which is why we rank it first for FPM hosts. If the application opens php://input and does not read it to the end, unread body bytes stay on the backend connection. When the front end keeps that connection open, PHP-FPM can parse the leftover bytes as a second FastCGI request that the web server never routed or authorised. That forged request controls parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, and can run attacker-controlled PHP as the worker. The affected front ends are nginx with fastcgi_keep_conn on, Apache mod_proxy_fcgi with enablereuse=on, HAProxy FastCGI with retained connections, and LSAPI. Standard nginx and Apache setups that close the connection after each request are not affected by the demonstrated attack.

The other four

The timezone cache flaw has existed since PHP 5.3.18 and needs a startup warning, such as an invalid date.timezone or a deprecated session setting, written through PHP's own error_log file path. The session shutdown flaw is an incomplete fix for PHP2Shell's CVE-2026-109619; PHP 8.2 lacks the affected field. The two 8.5-only flaws involve the fatal error backtraces that PHP 8.5 enables by default. The magic method advisory names Laravel facades and Magento's guest shipping estimate as code paths that reach __call or __callStatic, and says a full exploit against a complete Laravel or Magento installation has not been shown.

The high and medium flaws worth a look

Ten more advisories are rated high or medium. Five deserve attention on ordinary web hosts.

CVE Issue Severity Who should care
CVE-2026-129291 PHP-FPM epoll use-after-free to root High, 8.8 Pools with catch_workers_output on, including official PHP-FPM Docker images
CVE-2026-128064 Mixed-case HTTPS or FTPS URL sent in plaintext High, 8.2 Apps that fetch URLs with file_get_contents() or fopen()
CVE-2026-127960 Folded HTTP response headers burn CPU High, 8.7 Apps that fetch attacker-influenced URLs through stream wrappers
CVE-2026-128090 PHAR OpenSSL signature downgrade High, 7.7 Teams that ship or run OpenSSL-signed phar files
CVE-2026-129292 PHP-FPM status page cross-site scripting Medium, 5.3 Anyone exposing the FPM full status page to operators in a browser

The FPM epoll flaw needs code execution inside a worker first, but it turns that into root when the FPM master runs as root, so it pairs badly with any of the remote criticals. PHP notes that the official PHP-FPM Docker images enable worker output capture, while the stock FPM default is off. The remaining medium items cover PHP-CGI path handling, DOM serialisation, two SOAP bugs and the new 8.5 URI class.

Patch order for real hosts

Every supported branch has a fix, so the order is about exposure, not availability. This is how we would sequence a mixed estate.

  1. Internet-facing PHP-FPM that reuses FastCGI connections. Search nginx configs for fastcgi_keep_conn on and Apache configs for enablereuse=on. These hosts are exposed to CVE-2026-129289 without any unusual PHP setting, so patch them first or turn reuse off today.
  1. Every PHP 8.5 host. PHP 8.5 carries all seven criticals, two of them only there, and fatal error backtraces are on by default.
  1. Hosts with shared session storage. Shared hosting, several apps or FPM pools on one session directory, and any explicit session.upload_progress.enabled=1 setting raise the risk from CVE-2026-115560 and phpAfterShell.
  1. Containers built from official PHP-FPM images. Rebuild them, because they enable the worker output capture that CVE-2026-129291 needs.
  1. Everything else on 8.2, 8.3 and 8.4. Patch in the next normal window, and put 8.2 hosts on the upgrade list now.

PHP 8.2 reaches the end of security support on 31 December 2026, and PHP 8.1 and older get no upstream fix for any of this. If an 8.2 host is still running in January, the next critical release will not cover it. Our PHP 8.3 end-of-life guide maps the hops from 8.2 and 8.3 to 8.5.

WordPress hosts

WordPress itself has no PHP 8.6 support yet: the core compatibility table lists PHP 7.4 to 8.5 for WordPress 7.0 and 7.1. So the patch for a WordPress site is the point release on its current branch. For WordPress fleets, check whether any plugin starts native PHP sessions, look for session.upload_progress overrides in php.ini, pool files and .user.ini, and confirm which PHP-FPM pool serves which site. Our guide to choosing a WordPress development company covers the plugin-risk checks worth asking a partner about.

Laravel hosts

Laravel 13 lists PHP 8.3 to 8.5, and Laravel 12, which gets security fixes until 24 February 2027, lists 8.2 to 8.5. Neither lists PHP 8.6, so patch within the branch. Laravel apps on PHP 8.5 should treat CVE-2026-129474 as relevant because facades use __callStatic, and should set zend.exception_ignore_args=1, as the production php.ini already does. Apps that keep sessions in Redis or a database through the framework rather than PHP's files handler avoid phpAfterShell's file-write path, though the PHP update is still the fix. For framework timelines, see our Laravel 12 end-of-life guide.

Stopgaps while you schedule the update

These cut exposure but none of them replaces the patch. Set them in php.ini, the FPM pool file or the server configuration, then restart the FPM master and every worker. An ini_set() call in application code runs too late for the upload progress setting.


            ; php.ini or FPM pool (php_admin_value[...] form in pool files)
session.upload_progress.enabled = 0
; PHP 8.5 hosts
zend.exception_ignore_args = 1
fatal_error_backtraces = 0
          

            # nginx: leave FastCGI keep-alive off (the default)
fastcgi_keep_conn off;
# Apache mod_proxy_fcgi: do not set enablereuse=on
          
Flaw Stopgap PHP or Google Cloud names What it does not cover
CVE-2026-115560 session.upload_progress.enabled=0 in every config that can write the store Separate apps that still mix serialisers
CVE-2026-126714 Upload progress off, less untrusted data in sessions, an atomic store such as Redis Apps that store large user input in file sessions
CVE-2026-129289 Turn off FastCGI connection reuse on the front end Nothing, if reuse is truly off
CVE-2026-129474 zend.exception_ignore_args=1 or fatal_error_backtraces=0 display_errors=0 is not a fix
CVE-2026-129496 Fix startup warnings, log PHP errors to syslog Changing cookie or request settings
CVE-2026-129481 Avoid fatal errors in session cleanup; pm.max_requests=1 at a speed cost Disabling upload progress
CVE-2026-129291 catch_workers_output off; run the FPM master without root It limits damage, it does not fix the bug

The sources for this table are the PHP advisories and Google Cloud's bulletin. Note that session.upload_progress.enabled=0 was already the October advice; if you applied it then, keep it. Our PHP2Shell fix guide explains how to confirm what every FPM worker actually loaded, which matters again here.

What Cloudflare and Google Cloud changed

Cloudflare. Its 19 November emergency WAF release updated the existing PHP remote code execution rule in both the Free and Managed Rulesets, set to Block, so it now covers CVE-2026-109618, CVE-2026-109619, CVE-2026-115560 and CVE-2026-126714. It added new Managed Ruleset detections for CVE-2026-129289 and two SOAP flaws in Log mode, because of false-positive risk; you have to switch them to Block yourself after reviewing matches. The entry was amended on 20 November to correct a CVE typo, and Cloudflare's 20 November release covered Ruby and WordPress, not PHP. A WAF rule sees the HTTP request, so it is a compensating control at best for flaws that depend on worker state or file writes.

Google Cloud. GCP-2026-090, published 20 November and updated 23 November, names App Engine standard and flexible, Cloud Run and Cloud Run functions. Services with automatic base image updates, and App Engine standard on PHP 8.2 to 8.5, get patched runtimes automatically. App Engine flexible, Cloud Run jobs and worker pools, Cloud Functions first generation and anything pinned to a patch string must be rebuilt and redeployed. Self-managed containers can move to the upstream releases straight away.

Linux distributions. Distro packages backport fixes and keep older version strings, so php -v can look old on a patched server. Ubuntu fixed phpAfterShell in php8.1 8.1.2-1ubuntu2.29 on 22.04, php8.3 8.3.6-0ubuntu0.24.04.14 on 24.04 and php8.5 8.5.4-0ubuntu1.6 on 26.04. Debian's security suites carry 8.2.36-1~deb12u1 for bookworm and 8.4.28-1~deb13u1 for trixie. Check the package version against your distro's tracker, not the upstream number.


            # Debian or Ubuntu: installed PHP package versions
dpkg -l | grep -E '^ii +php[0-9.]+-(fpm|cli|common) '
# FPM binary version and its php.ini value (pool overrides are not shown here)
php-fpm8.3 -i | grep -E 'session.upload_progress.enabled|PHP Version'
          

Should you jump to PHP 8.6.0?

Not as your patch. PHP 8.6.0 went GA on 19 November with partial function application, default values for readonly properties, the Io\Poll API, clamp(), a \Time\Duration class and a SortDirection enum, and its changelog includes the same security fixes. It gets active support until 31 December 2028 and security fixes until 31 December 2030.

Option Support ends Fixes the 19 November CVEs Risk this month
Patch within 8.2 (8.2.36) 31 Dec 2026 Yes Branch ends in five weeks
Patch within 8.3 (8.3.37) 31 Dec 2027 Yes Low
Patch within 8.4 (8.4.28) 31 Dec 2028 Yes Low
Patch within 8.5 (8.5.13) 31 Dec 2029 Yes Low; also the branch with the most criticals
Move to 8.6.0 31 Dec 2030 Yes WordPress and Laravel do not list it yet; x.0 behaviour changes

The support dates come from php.net, and the framework positions from WordPress and Laravel's own tables. PHP 8.6 also changes behaviour that tests can miss: by-reference foreach after array compaction, ?? and empty() on magic properties, trim() now stripping form feeds, and new ValueError exceptions in functions such as array_filter(), pathinfo() and number_format(). Patch inside your branch this week, then plan 8.6 for a quarter when your framework and extensions list it.

India-specific considerations

On shared cPanel or Plesk hosting, common for smaller Indian business and agency sites, several PHP versions and many sites can share one machine and sometimes one session directory, which is the setup CVE-2026-115560 describes. Ask the host which PHP builds they run and when they applied 8.2.36 to 8.5.13 or the distro equivalent, and do not accept a php -v answer alone. Keep a dated record of what you changed, because you may need it if session data turns out to have been exposed. Teams still on 8.1 or 7.x through older hosting plans have no upstream fix at all.

How eCorpIT can help

eCorpIT is a Gurugram-based technology organisation, founded in 2021, assessed at CMMI Level 5 and MSME certified, with senior-led engineering teams working across AWS, Microsoft and Google platforms. Our cybersecurity services team can audit your PHP-FPM, nginx and session settings against these advisories, patch hosts in exposure order and plan the 8.2 and 8.6 upgrades. Talk to us at /contact-us/.

Last updated: 26 November 2026.

References

  1. News Archive 2026: Upcoming Critical PHP Security Release (18 November), PHP 8.6.0, 8.5.13, 8.4.28, 8.3.37 and 8.2.36 released (19 November), Informational advisory on session upload progress (23 October) — PHP
  1. PHP 8 ChangeLog, versions 8.6.0, 8.5.13, 8.4.28, 8.3.37 and 8.2.36 — PHP
  1. PHP Under Fire: 18 Vulnerabilities Hit the PHP Runtime, 19 November 2026 — Semgrep
  1. GCP-2026-090, published 20 November 2026, updated 23 November 2026 — Google Cloud security bulletins
  1. WAF changelog: Emergency releases of 19 and 20 November 2026 — Cloudflare Docs
  1. GHSA-g3vh-838c-65v7, Use-after-free after interrupted session shutdown (CVE-2026-129481) — php-src on GitHub
  1. GHSA-2fjv-p558-g82m, Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown (CVE-2026-129182) — php-src on GitHub
  1. Known Exploited Vulnerabilities Catalog, JSON feed version 2026.11.25 — CISA
  1. Supported Versions — PHP
  1. GHSA-fm2m-fjf5-v3cp, Partially overwritten session files can lead to remote code execution (CVE-2026-126714) — php-src on GitHub
  1. GHSA-qc49-hpvq-g2w6, PHP-FPM request smuggling through an unread HTTP request body (CVE-2026-129289) — php-src on GitHub
  1. CVE-2026-126714 record, PHP CNA — CVE Program
  1. GHSA-658j-r8rw-q6mx, session format mismatch remote code execution advisory (CVE-2026-115560) — php-src on GitHub
  1. GHSA-gr4f-wgx5-jpfv, Timezone cache use-after-free can lead to remote code execution (CVE-2026-129496) — php-src on GitHub
  1. GHSA-8mjj-2r7p-4hg2, Use-after-free in magic method backtraces can lead to remote code execution (CVE-2026-129474) — php-src on GitHub
  1. GHSA-jm4m-qfqx-967m, PHP-FPM epoll use-after-free can lead to local privilege escalation (CVE-2026-129291) — php-src on GitHub
  1. GHSA-68fq-fh7h-f8gr, PHAR OpenSSL signature bypass via algorithm downgrade (CVE-2026-128090) — php-src on GitHub
  1. GHSA-f6gg-rchx-xw8j, Mixed-case HTTPS and FTPS URLs can expose data in plaintext (CVE-2026-128064) — php-src on GitHub
  1. GHSA-mmf9-xm3v-hg2x, Denial of service through folded HTTP response headers (CVE-2026-127960) — php-src on GitHub
  1. PHP Compatibility and WordPress Versions — Make WordPress Core
  1. Laravel 13 Release Notes: Support Policy — Laravel
  1. CVE-2026-126714 — Ubuntu Security
  1. CVE-2026-126714 — Debian Security Tracker
  1. PHP 8.6 Release Announcement — PHP
  1. Migrating from PHP 8.5.x to PHP 8.6.x: Backward Incompatible Changes — PHP Manual

Frequently asked

Quick answers.

01 What is phpAfterShell?
It is the name Google Cloud and Cloudflare use for CVE-2026-126714, a critical flaw in PHP's default file-based session handler. An interrupted session write can leave a file mixing old and new data, which PHP may later read as attacker-controlled objects. With a suitable gadget chain in the application, that can lead to code execution.
02 Which PHP versions fix the November 2026 flaws?
PHP 8.5.13, 8.4.28, 8.3.37 and 8.2.36, all released on 19 November 2026, plus PHP 8.6.0, released the same day. Linux distributions backport the fixes into their own packages with different version strings, so check your distribution's security tracker for the fixed package rather than comparing upstream numbers.
03 Is anyone exploiting these flaws yet?
None of the seven critical flaws was in CISA's Known Exploited Vulnerabilities catalogue as of version 2026.11.25. The PHP advisories describe researcher reproductions, not attacks. The earlier PHP2Shell flaws were added to that catalogue five days after disclosure, so treat the current quiet as temporary and patch on a short schedule.
04 Does session.upload_progress.enabled=0 protect me?
It removes the upload progress path for the serialiser mismatch flaw and one input path for phpAfterShell. It does not fix applications that store large user-controlled data in file sessions, and it does nothing for the PHP-FPM smuggling, timezone or backtrace flaws. Set it in php.ini or the pool file, restart workers, then patch.
05 Which hosts should I patch first?
Start with internet-facing PHP-FPM servers whose nginx or Apache front end reuses FastCGI connections, because the smuggling flaw needs no unusual PHP setting there. Next patch every PHP 8.5 host, then hosts that share session storage between apps, then containers built from official PHP-FPM images, then everything else in your normal window.
06 Should I upgrade to PHP 8.6.0 instead of patching?
Not as the immediate fix. PHP 8.6.0 contains the same security fixes, but WordPress and Laravel do not yet list it as supported, and a new major release changes behaviour in places your tests may miss. Apply the point release on your current branch now and schedule 8.6 once your stack supports it.
07 Does the Cloudflare WAF protect unpatched PHP servers?
Partly. Cloudflare's updated rule blocks known request patterns for phpAfterShell, the serialiser mismatch and PHP2Shell, while its new rule for the PHP-FPM smuggling flaw starts in log mode and needs switching to block. Flaws that depend on worker state or interrupted file writes cannot be fully filtered at the edge.
08 What happens to PHP 8.2 after December 2026?
PHP 8.2 stops receiving security fixes from the PHP project on 31 December 2026. Any critical flaw found after that will not be fixed upstream for 8.2, though some Linux distributions keep patching their own packages. Plan the move to PHP 8.4 or 8.5 now, testing framework and extension support before the holiday freeze.

About the author

Manu Shukla

Founder & Director

Founder of eCorpIT. Hands-on engineer leading senior-only delivery for AI apps, custom software, and cloud systems for global clients.

Subscribe

One engineering note a week. No fluff, no spam.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data, and marketing — delivered every Wednesday.

Past the reading

Read enough. Let's build something.

A senior architect responds in 24 working hours with scope, indicative cost, and a timeline. NDA before any technical conversation.

Weekly engineering notes

Enjoying this article? Get one like it every Wednesday.

Senior-architect playbooks on AI agents, mobile apps, cloud, security, data and marketing. Unsubscribe in one click.

We email a link to confirm your address. Privacy

Loading search…

Browse all guides