Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 12h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d Suspected Vietnam-Linked Hackers Target Southeast Asia in South China Sea Espionage Campaign · 12h Vulnerability in GNU m4 software · 16h Vulnerability in SMSEagle RCDevs OpenOTP SMS integration connector software · 17h Fragnesia: When a Firewall Becomes the Target · 1d Vulnerability in Chainlit software · 1d Vulnerabilities in GNU Screen software · 1d Drupal Warns of New Highly Critical Site Takeover Vulnerability Under Active Exploitation · 1d Hackers Exploit 10 Vulnerabilities Across Mitel, Juniper, Vates, and Danfoss Products · 1d VMware VMSA-0011: When the Hypervisor Becomes the Attack Surface · 2d Vulnerabilities in PrestaHelp phsuperpack module for PrestaShop · 2d
🛡️
ACyber Sentinel Security Assessment Team
← Back to feed
⚡ Intelligence Report

Critical PHP Flaws Allow Code Execution, But Don't Panic 'PHP2Shell'-Style

Critical PHP Flaws Allow Code Execution, But Don't Panic 'PHP2Shell'-Style

5 Min Read

Abstract source code against a black background.

Source: scanrail via Getty Images

The PHP team has released a new security update fixing a wide swath of vulnerabilities and issues, but compared to last month's PHP2Shell chaos, how much these bugs will appeal to attackers is harder to pin down.

That's because, according to PHP's maintainers, the seven issues rated "critical" in the latest monthly security update "require either non-default configuration or uncommon setups." The update, published Nov. 19, affects all supported versions of PHP, and maintainers strongly encourage users to upgrade promptly.

This latest update comes on the heels of threat actors targeting PHP2Shell — a pair of vulnerabilities (CVE-2026-109618 and CVE-2026-109619) capable of remote code execution (RCE) in PHP — en masse. PHP is an open source scripting language common in Web development and present in much of the server infrastructure keeping the Internet afloat. Given PHP's ubiquity, the rush to patch created a fervor across the security industry hardly seen since Log4Shell in 2021.

Related:Cursor Traces Malicious Claude Code Extensions to Third-Party Breach

PHP versions 8.2 through 8.5 now have patches available through the project's downloads page, in the form of 8.2.36, 8.3.37, 8.4.28, and 8.5.13. 8.6.0; the latest major release of PHP also launched today with fixes included.

Of the dozens of issues accounted for in the changelog, the seven marked critical (CVSS 9.2) on GitHub were: session serializer mismatch RCE flaw CVE-2026-115560; use-after-free via repopulation of last_fatal_error_backtrace global after shutdown flaw CVE-2026-129182; timezone cache use-after-free RCE vulnerability CVE-2026-129496; use-after-free after interrupted session shutdown bug CVE-2026-129481; use-after-free in magic method backtraces RCE bug CVE-2026-129474; PHP-FPM request smuggling through an unread HTTP request body bug CVE-2026-129289; and PHP file-based session handler RCE vulnerability CVE-2026-126714.

While maintainers included workarounds in most critical advisories (barring CVE-2026-115560), they're considered temporary mitigations, and users should upgrade as soon as they can.

Justin Moore, director of adversary operations at Arctic Wolf, tells Dark Reading that two challenges organizations will run into in patching these issues are business continuity for servers running critical functions and visibility.

"A lot of organizations don’t have a complete inventory of where PHP is running, especially with legacy applications, internally developed Web services, managed hosting environments, or third-party software. It’s baked into CMS platforms, hosting control panels, vendor appliances, and old internal apps," he says. "When a vulnerability is disclosed, the primary challenge is identifying every aspect of the business that is affected. The reality is that Internet-facing PHP systems should move toward the front of the patch queue because attackers have repeatedly demonstrated an interest in rapidly exploiting PHP vulnerabilities when a path to code execution exists."

Related:Grok Bots Attempt to Access Corporate Data Without User Approval

PHP Bugs to Prioritize Patching

Among the critical flaws, there are some experts recommend focusing on first. According to Upwind, which published an analysis of the security release, PHP-FPM bug CVE-2026-129289 is the one to close first, because it "gives an unauthenticated attacker PHP code execution with a single request," with no memory corruption, gadget chain, or race required to exploit. Although Upwind assesses it's the most direct route to code execution, "It does need a front end that reuses FastCGI connections and an application path that opens php://input without reading it to the end."

Upwind also noted that three of the vulnerabilities address gaps introduced by the PHP2Shell fixes last month. "PHP ties CVE-2026-129481 and CVE-2026-129182 to cases the October fix for CVE-2026-109619 did not cover," according to the analysis. "A third, CVE-2026-129474, became remotely reachable through a change introduced in 8.5.12."

Related:F-Secure Identifies 26 Ways AI Can Harm Consumers, and Where to Stop Them

All three depend on specific configurations and versions. CVE-2026-129474 and CVE-2026-129182 are only applicable to PHP 8.5, while CVE-2026-129481 excludes PHP 8.2. CVE-2026-129474 and CVE-2026-129182 both rely on PHP 8.5's fatal error backtrace engine feature, which was introduced with that version; for CVE-2026-129481, the session cleanup behavior it exploits was introduced in PHP 8.3.

Finally, among the other recommendations the analysis makes, one broader tip may ring true for a wide range of PHP-using organizations: "Don't forget container images and appliances that bundle their own PHP build. They need a rebuild or a vendor update."

Meanwhile, WatchTowr's Jake Knott tells Dark Reading that CVE-2026-115560, CVE-2026-126714, and CVE-2026-129289 are the ones the firm expects attackers to go after first.

In any case, while not the same level of emergency as seen last month, users should absolutely apply this latest update as soon as they can.

Everyone's PHP Priorities Will Be Different

Just because a vulnerability is rated critical, that does not necessarily mean it applies to all organizations equally or that threat actors will necessarily target each issue like the PHP2Shell bugs last month.

Knott, who is WatchTowr's head of threat intelligence, says organizations must consider factors such as how a vulnerability is exploited, and how likely real-world exploitation is. And more specifically, whether that organization uses the affected configurations or meets the prerequisites for exploitation. Only then can one determine where attackers have a viable path and how defenders can prioritize securing their environments.

He says the best place to start is with three questions. First, how is PHP being run (be it PHP-FPM, Apache mod_php, php-cgi, or something else)? Second, how are sessions configured, and is session upload progress enabled? And third, what settings is PHP running with, and where are errors being logged?

"Organizations should absolutely take these vulnerabilities seriously, and many of the other critical and high-rated vulnerabilities from this week," Knott says. "There is a stark difference in business-as-usual accelerated patching in response to a critical vulnerability, and panic driven by trivially exploitable default configuration vulnerabilities that typically carry the product2shell monikers, which these aren't."

He adds, "Answers to these questions will quickly rule out many of these vulnerabilities and let organizations patch prioritized sets of assets from a position of understanding and actual risk."

About the Author

Alexander Culafi

Senior News Writer, Dark Reading

Alex is an award-winning writer, journalist, and podcast host based in Boston. After cutting his teeth writing for independent gaming publications as a teenager, he graduated from Emerson College in 2016 with a Bachelor of Science in journalism. He has previously been published on VentureFizz, Search Security, Nintendo World Report, and elsewhere.

At Dark Reading, he covers a variety of cybersecurity topics, including the cybercrime ecosystem, open source security, and the intersection between AI and threat actors. In his spare time, Alex hosts the weekly Nintendo podcast, "Talk Nintendo Podcast," and works on personal writing projects, including two previously self-published science fiction novels.

He has received numerous awards, including TechTarget's Writer of the Year in 2022 as well as more than 10 Azbee awards for his reporting between 2022 and today.

Referenced Vulnerabilities

CVE-2026-129496 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129496 - Timezone cache use-after-free can lead to remote code execution
Timezone cache use-after-free can lead to remote code execution. In non-thread-safe builds, a diagnostic written to a file-based error_log during module startup, for example for an invalid date.timezone value or a session configuration warning, causes the timezone cache to be allocated in startup memory that is freed while a reference to it is kept. A diagnostic raised early in the first request of a worker, such as the max_input_vars warning, then accesses the freed cache. On such a deployment an unauthenticated remote attacker can crash PHP-FPM, Apache mod_php or CGI workers with a crafted request. Arbitrary code execution may be possible and has been demonstrated with known memory addresses. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129481 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129481 - Use-after-free after interrupted session shutdown
Use-after-free after interrupted session shutdown. The session extension records the filename of the executing script when a session starts. If a fatal error occurs in an application callback while the session variables are destroyed at shutdown, such as stream_close() of a user-defined stream wrapper, the pointer is retained after the request memory is freed, and a later request handled by the same worker can free the stale string. An attacker who can trigger such a failing cleanup may crash the worker or corrupt memory; code execution has not been demonstrated. This requires the filename to be allocated in request memory, for example when the script is not cached by OPcache. This issue affects PHP versions 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129474 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129474 - Use-after-free in magic method backtraces can lead to remote code execution
Use-after-free in magic method backtraces can lead to remote code execution. When collecting the arguments of a method call handled by __call() or __callStatic() for a backtrace, PHP can read stale values that may refer to freed memory. If a fatal error such as exceeding memory_limit occurs while an application enters such a call, with fatal_error_backtraces enabled (the default) and zend.exception_ignore_args disabled, a remote attacker who controls enough request data to influence memory allocation may cause memory corruption, crash the PHP worker or, with knowledge of memory addresses, execute arbitrary code. php.ini-production enables zend.exception_ignore_args, which prevents this. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-129289 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129289 - PHP-FPM request smuggling through an unread HTTP request body
PHP-FPM request smuggling through an unread HTTP request body. PHP does not discard the unread part of an HTTP request body at request shutdown when the application has opened php://input without reading it to the end. When the front end reuses backend connections, which is not the default in nginx or Apache (for example nginx with fastcgi_keep_conn on, or Apache mod_proxy_fcgi with enablereuse=on), PHP-FPM can parse the leftover bytes as a new FastCGI request. An unauthenticated remote attacker can use a single crafted multipart/form-data request to forge a backend request with chosen parameters such as SCRIPT_FILENAME, REMOTE_ADDR and PHP_ADMIN_VALUE, which can lead to execution of attacker-controlled PHP code. With LSAPI, subsequent requests on the connection can be disrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-129182 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-129182 - Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown
Use-after-free via repopulation of last_fatal_error_backtrace global after shutdown. A fatal error raised while modified INI settings are restored during request shutdown can repopulate the stored fatal error backtrace after the executor has been cleaned up. The request memory is then freed, and a diagnostic emitted before executor initialization in a later request handled by the same PHP-FPM or mod_php worker can access the stale backtrace. The shutdown error requires per-path configuration of max_memory_limit, or of zlib.output_compression together with output_handler (which .user.ini can also set). The early diagnostic requires Apache per-directory configuration or, for PHP-FPM, a PHP_VALUE or PHP_ADMIN_VALUE parameter sent by the front end. This can cause memory corruption and worker crashes, and may allow remote code execution. This issue affects PHP versions 8.5.* before 8.5.13.
CVE-2026-126714 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-126714 - Partially overwritten session files can lead to remote code execution
Partially overwritten session files can lead to remote code execution. The files session save handler, which is the default, writes updated session data into the existing session file without first clearing it. If a write is interrupted, the file can contain the beginning of the new session followed by the end of the old one, and bytes of an ordinary string can later be unserialized as objects. An attacker who can influence the session data, for example through session upload progress, and interrupt a write at a suitable point may inject objects, which can lead to code execution when the application contains a suitable gadget chain. Session data can also be corrupted. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-115560 CVSS 9.2 CRITICAL Awaiting Analysis
CVE-2026-115560 - Session serializer mismatch can lead to remote code execution
Session serializer mismatch can lead to remote code execution. Session upload progress, when enabled, can store attacker-controlled data in a session key using the php_binary or php_serialize session serializer. If the same session is later read with the php serializer, because session.serialize_handler is changed at runtime or differs between applications sharing a session store, bytes inside the key can be passed to the unserializer. A remote attacker able to submit a multipart upload can inject objects, which may lead to code execution when the reading application contains a suitable gadget chain, or to session corruption or denial of service. This issue affects PHP versions before 8.2.36, 8.3.* before 8.3.37, 8.4.* before 8.4.28 and 8.5.* before 8.5.13.
CVE-2026-109619 CVSS 9.8 CRITICAL Analyzed
CVE-2026-109619 - PHP Stale Internal Request-State Vulnerability - [Actively Exploited]
PHP has various global state that temporarily points into request memory. In some scenarios, global state may not be correctly reset, or may be repopulated after being reset. The global state may then refer to request memory even after it has been freed. Subsequent requests may read or branch on this stale state before it is fully initialized. Multiple strategies can trigger this condition and produce remote code execution (RCE).
CVE-2026-109618 CVSS 9.8 CRITICAL Analyzed
CVE-2026-109618 - PHP Memory Corruption Vulnerability - [Actively Exploited]
PHP uses longjmp() for out-of-memory (OOM) errors to exit the current context and abort handling of the request. Some contexts may not properly account for this scenario and leave request memory in an uninitialized state before performing an allocation. The subsequent request cleanup procedure may read or branch on this memory. Multiple OOM strategies can consistently trigger this condition and lead to remote code execution (RCE).