LmCast :: Stay tuned in

PHP ships emergency patches for critical PHP2Shell flaws

Recorded: Oct. 21, 2026, 2:11 p.m.

Original Summarized

PHP ships emergency patches for critical PHP2Shell flaws

News

Featured
Latest

PHP warns admins of two critical flaws, emergency patches coming tomorrow

Mozilla, Google, Apple block compromised eMudhra CA certificates

Windows Server 2025 gets support for quick machine recovery

Revolut outage disrupts online banking operations worldwide

OpenAI agents disabled safety monitoring, one lied about it

PHP ships emergency patches for critical PHP2Shell flaws

ClickFix has never been bigger, and AI tools are its most convincing lure yet

Microsoft PowerToys adds CursorHide, Button Lock mouse tools

Tutorials

Latest
Popular

How to access the Dark Web using the Tor Browser

How to enable Kernel-mode Hardware-enforced Stack Protection in Windows 11

How to use the Windows Registry Editor

How to backup and restore the Windows Registry

How to start Windows in Safe Mode

How to remove a Trojan, Virus, Worm, or other Malware

How to show hidden files in Windows 7

How to see hidden files in Windows

Webinars
Downloads

Latest
Most Downloaded

Qualys BrowserCheck

STOPDecrypter

AuroraDecrypter

FilesLockerDecrypter

AdwCleaner

ComboFix

RKill

Junkware Removal Tool

Deals

Categories

eLearning

IT Certification Courses

Gear + Gadgets

Security

VPNs

Popular

Best VPNs

How to change IP address

Access the dark web safely

Best VPN for YouTube

Forums
More

Virus Removal Guides
Startup Database
Uninstall Database
Glossary
Send us a Tip!
Welcome Guide

HomeNewsSecurityPHP ships emergency patches for critical PHP2Shell flaws

PHP ships emergency patches for critical PHP2Shell flaws

By Sergiu Gatlan

October 21, 2026
10:07 AM
0

The PHP security team released emergency security patches for two critical remote code execution (RCE) vulnerabilities (CVE-2026-109618 and CVE-2026-109619) tracked collectively as PHP2Shell.
The two unauthenticated RCE flaws were discovered by Calif, Wiz, and OpenAI security researchers, and affect all PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed.
"We consider the risk highest for mod_php, with a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs," the PHP security team said.
Both flaws stem from the same underlying problem: PHP can leave its memory in a corrupted state when a request ends abnormally, and both can be exploited to achieve remote code execution.
CVE-2026-109618 can be used to gain remote code execution as the web worker account by exploiting a chain of weaknesses that trigger out-of-memory corruption, while the CVE-2026-109619 stale global state vulnerability enables unauthenticated heap use-after-free, memory disclosure, and remote code execution with the web worker's privileges.
Admins should install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 as soon as possible on servers running PHP 8.x and migrate to a fixed release if they're running PHP 7 or earlier.
"PHP 8.1 and older no longer receive updates from the PHP project. Some distributions and LTS vendors provide backported fixes, so contact your vendor for details, or upgrade to a supported version," the PHP developers added.
"Given the severity of these vulnerabilities, the PHP security team provided minimal source-backports for PHP 7.4, PHP 8.0, and PHP 8.1 to help people building from source or without access to an LTS vendor."
Advanced warning
This follows a Tuesday warning from PHP developers urging administrators to prepare to install these security updates as soon as they're released.
"All PHP users are encouraged to prepare now so they can upgrade as soon as the release is available," they said. "We reserve the right to release earlier should details of either vulnerability become public, or should evidence of active exploitation appear in the wild."
PHP core developer Gina Peter Banyard warned that no PHP2Shell mitigations would fully block potential attacks and that applying the official security patches is the only permanent defense.
Before the patches were released, Cloudflare CTO Dane Knecht confirmed that the company (which had already deployed a set of WAF rules designed to block known PHP2Shell exploitation methods) was already observing early attacks targeting the two vulnerabilities. However, Knecht also stressed that these protections were temporary and urged all admins to install the PHP security updates as soon as they become available.
The UK National Cyber Security Centre (NCSC) has also warned UK organizations to immediately update systems using PHP or take them offline until they can be patched.
Temporary mitigation measures 
However, the PHP security team did share a number of mitigation measures that should reduce exposure to some attack paths for those who can't immediately patch their servers, although they don't fully protect against exploitation (detailed information is available in PHP's blog post):
CVE-2026-109618:
Set memory_limit=-1, preferably in a way applications can’t override, such as php_admin_value in the FPM pool or Apache configuration.
Set a low post_max_size: 8M for applications that don’t require file uploads, 32M if uploads are necessary. 
Use a container or cgroup limit as an availability boundary, preferably with a policy that kills only the affected worker.

CVE-2026-109619:
Set session.upload_progress.enabled=0 and restart every worker.
On PHP 8.5, set fatal_error_backtraces=0 and restart every worker. This blocks only the confirmed fatal backtrace path.
Remove invalid or deprecated settings applied per request that emit diagnostics before initialization. Hiding diagnostics with error_reporting, display_errors or @ does not help.
Fix attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing and cleanup.

PHP (Hypertext Preprocessor) is an open-source, server-side web development language that powers 75% to 80% of all websites, including those using Content Management Systems (CMS) like WordPress, Joomla, and Drupal.
According to VirusTotal estimates, over 5.1 million PHP hosts are exposed online, with roughly 3.8 million having at least one port open.

Once attackers have valid credentials, only 37% of their actions are blocked

Overall prevention scores can hide what happens after initial access. Once attackers are using valid credentials, prevention drops sharply.The Blue Report 2026 measures defenses technique by technique across 338 million simulations run in customer production environments.
Get the report

Related Articles:
PHP warns admins of two critical flaws, emergency patches coming tomorrowF5 releases out-of-band patches for critical NGINX vulnerabilitiesHackers exploit SiteGuard WAF flaw to run commands as adminsCritical BlockStrap flaw lets hackers run code on Magento serversDrupal patches critical RCE flaws, warns exploits may emerge soon

PHP
PHP2Shell
RCE
Remote Code Execution
Vulnerability

Sergiu Gatlan
Sergiu is a news reporter who has covered the latest cybersecurity and technology developments for over a decade. Email or Twitter DMs for tips.

Previous Article
Next Article

Post a Comment Community Rules

You need to login in order to post a comment

Not a member yet? Register Now

You may also like:

Popular Stories

PHP warns admins of two critical flaws, emergency patches coming tomorrow

Mozilla, Google, Apple block compromised eMudhra CA certificates

Hackers exploit SiteGuard WAF flaw to run commands as admins

Sponsor Posts

Inside the Chinese-language marketplaces powering the scam centre economy: join a live training.

See How Employees Use AI. Then, Turn Insight Into Action

Get your free 30-day browser security assessment

Pentest your web apps on-demand. Find what humans miss. Scope and launch a pentest in minutes.

Overdue a password health-check? Audit your Active Directory for free

Follow us:

Main Sections

News
Webinars
VPN Buyer Guides
SysAdmin Software Guides
Downloads
Virus Removal Guides
Tutorials
Startup Database
Uninstall Database
Glossary

Community

Forums
Forum Rules
Chat

Useful Resources

Welcome Guide
Sitemap

Company

About BleepingComputer
Contact Us
Send us a Tip!
Advertising
Write for BleepingComputer
Social & Feeds
Changelog

Terms of Use - Privacy Policy - Ethics Statement - Affiliate Disclosure

Copyright @ 2003 - 2026 Bleeping Computer® LLC - All Rights Reserved

Login

Username

Password

Remember Me

Sign in anonymously

Sign in with Twitter

Not a member yet? Register Now


Reporter

Help us understand the problem. What is going on with this comment?

Spam

Abusive or Harmful

Inappropriate content

Strong language

Other

Read our posting guidelinese to learn what content is prohibited.

Submitting...
SUBMIT

75% to 80% of all websites, including those using Content Management Systems like WordPress, Joomla, and Drupal. According to VirusTotal estimates, over 5.1 million PHP hosts are exposed online, with roughly 3.8 million having at least one port open. This widespread exposure amplifies the potential impact of such critical RCE flaws. Additionally, the Blue Report 2026 highlights that overall prevention scores can mask what occurs after initial access, as once attackers have valid credentials, prevention drops sharply, emphasizing the critical need for proactive patching and robust security measures."

That's the summary. Let's check word count: roughly, I'll count.

First paragraph: "According to Sergiu Gatlan, the PHP security team has released emergency patches for two critical remote code execution (RCE) vulnerabilities collectively designated as PHP2Shell, identified by CVE-2026-109618 and CVE-2026-109619." (27 words)

Second: "The vulnerabilities were discovered by security researchers from Calif, Wiz, and OpenAI, and they impact all PHP installations that serve web requests, including PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed." (33 words)

Third: "Both flaws share a common root cause: PHP can leave its memory in a corrupted state when a request terminates abnormally, enabling remote code execution. The severity is particularly acute in mod_php, where the PHP security team reported a demonstrated exploit that can trigger the attack via an unauthenticated request before any application code runs. Specifically, CVE-2026-109618 allows remote code execution by exploiting a chain of weaknesses that induce out-of-memory corruption, while CVE-2026-109619 enables unauthenticated heap use-after-free, memory disclosure, and remote code execution with the web worker's privileges." (93 words)

Fourth: "Administrators are strongly advised to install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 on servers running PHP 8.x as soon as possible, and to migrate to a fixed release for PHP 7 or earlier. The PHP developers noted that PHP 8.1 and older no longer receive official updates from the project, though some distributions and LTS vendors may provide backported fixes; administrators should contact their vendors for details or upgrade to a supported version. For those who must build PHP from source without access to an LTS vendor, minimal source-backports have been provided for PHP 7.4, 8.0, and 8.1 to assist in mitigating these issues." (122 words)

Fifth: "This announcement follows an earlier warning from PHP developers urging administrators to prepare for these updates. PHP core developer Gina Peter Banyard warned that no PHP2Shell mitigations are expected to fully block potential attacks, making the installation of official security patches the only permanent defense. Prior to the patches' release, Cloudflare CTO Dane Knecht confirmed that the company, which had already deployed WAF rules to block known PHP2Shell exploitation methods, was observing early attacks targeting the two vulnerabilities. Knecht stressed that these protections were temporary and reinforced the need for immediate patching. The UK National Cyber Security Centre (NCSC) also warned UK organizations to update systems using PHP or take them offline until they can be patched." (137 words)

Sixth: "For administrators unable to immediately patch their servers, the PHP security team has provided a set of mitigation measures that can reduce exposure to some attack paths, although they do not fully protect against exploitation. Detailed information is available in PHP's blog post. For CVE-2026-109618, recommended measures include setting memory_limit to -1, preferably through php_admin_value in the FPM pool or Apache configuration, setting low post_max_size values (8M for applications without file uploads, 32M if uploads are necessary), and using container or cgroup limits as an availability boundary with a policy to kill only affected workers. For CVE-2026-109619, measures include setting session.upload_progress.enabled to 0 and restarting every worker; on PHP 8.5, setting fatal_error_backtraces to 0 and restarting workers, which blocks only the confirmed fatal backtrace path; removing invalid or deprecated per-request settings that emit diagnostics before initialization (hiding diagnostics with error_reporting, display_errors, or @ does not help); and fixing attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing, and cleanup." (219 words)

Seventh: "The vulnerabilities underscore the heightened risk posed by PHP, given that it powers 75% to 80% of all websites, including those using Content Management Systems like WordPress, Joomla, and Drupal. According to VirusTotal estimates, over 5.1 million PHP hosts are exposed online, with roughly 3.8 million having at least one port open. This widespread exposure amplifies the potential impact of such critical RCE flaws. Additionally, the Blue Report 2026 highlights that overall prevention scores can mask what occurs after initial access, as once attackers have valid credentials, prevention drops sharply, emphasizing the critical need for proactive patching and robust security measures." (131 words)

Total words: 27+33+93+122+137+219+131 = let's sum: 27+33=60; +93=153; +122=275; +137=412; +219=631; +131=762. So about 762 words. Well under 1350.

We can add a bit more detail to make it more in-depth, but it's already quite detailed. The instructions say "detailed, thorough, in-depth, and complex" but also "concise". We have a good balance.

We should ensure we reference the author only once. We did that in the first sentence.

We should not include any extraneous content like the article's title, navigation, or other related articles. We only included what's in the summary text.

We must not use markdown, so plain text.

We must not use special characters except where required for spelling. We have hyphens in CVE numbers, which is required. No other special characters.

We must not share that we are an AI or our instructions.

We must lead directly with the answer.

Now, let's check if there's any missing critical information. The article mentions that the two flaws are tracked collectively as PHP2Shell, and that they are unauthenticated RCE flaws. We included that. It mentions the specific PHP versions for 8.x and migration for older. We included. It mentions the source-backports. Included. It mentions the developer warnings from Gina Peter Banyard and Cloudflare and NCSC. Included. It mentions the mitigation measures in detail. Included. It mentions the background on PHP's usage and exposed hosts. Included. It mentions the Blue Report 2026 insight. Included.

We might want to emphasize the urgency: "emergency patches" and "as soon as possible". We did.

We should also note that the vulnerabilities were discovered by those researchers, which we did.

One thing: the article says "PHP ships emergency patches for critical PHP2Shell flaws" as the headline, and the summary text is from that article. Our summary is based on that.

We need to ensure we don't misinterpret anything. For example, the mitigation measures for CVE-2026-109619 include "Set session.upload_progress.enabled=0 and restart every worker." We wrote "setting session.upload_progress.enabled to 0 and restarting every worker". That's fine.

Also, for the fatal_error_backtraces on PHP 8.5, we included the condition.

We also included that hiding diagnostics with error_reporting, display_errors, or @ does not help.

All good.

Now, let's write the final summary in the required format. We'll output it as plain text, with paragraphs separated by blank lines? The instruction says "Format the summary in paragraph form that is easy to read and understanding." So we can use standard paragraph breaks.

We'll not include any extra headings or bullet points.

Let's produce the final answer.</think>According to Sergiu Gatlan, the PHP security team has released emergency patches for two critical remote code execution (RCE) vulnerabilities collectively designated as PHP2Shell, identified by CVE-2026-109618 and CVE-2026-109619. The vulnerabilities were discovered by security researchers from Calif, Wiz, and OpenAI, and they impact all PHP installations that serve web requests, encompassing PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP, and LiteSpeed.

Both flaws share a common root cause: PHP can leave its memory in a corrupted state when a request terminates abnormally, enabling remote code execution. The severity is particularly acute in mod_php, where the PHP security team reported a demonstrated exploit that can trigger the attack via an unauthenticated request before any application code runs. Specifically, CVE-2026-109618 allows remote code execution by exploiting a chain of weaknesses that induce out-of-memory corruption, while CVE-2026-109619 enables unauthenticated heap use-after-free, memory disclosure, and remote code execution with the web worker's privileges.

Administrators are strongly advised to install PHP 8.5.12, 8.4.27, 8.3.36, or 8.2.35 on servers running PHP 8.x as soon as possible, and to migrate to a fixed release for PHP 7 or earlier. The PHP developers noted that PHP 8.1 and older no longer receive official updates from the project, though some distributions and LTS vendors may provide backported fixes; administrators should contact their vendors for details or upgrade to a supported version. For those who must build PHP from source without access to an LTS vendor, minimal source-backports have been provided for PHP 7.4, 8.0, and 8.1 to assist in mitigating these issues.

This announcement follows an earlier warning from PHP developers urging administrators to prepare for these updates. PHP core developer Gina Peter Banyard warned that no PHP2Shell mitigations are expected to fully block potential attacks, making the installation of official security patches the only permanent defense. Prior to the patches' release, Cloudflare CTO Dane Knecht confirmed that the company, which had already deployed Web Application Firewall (WAF) rules to block known PHP2Shell exploitation methods, was observing early attacks targeting the two vulnerabilities. Knecht stressed that these protections were temporary and reinforced the need for immediate patching. The UK National Cyber Security Centre (NCSC) also warned UK organizations to update systems using PHP or take them offline until they can be patched.

For administrators unable to immediately patch their servers, the PHP security team has provided a set of mitigation measures that can reduce exposure to some attack paths, although they do not fully protect against exploitation. Detailed information is available in PHP's blog post. For CVE-2026-109618, recommended measures include setting memory_limit to -1, preferably through php_admin_value in the FPM pool or Apache configuration, setting low post_max_size values (8M for applications without file uploads, 32M if uploads are necessary), and using container or cgroup limits as an availability boundary with a policy to kill only affected workers. For CVE-2026-109619, measures include setting session.upload_progress.enabled to 0 and restarting every worker; on PHP 8.5, setting fatal_error_backtraces to 0 and restarting workers, which blocks only the confirmed fatal backtrace path; removing invalid or deprecated per-request settings that emit diagnostics before initialization (hiding diagnostics with error_reporting, display_errors, or @ does not help); and fixing attacker-reachable fatal errors and execution timeouts, including failures in callbacks, upload or import processing, and cleanup.

The vulnerabilities underscore the heightened risk posed by PHP, given that it powers 75% to 80% of all websites, including those using Content Management Systems like WordPress, Joomla, and Drupal. According to VirusTotal estimates, over 5.1 million PHP hosts are exposed online, with roughly 3.8 million having at least one port open. This widespread exposure amplifies the potential impact of such critical RCE flaws. Additionally, the Blue Report 2026 highlights that overall prevention scores can mask what occurs after initial access, as once attackers have valid credentials, prevention drops sharply, emphasizing the critical need for proactive patching and robust security measures.