Skip to content

Critical PHP Security Release: How to Patch Your Sites and Servers

BLOG
21 Oct 2026
Critical PHP Security Release: How to Patch Your Sites and Servers

Updated 21 October 2026: PHP has released the fixes. Update now.

PHP has released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. They fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, both rated 9.2 on CVSS v4.0, that can allow unauthenticated remote code execution. PHP strongly encourages all users to update immediately and says updating is the only safe choice.

PHP runs a large share of the web, including WordPress, WooCommerce, Magento, Drupal, Laravel and many custom business applications. If any of your websites, web apps or servers run PHP, update them now.

What PHP has fixed

  • CVE-2026-109618, remote code execution via out-of-memory corruption (GHSA-w8hw-w9fx-j79w). Out-of-memory handling can interrupt PHP while internal request data is only partly initialised, and request cleanup may then treat the invalid data as valid.
  • CVE-2026-109619, remote code execution via stale global state (GHSA-6wmf-4rv5-p3rp). Internal state that belongs to a request can survive after its memory has been freed, and a later request handled by the same worker may use it before it is reset.

Who is affected?

According to PHP, every PHP installation that serves web requests is at risk, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP considers the risk highest for mod_php, where a demonstrated exploit can be triggered by an unauthenticated request before any application code runs.

That includes shared hosting, VPS and dedicated servers, cloud instances, Docker images and managed platforms.

Fixed versions

  • PHP 8.5: update to 8.5.12
  • PHP 8.4: update to 8.4.27
  • PHP 8.3: update to 8.3.36
  • PHP 8.2: update to 8.2.35. PHP 8.2 reaches end of life on 31 December 2026, so plan your upgrade to a newer version.

PHP 8.1 and older no longer receive updates from the PHP project. Some Linux distributions and LTS vendors provide backported fixes, so check with your vendor, or upgrade to a supported version. For people building from source, PHP has also published minimal source backports for PHP 7.4, 8.0 and 8.1.

How to patch now

  1. Find every PHP version you run. Run php -v on each server, check your hosting control panel, and look at the PHP base images in your Dockerfiles and CI pipelines. The command line and the web server can use different versions, so check both.
  2. Install the fixed version for your branch from your usual source: your operating system's packages, your hosting control panel, the official PHP Docker image, or php.net. Linux distributions and LTS vendors received the patches in advance, so check your vendor for updated packages.
  3. If you use rpms.remirepo.net, PHP advises switching to distribution packages or building from source, as that repository will not have updates on release day.
  4. Restart PHP-FPM and your web server so the patched version is actually running. For containers, rebuild and redeploy your images.
  5. Confirm the running version on every site and server. Distribution packages often backport fixes without changing the PHP version number, so check your vendor's security notice too.
  6. Test your important pages, forms, checkout and admin login, and watch your logs for unusual requests over the following days.

If you cannot update straight away

PHP's advisory lists measures that reduce exposure to specific attack paths. They do not make an installation safe, and updating is the only complete fix:

  • For CVE-2026-109618: set memory_limit=-1 in a way applications cannot override (for example php_admin_value in the FPM pool or Apache configuration), set a low post_max_size (8M if you do not need file uploads, 32M if you do), and enforce request size limits at the web server or proxy.
  • For CVE-2026-109619: set session.upload_progress.enabled=0 in php.ini, the FPM pool or the server configuration and restart every worker. On PHP 8.5, also set fatal_error_backtraces=0.

See the PHP security advisory for the full list, and apply the update as soon as you can.

How WebCastle can help

Our team can find which PHP versions your websites and servers use, apply the security update, test your site afterwards and move older applications to a supported version of PHP.

Need help patching your website or servers? Contact us, email sales@webcastle.in or call +91 484 405 2626, and our team will help you get your sites and servers updated.

Frequently asked questions

Which PHP versions fix the vulnerabilities?

PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on 21 October 2026. Update to the version for your branch.

What are the CVE IDs?

CVE-2026-109618 (remote code execution via out-of-memory corruption) and CVE-2026-109619 (remote code execution via stale global state). Both can allow unauthenticated remote code execution.

Does this affect WordPress websites?

WordPress runs on PHP, so the PHP version on your server needs the update. Updating WordPress, themes or plugins alone does not fix a vulnerability in PHP itself.

I am on PHP 7.4, 8.0 or 8.1. Will I get a fix?

There is no official release for these versions. Some Linux distributions and LTS vendors provide backported fixes, and PHP has published minimal source backports for people building from source. The safest option is to upgrade to a supported version of PHP.

Source: PHP security advisory on php.net, 21 October 2026.

Related Posts

How to Optimize Ecommerce Category Pages for AI Search
BLOG
27 October 2026

How to Optimize Ecommerce Category Pages for AI Search

Learn how to optimize ecommerce category pages for AI search with helpful content, product listings, technical SEO and practical optimisation tips.

Read More
How to Design Accessible Websites: A WCAG 2.2 Guide
BLOG
24 October 2026

How to Design Accessible Websites: A WCAG 2.2 Guide

Learn how to design accessible websites using WCAG 2.2 guidelines. Explore accessibility principles, design practices and testing methods.

Read More
On-Device AI vs Cloud AI: Best for Mobile Apps in 2026
BLOG
19 October 2026

On-Device AI vs Cloud AI: Best for Mobile Apps in 2026

Compare on-device AI and cloud AI for mobile apps. Learn about their benefits, limitations, costs, privacy, and when to choose a hybrid approach.

Read More
ChatGPT Ads Explained: What Businesses Need to Know
BLOG
2 October 2026

ChatGPT Ads Explained: What Businesses Need to Know

Discover how ChatGPT ads work, who can see them, their benefits and limitations, and how businesses can prepare for AI advertising.

Read More
How AI Software Can Reduce Business Costs and Improve Efficiency
BLOG
28 September 2026

How AI Software Can Reduce Business Costs and Improve Efficiency

Discover how AI software can reduce business costs, automate repetitive tasks, improve efficiency, and help businesses measure savings and productivity.

Read More
How Small Fashion Brands Can Compete With Big Brands on Social Media
BLOG
23 September 2026

How Small Fashion Brands Can Compete With Big Brands on Social Media

Discover how small fashion brands can compete with big brands on social media through creative content, audience engagement, influencer partnerships, and smart marketing strategies.

Read More

About Us

WebCastle Media, established in 2008, is a premier web design and development firm based in Kochi. With a diverse portfolio of over 1,000 clients worldwide, we pride ourselves on our innovative approach.

18

+

Years of Expertise

800

+

Clients Globally

1000

+

Completed Projects

150

+

Dedicated Castlers

Testimonials

Mr. Thomas Joseph Nellissery

Mr. Thomas Joseph Nellissery

Director | Geepas Academy | IIT-M, IIM-A

Mr. Tiju Antony

Mr. Tiju Antony

Managing Director | Tiju's Academy

Mr. Arjun R Shanker

Mr. Arjun R Shanker

CEO & Founder , Learnstroke

Dr, Sreeraj Gopi, Ph.D

Dr, Sreeraj Gopi, Ph.D

Founder | Molecules Group Of Companies

Clients

WebCastle Media, established in 2008, is a premier web design and development firm based in Kochi.

Client 54
Client 55
Client 56
Client 57
Client 58
Santa Monica UAE
5.png
7.png
9.png
Somans
2.png
4.png

Latest

(3)
How to Optimize Ecommerce Category Pages for AI Search

BLOG | 27 Oct 2026

How to Optimize Ecommerce Category Pages for AI Search

How to Design Accessible Websites: A WCAG 2.2 Guide

BLOG | 24 Oct 2026

How to Design Accessible Websites: A WCAG 2.2 Guide

Critical PHP Security Release: How to Patch Your Sites and Servers

BLOG | 21 Oct 2026

Critical PHP Security Release: How to Patch Your Sites and Servers

Ideas to Reality

WebCastle Media, established in 2008, is a premier web design and development firm based in Kochi.