Security update

PHP critical security updates 2026: which version is safe?

Security update

Over the past few weeks the PHP team shipped several security releases for every supported branch. The most serious, on 21 October 2026, fixed two flaws that could let an attacker run code on the server without signing in. Another round followed on 19 November 2026. If your website or business system runs on PHP, this page answers one question: is the version running on your server right now safe?

The quick answer: the safe version for each branch

As of the date on this page, the latest security release for each supported branch is:

BranchLatest security releaseDateNote
PHP 8.68.6.019 Nov 2026Includes the fixes for both critical flaws
PHP 8.58.5.1319 Nov 2026
PHP 8.48.4.2819 Nov 2026
PHP 8.38.3.3719 Nov 2026
PHP 8.28.2.3619 Nov 2026End of life on 31 Dec 2026
PHP 8.1 and oldernoneNo longer supported by the PHP project

If your version number is lower than the one for your branch in this table, you need to update.

The two remote code execution flaws (21 Oct 2026)

The PHP team published a critical advisory for two flaws that can allow unauthenticated remote code execution:

  • CVE-2026-109618: out-of-memory handling can interrupt PHP while request data is only partly initialised. Request cleanup may then treat that invalid data as valid.
  • CVE-2026-109619: state owned by one request can survive after its memory is freed, and a later request on the same worker may use it.

The fixes shipped in 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and in the 8.6.0 RC4 test build. Every later release in each branch includes them.

Who is affected

According to the advisory, every PHP installation that serves web requests: PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. The risk is highest with mod_php, where a crafted request can trigger the attack before your application code even runs. Well-written application code does not protect you here; updating PHP does.

Interim mitigations if you cannot update today

The PHP team is explicit that these reduce exposure but do not make a system safe. Use them only until the update is done:

  1. Set session.upload_progress.enabled = 0 in php.ini, the FPM pool or server configuration, then restart every worker. Do not rely on ini_set() or .user.ini for this.
  2. Limit request sizes at the web server or reverse proxy.
  3. The team also suggests memory_limit = -1 through a setting the application cannot override, paired with a container or cgroup memory limit. Don't apply it on its own on a shared server without such a limit.
  4. On PHP 8.5, also set fatal_error_backtraces = 0.
; php.ini or FPM pool, then restart all workers
session.upload_progress.enabled = 0

The other updates in October and November

  • 23 Oct 2026, session upload progress advisory: the team recommended disabling session.upload_progress.enabled until the next bugfix release because of an unlikely remote code execution path (CVE-2026-115560). It needs an unusual setup, including switching session.serialize_handler at runtime.
  • 26 Oct 2026, rebuilt Windows binaries: the Windows builds of 8.5.12, 8.4.27, 8.3.36 and 8.2.35 were rebuilt with Brotli 1.2.1 to fix CVE-2026-111497, which affects the cURL extension when automatic response decompression is turned on. This concerns Windows servers only.
  • 19 Nov 2026, scheduled security releases: 8.5.13, 8.4.28, 8.3.37 and 8.2.36. The highest severity was critical, but the advance notice said exploitation needs non-default configurations or uncommon setups.

PHP 8.2 reaches end of life on 31 December 2026

According to the PHP news archive, the 8.2 branch reaches end of life on 31 December 2026. After that date the PHP project will not release fixes for it, even for a flaw as serious as the October ones. PHP 8.1 and older are already unsupported; what exists for them comes from Linux distributions or extended-support vendors, not from the PHP project.

In practice: if your project is on 8.2, moving to at least 8.3 should happen in the coming weeks. Moving to 8.4 or 8.5 buys more years before the next upgrade. We cover the newest branch on the PHP 8.6 release page.

How to check and update your site

  1. Find the version that actually serves your site. In cPanel, open MultiPHP Manager. On a shell, php -v shows the command-line version, which can differ from the web one.
  2. Compare the number with the table above. The last part matters: 8.3.35 is older than 8.3.36 and lacks the critical fixes.
  3. On shared hosting, updating PHP is your provider's job. Ask them for the exact version and when they will update.
  4. On a server you manage, update the PHP packages from their source, such as EasyApache in cPanel or your distribution's repository, then restart PHP-FPM or Apache.
  5. After updating, open the main pages, try signing in and uploading a file, and check the error log.

We track these updates on the servers we manage for our clients as part of our hosting and servers service. If you're not sure where your server stands, send us your site's address and we'll tell you what it needs.

FAQ

Is my site at risk if it runs WordPress or Laravel?

The flaws are in PHP itself, not in WordPress or Laravel. Any site running an unpatched PHP version is exposed, whatever it is built with and however good its code is.

How can I tell if my site was compromised?

There's no single sure sign. Look for PHP files your team didn't upload, changed core files, new admin accounts and unusual requests in the server logs. If you suspect a compromise, keep a copy of the logs before cleaning anything and get specialist help.

Is disabling session.upload_progress.enabled enough?

No. It reduces the risk from one of the two flaws, and the PHP team says plainly that the interim mitigations do not make a system safe. The full fix is updating to a patched version.

I'm on shared hosting. Do I need to do anything?

Yes: check the version in your control panel. If it's older than the safe version for its branch, ask your provider to update, or switch the site to a newer patched branch if your panel lets you choose.

What if my system runs PHP 7.4, 8.0 or 8.1?

Those branches are no longer supported by the PHP project. The team notes that minimal backports for them are published on GitHub, and some Linux distributions ship fixes. The lasting answer is upgrading the system to a supported branch, which may need code changes.

Official sources

Visual Innovate

Written by the Visual Innovate team, the people who build, host and follow up systems, websites and apps for our clients in Jordan, Saudi Arabia, Oman and Egypt. We follow the official sources and update this page when something changes.

Are you our next Success Partner?

Tell us the problem as you see it. Within one working day we'll come back with how we understand it and a clear first step.