Skip to content

All posts

IT security, Patch management

PSA: Memory flaws in the scripting runtime can allow code execution

PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13: the 19 November 2026 security releases fix several memory flaws, including some that the project says can lead to code execution. Restart PHP-FPM and check hosting and containers. Status as of 19 November 2026.

Status as of 19 November 2026, 19:00 CET. The PHP project has published the security releases 8.2.36, 8.3.37, 8.4.28 and 8.5.13. The announcements call them security releases; the technical detail is in the ChangeLog and in the php-src advisories. These new entries are not in CISA’s KEV catalog (catalog version 2026.11.18, 1,786 entries, JSON published on 18 November at 20:17 CET). We have not seen a government source reporting in-the-wild exploitation of the new flaws.

Behind a great many sites, shops and business portals, a scripting runtime sits behind the web server, builds the page, keeps the session and talks to the database. That runtime is PHP. On 19 November 2026 the PHP project shipped security updates for every supported branch and, in the announcements, encouraged all users of each branch to move to the new version. There is no combined advisory of the kind published in October; the details are in the GitHub advisories and the ChangeLog.

The project itself rates several of the new entries critical and says they can lead to execution of foreign code in the PHP process. In the advisories we read, the score is consistently CVSS 4.0 9.2; the GitHub records and the CVE record we checked do not carry a CVSS 3.1 value. On 18 November the security team had said that issues rated critical require a non-default configuration or uncommon setups. After the advisories, that is too coarse: several critical entries are marked in CVSS 4.0 with “Attack Requirements: Present”, so extra conditions apply. CVE-2026-126714, however, affects the file-based session handler, which is PHP’s default. We do not treat this as a corner case that only unusual installations will see.

Why a flaw like this also shows up in a widely used runtime

PHP is the runtime behind WordPress, shop systems, government and business portals, and countless line-of-business applications. The project is mature and is maintained by an established team. Even so, memory errors in session handling, in the timezone cache or in the process model of a FastCGI worker can, if exploitation succeeds, take over the same process the application runs in. This is not limited to obscure extensions. It is software that, in many organisations, carries the public site.

The advisories separate what is established from what needs extra conditions. For CVE-2026-126714 the project writes: if a write to a session file is interrupted, the file can contain parts of two sessions; the next time it is opened, that can lead to code execution if the application exposes suitable deserializable objects. CVE-2026-115560 is a different session issue: file-upload progress can write data in one serialization format and later read it in another. The project already described this case as an informational notice on 23 October; the fix only now arrived in the security releases. CVE-2026-129496 sits in the timezone cache and, on affected configurations, can also lead to code execution. CVE-2026-129289 affects PHP-FPM (and LSAPI): unread leftovers of a request body on a reused backend connection can be executed as a separate request.

Some issues apply only to particular branches or SAPIs. CVE-2026-129474 and CVE-2026-129182 affect PHP 8.5. CVE-2026-129481 affects PHP 8.3 and later, not 8.2. The project describes the last two as leftover cases after the October fix for CVE-2026-109619, not as a new wave of the same vulnerability. Anyone still running the CGI binary (php-cgi) also needs to take CVE-2026-129538 into account; according to the advisory, PHP-FPM and PHP as an Apache module are not affected by that one. There are further issues, including a privilege escalation in the FPM master when worker output is captured, XSS on the FPM status page, a PHAR signature bypass, and flaws in SOAP and HTTP headers. They belong in the inventory. They do not replace the patch for the issues above.

This is not PHP2Shell

CVE-2026-109618 and CVE-2026-109619, known publicly as PHP2Shell, are a different story. They were fixed in October (8.2.35, 8.3.36, 8.4.27, 8.5.12), have been in CISA’s KEV catalog since 26 October, and are described in our situation report. Today’s updates do not replace those patches and are not the same advisory. Anyone who did not update then is still exposed to PHP2Shell and, with today’s releases, can catch up on both series.

Where this runs in your environment

PHP often sits where nobody still tracks the runtime as a product of its own: as PHP-FPM behind NGINX or Apache, as mod_php, in an official Docker image, in a container shipped with the application, on managed hosting, or in a panel that picks the version. The number that matters comes from php -v, a phpinfo() page or the image tag, not from the hostname.

Who is affected and who is not

According to the advisories, the supported branches below 8.2.36, 8.3.37, 8.4.28 and 8.5.13 are affected. PHP 8.1 is already end-of-life and did not receive a security release today. PHP 8.6.0 shipped the same day as a language release and lists the same security fixes in its ChangeLog; that is not a substitute for an orderly update of an existing branch, but it is the baseline a new 8.6 install starts from.

Package and image status as of 19 November 2026, 19:00 CET:

  • Upstream and Docker: The four security releases are on php.net. Official Docker images already carry tags such as 8.2.36, 8.3.37, 8.4.28 and 8.5.13, including FPM, CLI, Apache and Alpine variants (image timestamps in the afternoon, about 16:23 to 17:03 CET).
  • Debian: DSA-6641-1 of 19 November, 15:29 CET, fixes the series in Debian 13 (trixie) with php8.4 8.4.28-1deb13u1. For Debian 12 (bookworm), DLA-4916-1 lists php8.2 8.2.36-1deb12u1 in the security archive as fixed. In testing (forky) and unstable (sid), php8.4 was still 8.4.27-1 at 18:55 CET, so still vulnerable.
  • Ubuntu: On the CVE pages, for example CVE-2026-129496, current php8.x packages were still marked “Needs evaluation” at 18:55 CET. We had not seen a USN at that time.
  • Alpine: In the stable v3.22 line, php84 was still 8.4.27-r0 (package date 22 October). In edge, php84 was 8.4.27-r1 and php85 was 8.5.12-r1 (package date 2 November). The November CVEs were not yet in the edge SecDB.
  • Red Hat and Remi: A Red Hat CVE page for the new entries was not reachable (HTTP 404). The Remi blog showed no stable packages for 8.2.36, 8.3.37, 8.4.28 or 8.5.13 at 18:55 CET; the latest stable post is dated 22 October (8.2.35, 8.3.36, 8.4.27, 8.5.12).

If you ship PHP in your own image, an appliance or a hosting panel, the host package update will not apply the fix by itself. What counts is the interpreter the worker has loaded.

Check and act

1. Which PHP version is actually running? Walk through servers, VMs, containers, platform-managed runtimes and the hosting panel. Record the branch and patch level (php -v) and the SAPI: PHP-FPM, Apache module, or php-cgi.

2. Patch where the release is available. Move to 8.2.36, 8.3.37, 8.4.28, 8.5.13, or the equivalent package or image (Debian 13: 8.4.28-1deb13u1, Debian 12: 8.2.36-1deb12u1, official Docker tags of the new releases). Then restart PHP-FPM or the Apache workers so that no old processes keep running. A reload alone does not reliably replace the binary. Rebuild and roll out container images.

3. Follow up with hosting and platforms. Where you do not package the runtime yourself, ask the provider for the exact patch level, not just “PHP 8.3”. Until Ubuntu, Alpine, Remi or the panel ship the new release, that work stays open there; it does not remove the need for an inventory.

4. Until the package is there, use only the official, narrowly scoped interim measures. They do not replace the update. The project mentions, among other things: turning off session.upload_progress.enabled if you do not need the feature (this closes the path described in CVE-2026-115560, but not the general case of an application’s own session data in CVE-2026-126714); not reusing backend connections to PHP-FPM (leave fastcgi_keep_conn or Apache enablereuse off); for php-cgi, setting cgi.fix_pathinfo=0 if routing still works; on PHP 8.5, setting zend.exception_ignore_args=1 or disabling fatal-error backtraces; and turning off catch_workers_output in FPM pools where it is only on for debugging. Do not expose PHP-FPM listeners directly to untrusted networks.

The absence of the new CVE IDs from the KEV catalog, and the absence of a government report of exploitation that we know of, does not remove the need for an inventory. It means there is time for an orderly update, not time to leave the systems as they are.

A PHP 8.2, 8.3, 8.4 or 8.5 install below today’s security releases, without a distro or image fix, belongs on today’s patch list. Then restart the workers and follow up with the hoster.