YOUR DIGITAL HUB
← Back to blog

PHP CVEs in 2026: critical vulnerabilities and how to fix them

15 min read

Cover — PHP CVEs in 2026, vulnerabilities and fixes

November 2026: a heavy month for the PHP ecosystem

On 19 November 2026, the PHP project released versions 8.2.36, 8.3.37, 8.4.28 and 8.5.13 at the same time (along with PHP 8.6.0, which ships the same fixes). PHP 8.5.13 alone closes seventeen security advisories, several of them rated critical by the maintainers. Two weeks earlier, Symfony had published a batch of advisories across all its maintained branches. In October, Laravel fixed a critical authentication bypass. And Composer has shipped one security release after another since the summer.

This article is for CTOs and lead developers who need two answers: are we affected, and what do we have to deploy? We kept the vulnerabilities most likely to matter for an application in production, most recent first. Every entry was checked against the official CVE record and the vendor advisory, both linked. The CVSS scores quoted are the ones those sources publish; we have not rescored anything.

The list is not exhaustive: the PHP 8 ChangeLog has every fix from 19 November. Whatever your exposure to each individual flaw, the conclusion is the same: you need to upgrade.

Summary table

CVE Component Severity (source) Fixed version
CVE-2026-129289 PHP-FPM Critical, CVSS 9.2 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-126714 PHP sessions (files handler) Critical, CVSS 9.2 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-115560 PHP sessions (upload progress) Critical, CVSS 9.2 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-129474 PHP engine (8.5 only) Critical, CVSS 9.2 PHP 8.5.13
CVE-2026-129291 PHP-FPM High, CVSS 8.8 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-128090 PHP Phar extension High, CVSS 7.7 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-129538 PHP-CGI Moderate, CVSS 6.9 PHP 8.2.36, 8.3.37, 8.4.28, 8.5.13
CVE-2026-118515 Symfony Serializer High, CVSS 8.4 Symfony 5.4.56, 6.4.50, 7.4.23, 8.1.11
CVE-2026-118514 Symfony HttpFoundation Medium, CVSS 6.3 Symfony 5.4.56, 6.4.50, 7.4.23, 8.1.11
CVE-2026-114509 Laravel (TokenGuard) Critical, CVSS 9.2 Laravel 12.68.0, 13.29.0
CVE-2026-84361 Composer (Perforce driver) High, CVSS 7.7 Composer 2.10.3, 2.2.30
CVE-2026-59948 Composer (package names) High, CVSS 7.0 Composer 2.10.2, 2.2.29

Before going into detail, start by recording the versions actually running in production, not just the ones on a developer laptop.

php -v                 # CLI binary version
php-fpm -v             # FPM service version (php-fpm8.3 -v on Debian/Ubuntu)
composer --version
composer show | grep -E "symfony/(http-foundation|serializer)|laravel/framework"

PHP: the 19 November 2026 fixes

CVE-2026-129289 — request smuggling in PHP-FPM

  • Component: PHP-FPM (LSAPI's persistent request lifecycle is affected too).
  • Affected versions: everything before 8.2.36, 8.3.0 to 8.3.36, 8.4.0 to 8.4.27, 8.5.0 to 8.5.12.
  • Fixed versions: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
  • Severity: critical, CVSS 4.0 score of 9.2.
  • Sources: advisory GHSA-qc49-hpvq-g2w6, CVE-2026-129289.

The risk. When an application opens php://input without reading the request body to the end, PHP does not discard the remaining bytes before reusing the connection. If the front-end server keeps its FastCGI connections open, those bytes are parsed as a new FastCGI request. An unauthenticated attacker can bypass the front end's routing this way and, according to the advisory, get PHP code executed with the worker's privileges.

Am I affected? The deciding condition is backend connection reuse, which is not enabled by default in either nginx or Apache. Look for it in your configuration:

grep -Rn "fastcgi_keep_conn" /etc/nginx/
grep -Rn "enablereuse" /etc/apache2/ /etc/httpd/ 2>/dev/null

The fix. Upgrade to the fixed release for your branch. Until then, the advisory recommends disabling connection reuse on the front end (fastcgi_keep_conn in nginx, enablereuse in Apache) and never exposing the FPM port to a network you do not control. The CVE record already references a public proof of concept, so do not let this upgrade sit.

CVE-2026-126714 and CVE-2026-115560 — code execution through sessions

The risk. Two separate defects lead to the same outcome: PHP unserializes session data the attacker was able to shape. In the first, the files handler (the default) can leave a session file holding a mix of two contents when a write is interrupted. In the second, the upload progress feature writes data in one serialization format that can later be read back in another. If the application ships a usable gadget chain, this leads to code execution with the PHP worker's privileges.

Am I affected? Check the configuration FPM sees, not the CLI one:

php-fpm -i | grep -E "session\.(save_handler|serialize_handler|upload_progress\.enabled)"

You are in scope for the first flaw if session.save_handler is files. You are in scope for the second if session.upload_progress.enabled is on and several applications, pools or scripts read the same session store with different session.serialize_handler values, or if your code changes that setting before session_start().

The fix. Upgrade. The patch now disables upload progress by default, so make sure no configuration file switches it back on explicitly. As a stopgap, the advisories recommend setting session.upload_progress.enabled=0 in the server configuration (an ini_set() in the application comes too late), limiting the untrusted data you store in sessions and, for the first flaw, using a session store that replaces records atomically.

; php.ini or FPM pool configuration
session.upload_progress.enabled = 0

CVE-2026-129474 — use-after-free in backtraces (PHP 8.5)

  • Component: PHP engine (Zend Engine).
  • Affected versions: 8.5.0 to 8.5.12. Branches 8.2 to 8.4 are outside the advisory's affected range.
  • Fixed version: 8.5.13.
  • Severity: critical, CVSS 4.0 score of 9.2.
  • Sources: advisory GHSA-8mjj-2r7p-4hg2, CVE-2026-129474.

The risk. When a fatal error occurs on entry into a method handled by __call() or __callStatic(), PHP 8.5 can read memory that has already been freed while building the backtrace. The advisory confirms remote code execution, while noting that exploitation depends heavily on the application.

Am I affected? Only on PHP 8.5, and only if fatal_error_backtraces is on (the default in 8.5) and zend.exception_ignore_args is off. The php.ini-production template shipped with PHP turns the latter on, which neutralises the flaw, provided your servers actually use it.

php-fpm -i | grep -E "fatal_error_backtraces|zend\.exception_ignore_args"

The fix. PHP 8.5.13. Documented mitigation: set zend.exception_ignore_args=1 in the configuration of the affected workers and restart them, or set fatal_error_backtraces=0. The advisory states that display_errors=0 does not protect you.

CVE-2026-129291 — local privilege escalation in PHP-FPM

  • Component: PHP-FPM (master process).
  • Affected versions: 8.1.20 to 8.1.34, 8.2.7 to 8.2.35, 8.3.0 to 8.3.36, 8.4.0 to 8.4.27, 8.5.0 to 8.5.12.
  • Fixed versions: 8.2.36, 8.3.37, 8.4.28, 8.5.13. There is no fix for the 8.1 branch, which is no longer maintained.
  • Severity: high, CVSS 4.0 score of 8.8.
  • Sources: advisory GHSA-jm4m-qfqx-967m, CVE-2026-129291.

The risk. An attacker who can already run PHP code in an unprivileged FPM worker can trigger a use-after-free in the master process. When the master runs as root, which is common, the advisory says this can lead to command execution as root. This is the flaw that turns an application compromise into a server compromise, and it weighs most on shared hosting.

Am I affected? catch_workers_output has to be enabled on the pool and FPM has to use the epoll event mechanism (Linux). The option is off by default, but the CVE record points out that it is enabled in the official PHP-FPM Docker images.

php-fpm -tt 2>&1 | grep -E "catch_workers_output|events\.mechanism"

The fix. Upgrade. Documented temporary workaround: disable catch_workers_output on the affected pools. Running the FPM master without root limits what an attacker can gain, but does not fix the defect.

CVE-2026-128090 — Phar signature bypass

  • Component: Phar extension.
  • Affected versions: everything before 8.2.36, 8.3.0 to 8.3.36, 8.4.0 to 8.4.27, 8.5.0 to 8.5.12.
  • Fixed versions: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
  • Severity: high, CVSS 4.0 score of 7.7.
  • Sources: advisory GHSA-68fq-fh7h-f8gr, CVE-2026-128090.

The risk. An attacker who can modify an OpenSSL-signed Phar archive, without touching the public key, can get PHP to accept the altered archive. Any application that then executes the archive runs the attacker's code.

Am I affected? Yes, if your deployment or update chain relies on the OpenSSL signature of a .phar to guarantee its integrity (internal tooling, self-updating binaries shipped to customers). If you only run Phars installed by your package manager or your Docker image, the risk is indirect.

The fix. Upgrade. The advisory also asks you to obtain the publisher's public key through an authenticated channel, install it as <archive>.pubkey and protect it against writes: if the attacker can remove or replace that file, the patch no longer protects you.

CVE-2026-129538 — out-of-bounds read and write in PHP-CGI

  • Component: the php-cgi binary (CGI and FastCGI modes). PHP-FPM and the Apache module are not affected.
  • Affected versions: everything before 8.2.36, 8.3.0 to 8.3.36, 8.4.0 to 8.4.27, 8.5.0 to 8.5.12.
  • Fixed versions: 8.2.36, 8.3.37, 8.4.28, 8.5.13.
  • Severity: moderate, CVSS 4.0 score of 6.9.
  • Sources: advisory GHSA-5j3f-64r7-f564, CVE-2026-129538.

The risk. With certain web server mappings, an unauthenticated request can make php-cgi read or write outside the intended memory area: a crash, memory leaking into $_SERVER['PATH_INFO'], or memory corruption. The advisory does not confirm code execution.

Am I affected? Only if you serve PHP through php-cgi, which you still find on IIS and on older hosting setups, and cgi.fix_pathinfo=1 (the default).

The fix. Upgrade. Documented mitigation: set cgi.fix_pathinfo=0 in the php-cgi configuration, after checking that application routing still works, and restrict access to the FastCGI listener to trusted front ends.

Symfony: the 4 November 2026 advisories

On 4 November 2026 Symfony published a batch of advisories fixed in versions 5.4.56, 6.4.50, 7.4.23 and 8.1.11. Two of them deserve immediate attention.

CVE-2026-118515 — the Serializer builds UploadedFile objects from request data

  • Component: symfony/serializer.
  • Affected versions: before 5.4.56, 6.0 to 6.4.49, 7.0 to 7.4.22, 8.0 to 8.1.10.
  • Fixed versions: 5.4.56, 6.4.50, 7.4.23, 8.1.11.
  • Severity: the Symfony advisory gives no score; the CVE record (Checkmarx) states a CVSS 4.0 score of 8.4, high.
  • Sources: Symfony advisory, CVE-2026-118515.

The risk. When a DTO deserialized from untrusted data has a property typed UploadedFile, a client can pass off any file on the server as an uploaded file, without sending anything. Depending on what the application then does with the "upload" (store it and serve it back, move it), this exposes or moves any file PHP can read, an .env.local for instance. The Assert\File constraint does not help.

Am I affected? Look for DTOs mapped with #[MapRequestPayload], and more broadly any deserialization of external data into a class holding an UploadedFile property or another \SplFileInfo subclass.

grep -RnE "MapRequestPayload|UploadedFile" src/
composer show symfony/serializer | grep versions

The fix. Update symfony/serializer. The advisory documents no configuration workaround. One thing to check: the protection comes from DataUriNormalizer. The serializer configured by FrameworkBundle has it; a hand-built serializer without that normalizer ahead of ObjectNormalizer remains exposed.

CVE-2026-118514 — HEAD requests bypass access_control

  • Component: symfony/http-foundation (and, through it, SecurityBundle rules).
  • Affected versions: before 5.4.56, 6.0 to 6.4.49, 7.0 to 7.4.22, 8.0 to 8.1.10.
  • Fixed versions: 5.4.56, 6.4.50, 7.4.23, 8.1.11.
  • Severity: the Symfony advisory gives no score; the CVE record (Checkmarx) states a CVSS 4.0 score of 6.3, medium.
  • Sources: Symfony advisory, CVE-2026-118514.

The risk. An access_control rule or a firewall restricted with methods: [GET] did not apply to the same URL requested with HEAD, even though the router serves that request with the GET controller. The response has no body, but its headers leak and the controller runs, side effects included. This completes an earlier fix (CVE-2026-45075) that only covered the #[IsGranted], #[IsSignatureValid] and #[IsCsrfTokenValid] attributes.

Am I affected? Yes, if your security.yaml uses the methods option on an access rule or a firewall, or if you build method-restricted request matchers yourself.

grep -n "methods" config/packages/security.yaml

The fix. Update symfony/http-foundation. No workaround is documented. One behaviour change to plan for: a rule restricted to HEAD that comes after a GET rule for the same path is no longer reached; list it first.

For more on access control in Symfony, see our article on the OWASP Top 10 2025 applied to Symfony 7.

Laravel: CVE-2026-114509, TokenGuard authentication bypass

  • Component: laravel/framework, TokenGuard class.
  • Affected versions: everything before 12.68.0, and 13.0.0 to 13.28.x.
  • Fixed versions: 12.68.0 and 13.29.0. The vendor advisory lists no fix for branches older than 12.
  • Severity: critical, CVSS 4.0 score of 9.2.
  • Sources: advisory GHSA-f9x3-7vq9-cph6, CVE-2026-114509.

The risk. On certain MySQL or MariaDB configurations, a crafted token value that is not a string is mishandled during the user lookup. An unauthenticated attacker can then be recognised as an existing user without knowing their API token, and take over that account on every route protected by the guard.

Am I affected? The advisory targets the built-in token guard, meaning the token driver declared in config/auth.php, with a MySQL or MariaDB database.

php artisan --version
grep -n "'driver' => 'token'" config/auth.php

The fix. Upgrade to at least Laravel 12.68.0 or 13.29.0. The advisory offers no workaround: upgrading is the only answer. If you are still on an older branch, that is one more reason to schedule the major upgrade.

Composer: CVE-2026-84361 and CVE-2026-59948

  • Component: Composer itself, on developer machines as well as in CI.
  • Affected versions: for CVE-2026-84361, 1.0 to 2.2.29 and 2.3.0 to 2.10.2; for CVE-2026-59948, 1.0 to 2.2.28 and 2.3.0 to 2.10.1.
  • Fixed versions: 2.10.3 and 2.2.30 (LTS) for the first; 2.10.2 and 2.2.29 (LTS) for the second.
  • Severity: high in both cases, CVSS 4.0 score of 7.7 and CVSS 3.1 score of 7.0.
  • Sources: advisory GHSA-rvx4-ffvw-m9q3 and CVE-2026-84361; advisory GHSA-499r-g7pc-vmp9 and CVE-2026-59948.

The risk. Both are supply-chain attacks. With CVE-2026-84361, a malicious package whose source is declared as Perforce can get an arbitrary command executed during composer install or composer update, with the privileges of the user or CI account. With CVE-2026-59948, a package with a crafted name can write files outside the vendor/ directory, and even outside the project.

Am I affected? In both cases, Packagist.org and Private Packagist block this metadata. Exposure comes from third-party or self-hosted Composer repositories, and from composer.lock files of uncontrolled origin, such as an external pull request installed automatically by CI. The first flaw additionally requires the p4 client to be present on the machine and the package to be installed from source.

composer --version
command -v p4 || echo "Perforce client not installed"
composer config repositories

The fix. Update Composer everywhere it runs: workstations, Docker images, CI runners.

composer self-update          # current branch
composer self-update --2.2    # LTS branch

Aim straight for the latest release rather than the minimum threshold: at the time of writing that is Composer 2.11.2 and 2.2.32, which also fix further advisories published in October and November 2026 that have no CVE identifier attached yet. Documented mitigations in the meantime: remove p4 from the PATH on machines that do not use Perforce, stick to trusted repositories, and treat any lock file from an external source as untrusted input.

Staying patched without spending your weeks on it

This batch of fixes illustrates something we see in our audits: falling behind on versions costs more than upgrading. Four habits cover most of it.

1. Fail CI on vulnerable dependencies. composer audit checks your lock file against the Packagist advisory database. It sees neither the PHP version nor the Composer version, so add those checks separately.

composer audit --locked

2. Stay on a maintained PHP branch. According to the supported versions page, PHP 8.2 stops receiving security fixes after 31 December 2026, and the 8.1 branch already receives none: CVE-2026-129291 will stay open there. If your fleet still runs 8.1 or 8.2, the migration to 8.3 or 8.4 is the real project to start. The same goes for frameworks: do not stay on a Symfony or Laravel branch that no longer gets fixes.

3. Subscribe to primary sources. The GitHub security advisories for php-src, Composer and Laravel, plus the Security Advisories category of the Symfony blog. A feed read every week by a named person beats a tool nobody looks at.

4. Rebuild your images. composer update does not update PHP. If you deploy containers, rebuilding the image from an up-to-date base is what brings in PHP 8.3.37 or 8.4.28. Schedule it weekly, and scan the resulting image.

Conclusion

Most of the flaws described here need specific conditions: FastCGI connection reuse, an FPM option switched on, a DTO of a certain shape, a third-party Composer repository. That is no reason to wait. Checking every condition on every server takes longer than deploying the fixed versions, and configuration mitigations are only stopgaps.

The priority order we apply: PHP first (8.2.36, 8.3.37, 8.4.28 or 8.5.13), Laravel if you use TokenGuard, then Symfony, then Composer on every workstation and runner.

To check your applications' exposure to these vulnerabilities, audit your update chain or plan a PHP version upgrade, write to contact@your-digital-hub.com or explore our PHP expertise and our Cybersecurity expertise. You can also request a PHP security audit through our contact page.

Let's talk about your project. Send us the essentials.

Tell us the context, whether it is a new build, a takeover or a migration, the technologies in place and your target date.