Home › Intelligence › Brief
VULNERABILITY BRIEF🔴 Critical Vulnerability

Critical PHP2Shell RCE Vulnerabilities (CVE‑2026‑109618, CVE‑2026‑109619) Expose Millions of Web Servers

PHP disclosed two critical remote‑code‑execution flaws (CVE‑2026‑109618 and CVE‑2026‑109619) that allow unauthenticated attackers to run code or steal memory contents. Active scanning reported by Cloudflare shows internet‑facing PHP sites are being targeted. The issue underscores the need for continuous vulnerability inventory and rapid patch evidence to satisfy audit and control‑assurance requirements.

LiveThreat™ Intelligence · 📅 November 23, 2026· 📰 blog.qualys.com
🔴
Severity
Critical
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
3 sector(s)
✅
Actions
4 recommended
📰
Source
blog.qualys.com

Critical PHP2Shell RCE Vulnerabilities (CVE‑2026‑109618, CVE‑2026‑109619) Threaten Millions of Web Servers

What It Is — PHP has released patches for two critical, unauthenticated remote‑code‑execution flaws (CVE‑2026‑109618 and CVE‑2026‑109619). Both receive a CVSS v4.0 score of 9.2. The first flaw stems from out‑of‑memory corruption that leaves request data partially initialized; the second is a use‑after‑free caused by stale global state. Exploitation allows an attacker to execute arbitrary code or dump PHP worker memory, exposing passwords, tokens and API keys. Cloudflare reports active scanning and exploitation attempts against internet‑facing PHP deployments, especially Apache mod_php and PHP‑FPM.

PHP has issued emergency patches for two critical flaws—CVE‑2026‑109618 and CVE‑2026‑109619—each rated 9.2 on the CVSS v4.0 scale. Both bugs enable unauthenticated remote‑code execution on any PHP instance that processes web requests, and researchers have also shown that an attacker can read a worker’s memory without credentials, potentially exposing passwords, tokens and API keys. Cloudflare confirmed that it is already seeing traffic aimed at exploiting the vulnerabilities, including attempts to bypass its own defenses. PHP’s advisory stresses that applying the updates is the only complete mitigation and urges owners of internet‑facing services, especially those running Apache mod_php, to assign a remediation owner and deadline immediately.

The first flaw, CVE‑2026‑109618, is an out‑of‑memory corruption issue: when a memory‑allocation failure interrupts a vulnerable operation, PHP leaves request data only partially initialized, and the subsequent cleanup routine processes this malformed state, opening a path to code execution. The second, CVE‑2026‑109619, is a stale‑global‑state defect; after PHP frees memory, it retains references to that data, and a later request handled by the same worker can access those dangling pointers before the memory is re‑initialized, resulting in a use‑after‑free that also leads to remote execution. PHP confirmed that the exploit can fire before any application code runs.

Apache mod_php is flagged as the most urgent target, but the risk is not limited to that module. PHP‑FPM also requires the patch; although its startup routine blocks a specific out‑of‑memory attack vector, the research team demonstrated that a full session‑lifecycle remote‑code execution is still possible under certain application conditions. In addition to execution, the team proved that unauthenticated memory disclosure is feasible across all affected deployments. Qualys’ Threat Research Unit examined anonymized data from more than 10 000 customers and identified roughly 167 million PHP package installations, of which 156 million have a known version and 73 percent are exposed on internet‑facing assets. Among those, 44 million (28 percent) run supported branches (PHP 8.2‑8.5) that already have fixes available but are largely unpatched, while 110 million (71 percent) operate on end‑of‑life releases from 5.4 through 8.1 and will never receive an upstream patch. Only about 199 000 installations were updated within the first 12 hours after the disclosure.

Upstream releases that close both vulnerabilities are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Organizations that rely on distribution‑managed packages should follow their vendor’s advisory, noting that back‑ported fixes may retain older upstream version numbers. PHP 8.1 and earlier are out of regular support; limited source back‑ports exist for 7.4, 8.0 and 8.1, so users of those branches must obtain a patched build from their distro or support vendor, apply the back‑port, or upgrade to a supported line. When immediate patching is impossible, PHP recommends temporary mitigations outlined in its technical appendix, and Qualys offers additional controls such as restricting public access or isolating the vulnerable service while remediation is arranged. Qualys also provides a three‑stage response workflow—discovery, mitigation and validation—using tools like QID 45110 (PHP Server Detected) and its CyberSecurity Asset Management platform to inventory installations, flag end‑of‑life versions and prioritize internet‑exposed assets for remediation.

Qualys advises establishing a PHP discovery baseline with QID 45110, keeping the software inventory up‑to‑date and configuring InstaScan to monitor the relevant assets. Once the baseline is in place, the vendor‑provided detection QIDs can be applied to assess exposure to the PHP2Shell exploit and to verify that remediation actions have taken effect.

The company has published a comprehensive set of detection QIDs covering a wide range of Linux distributions. Examples include QID 389 120 for F5 BIG‑IP PHP vulnerabilities, QID 605 6531 for Red Hat 8.2 (RHSA‑2026:87073), QIDs 364 180‑184 for Amazon Linux 8.2‑8.5 (ALAS 2023‑2026‑3301‑3304), multiple Rocky Linux updates (e.g., QID 964 543 for PHP 8.3), SUSE advisories (QID 765 979), Debian’s CVE‑2026‑109618 update (QID 629 7246), and Ubuntu notifications (QID 687 7310‑687 7311). The list also contains generic PHP2Shell signatures such as QID 520 310 (covering CVE‑2026‑109618 and CVE‑2026‑109619) and QID 389 102 for unauthenticated multiple vulnerabilities.

InstaScan, powered by Agent Insta, continuously matches newly published vendor advisories against the existing inventory, surfacing findings for in‑scope assets within minutes of advisory processing. This real‑time matching eliminates the need for a fresh scan and lets security teams begin investigation and prioritisation while the next scheduled scan is still hours away.

Because PHP binaries can reside outside standard package locations, Qualys recommends supplementing package‑level detection with a safe validation of the PHP2Shell entry point. Using Qualys Enterprise TruRisk Management (ETM) and its TruConfirm feature, analysts first verify that the target server is running PHP, then send a benign upload request that mimics the attacker’s initial move without creating files or applying memory pressure. If PHP startup warnings appear, they indicate that the session.upload_progress entry point is reachable and that the mitigation setting session.upload_progress.enabled=0 is missing.

Remediation guidance calls for upgrading PHP to a patched version, restarting all worker processes, or disabling the session‑upload‑progress feature if it is not required. After applying the fix, teams should re‑run TruConfirm to confirm that the entry point is no longer reachable, thereby generating evidence for auditors and elevating the asset’s TruRisk score back to a safe level.

In a real‑world deployment the survey found 1,539 servers running PHP, yet only 25 of those were deemed exploitable—a ratio of just under 2 percent. Qualys’ TruConfirm AI‑driven exploit validation was credited with narrowing the list, allowing teams to focus on the handful of assets that truly matter while leaving the remaining 1,514 untouched. The tool operates on live production systems without creating files, executing code, or causing service interruptions, and it couples validation with threat intelligence and asset context to turn detection into “hyper‑prioritization.” (“TruConfirm safely identifies which ones attackers can actually reach and exploit,” Qualys marketing).

Public proof‑of‑concept (PoC) scripts for PHP2Shell have proliferated on GitHub, but the vendor warns they are demonstrations, not safe testing tools. Running a PoC against an internet‑facing host typically ties up PHP workers—some scripts hold an upload open for almost a minute, while others flood the server with oversized requests that trigger out‑of‑memory errors. The code also writes attacker‑controlled data to a real session file on disk; although the payload in the public demo is harmless, the staging mechanism mirrors what a real attacker would use and can leave residual files if the run is interrupted. Finally, the PoC deliberately walks the vulnerable memory‑corruption path, which on an unpatched build can crash a worker, and the scripts are tuned to the researcher’s lab environment rather than a production workload.

Qualys advises that PoCs belong in isolated labs: clone the target, snapshot it, and execute the exploit there. On production systems, TruConfirm can confirm that the vulnerable entry point is reachable and that the recommended mitigation is missing, all without creating files, executing code, or applying memory pressure. The vendor notes that to a web‑application firewall (WAF) or security‑information‑and‑event‑management (SIEM) system, PoC traffic appears identical to an attack, and running such code against assets you do not own will be treated as hostile activity.

For deeper visibility, Qualys’ QID 389102 detects PHP installed via the operating‑system package manager in standard Cloud Agent VM scans. On Windows hosts, enabling Qualys Deep Scan extends this detection to unmanaged PHP binaries located in custom directories, secondary drives, or other non‑standard paths. Findings are surfaced in VMDR with the full binary path, installed version, and the recommended fixed version, enabling security and IT teams to locate and remediate overlooked copies. Deep Scan is bundled with VMDR, works on Windows assets running Cloud Agent 6.2 or later, and can be tuned through inclusion/exclusion rules, scan schedules, and resource controls.

Beyond traditional servers, PHP vulnerabilities can surface in cloud‑native assets such as Amazon Machine Images (AMIs), container images, Kubernetes workloads, and serverless functions. Qualys TotalCloud and Container Security map vulnerable PHP components across these environments, correlating container registries with live containers and serverless workloads to highlight which images are actively deployed. The eBPF‑based Container Runtime Sensor provides Runtime Vulnerability Reachability, detecting vulnerable packages actually in use within running containers and linking that evidence to internet exposure and workload context, thereby helping teams prioritize and remediate the most dangerous PHP flaws.

To address PHP2Shell (CVE‑2026‑109618 and CVE‑2026‑109619) at the application layer, Qualys TotalAppSec ties application‑level exposure to the underlying infrastructure intelligence from VMDR and TotalCloud. It answers three key operational questions: which web applications and APIs expose PHP version information; which of those run on vulnerable runtimes; and how to confirm that remediation has succeeded. TotalAppSec flags exposed applications, even when the underlying runtime is not fully represented in host inventories, but it stresses that exposed version data alone is only an indicator—actual vulnerability must be verified by confirming the runtime version and patch status.

By linking TotalAppSec’s application‑level visibility with vulnerability data from Qualys VMDR and TotalCloud, security teams can pinpoint internet‑facing applications that run vulnerable PHP runtimes and rank remediation tasks by exposure and risk. After a fix is applied, the same tools can be used to rescan the applications, confirming that the externally visible PHP version information no longer reveals a vulnerable runtime and that the underlying PHP installations have been patched. This workflow moves organizations from merely spotting possible PHP2Shell exposure to actively securing the affected workloads.

Qualys supplies three QIDs that detect PHP2Shell‑related flaws. QID 520310 flags a remote‑code‑execution issue (CVE‑2026‑109618 and CVE‑2026‑109619) and is linked to VulnSigs‑2.6.728‑2. QID 533086 covers the same CVEs but uses VulnSigs‑2.6.728‑8, while QID 520404 identifies a session‑upload‑progress RCE (CVE‑2026‑115560) also tied to VulnSigs‑2.6.728‑8. These identifiers let customers scan web applications and APIs for the specific exposures.

Qualys’ new “Fightback” dashboard aggregates every PHP asset discovered in the past week, showing source‑based discovery paths, separating safe instances, and highlighting internet‑facing exposure, end‑of‑life or unpatched versions, Apache mod_php risk, and generic web‑service or header leaks. Assets are grouped by operating system, and InstaScan can surface PHP2Shell detections in under 24 hours, with status fields that track whether a finding is active, fixed, or reopened. The dashboard will be refreshed as additional CVEs and patches are released.

For the two primary CVEs (2026‑109618 and 2026‑109619), Qualys offers an interim mitigation that follows PHP’s own guidance and adds insights from its Threat Research Unit. The mitigation disables the session.upload_progress.enabled setting across all web‑facing PHP runtimes on a host, hardens related session‑handling parameters, and then restarts the PHP service automatically—manual restarts are required only if logs indicate a pending restart. Qualys has had this mitigation available for more than 12 hours, and users can trigger it via a “Mitigate Now” button on the dashboard. Because many vulnerable installations lack a cloud agent—Qualys identified 167 million PHP installs, 156 million with known versions, 73 % of which are internet‑facing and 110 million (71 %) run end‑of‑life or end‑of‑support branches—the mitigation script is also packaged in the Custom Assessment and Remediation (CAR) library of TruRisk Eliminate. Administrators locate scanner‑only hosts, flag exposed servers with QID 389102 and the unauthenticated check QID 39033, run the script from the CAR library, and then verify the configuration change. To maintain visibility while waiting for patches, Qualys Policy Audit provides an out‑of‑the‑box “Assess PHP Secure Configuration Baseline” policy that checks a series of control IDs (CIDs 32813, 32814, 32815, 32820, 32822 for CVE‑2026‑109618 and CIDs 32813, 32817, 32818, 32819 for CVE‑2026‑109619) across Linux scanners or agents and Windows agents, ensuring the recommended php.ini and PHP‑FPM settings are in place.

PHP’s upstream patches have been released, but many downstream vendors are still distributing their own updates. Until a suitable patch reaches a given environment, the focus must remain on mitigation. Where vendor patches are already available—currently Ubuntu’s PHP security updates—organizations can apply them through TruRisk Eliminate. Qualys rates the Ubuntu updates (USN‑8948‑1) with a high patch‑reliability score, indicating they are unlikely to disrupt production workloads.

The Ubuntu fix updates only the PHP userspace packages (php8.1, php8.3 and php8.5) and does not require a kernel or system‑library reboot. However, any PHP process that remains running retains the vulnerable code in memory, so every service that loads PHP must be restarted. This is especially critical for CVE‑2026‑109619, which exploits stale request state that persists when PHP workers are reused. After applying the patches, teams should rerun the relevant VMDR and TotalCloud checks, confirm that both the installed packages and the active PHP instances contain the fixes, and then rescan the affected assets to validate remediation. A step‑by‑step verification checklist is provided in the Technical Appendix under “Confirm That Remediation Is Complete.”

The two vulnerabilities share a CVSS v4.0 base score of 9.2 (AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N) and are catalogued under GHSA‑w8hw‑w9fx‑j79w (CVE‑2026‑109618) and GHSA‑6wmf‑4rv5‑p3rp (CVE‑2026‑109619). CVE‑2026‑109618 stems from an out‑of‑memory bailout that leaves request data partially initialized, leading to use‑of‑uninitialized memory during shutdown. It can be triggered with a single request when mod_php is used, and has been demonstrated to achieve remote code execution on default prefork MPM configurations. CVE‑2026‑109619 involves a heap use‑after‑free where a global request state survives after its memory is freed; exploitation requires two requests on the same worker and has been shown to work via the session‑upload‑progress path and, on PHP 8.5, via a fatal‑error‑backtrace path. Both issues are classified under CWE‑416, CWE‑755, CWE‑824, CWE‑1325 and CWE‑1419.

PHP stresses that updating is the only complete fix, but it also recommends temporary configuration changes to lower exposure. For the out‑of‑memory bug, administrators should enforce memory_limit = ‑1 via php_admin_value in FPM or Apache, set post_max_size to 8 MiB (or 32 MiB when uploads are needed) and keep upload_max_filesize below that threshold, reduce max_input_nesting_level and max_file_uploads, and apply per‑worker cgroup memory limits as an availability boundary. The guidance notes that removing the per‑request memory cap can increase the risk of resource exhaustion, so it must be balanced against available resources. For the stale‑global‑state flaw, the recommended steps are to disable session.upload_progress.enabled (= 0) before request parsing, disable fatal_error_backtraces (= 0) on PHP 8.5, set pm.max_requests = 1 in FPM pools, and eliminate any invalid or deprecated per‑request INI settings that generate diagnostics. Suppressing error output does not mitigate the underlying access‑violation risk.

The update eliminates fatal‑error and execution‑timeout conditions that could be provoked by attackers through callbacks, file uploads, imports or cleanup routines, and it repairs the root cause rather than merely extending timeout values. For PHP‑FPM deployments, the security team suggests optionally setting pm.max_requests=1 to force each worker to handle only a single request, provided the performance impact is acceptable; this is a temporary hardening step and does not replace the need for the official patch. When a patched build cannot be rolled out immediately, operators are advised to block public traffic or isolate the vulnerable service, assign a responsible owner, and set a clear remediation deadline for each affected system.

Remediation must be confirmed beyond simply installing the package. Administrators should inventory every PHP instance—including parallel branches, containerized versions, hosting‑panel packages and any PHP bundled with appliances—because the version reported by php -v may belong to a different installation than the one actually serving web requests. The correct binary, package or container image must be updated to the version listed in the vendor advisory, after which the relevant services or containers should be restarted or redeployed and checked to ensure no workers remain on the old build. Once the patched runtime is verified, temporary hardening such as a reduced memory_limit and upload restrictions should be rolled back, and the system should be stress‑tested under memory pressure, noting that the new runtime can now abort a worker at its hard memory ceiling without invoking normal shutdown handlers.

After the runtime is patched and workers are refreshed, web applications and APIs should be rescanned with Qualys TotalAppSec using QID 533086 and, where appropriate, QID 533068 to reassess exposure to the PHP2Shell exploit. The advisory warns that QID 533068 performs an intrusive check that can crash unpatched services, so it should be limited to non‑production environments or systems already confirmed as patched, and only run after a risk assessment, required approvals and within a scheduled maintenance window. For full verification, organizations are also encouraged to query the installed PHP version and patch status via Qualys VMDR or TotalCloud assessments. Finally, the release notes introduce qualys-cli-mcp, a Python‑based MCP server that lets AI assistants such as Claude, Cursor or VS Code query Qualys data directly; the tool requires Python 3.11+, a one‑time credential configuration, and a simple JSON entry to enable AI‑driven vulnerability checks.

Affected Products — All PHP installations serving web requests (Apache mod_php, PHP‑FPM, php‑cgi, FrankenPHP, LiteSpeed). Versions 5.4‑8.1 are end‑of‑life; 8.2‑8.5 are vulnerable until the fixed releases (8.2.35, 8.3.36, 8.4.27, 8.5.12).

Why It Matters for Trust & Control Assurance — The flaw tests the control objective of timely vulnerability and patch management; demonstrating that you can continuously inventory, prioritize, and evidence remediation across your stack. Capability focus: CONTROL_MAPPING.

Recommended Actions —

  • Run a comprehensive inventory of all PHP installations (e.g., Qualys QID 45110 or equivalent).
  • Prioritize internet‑facing assets, especially Apache mod_php, and assign remediation owners with deadlines.
  • Apply the upstream fixed releases for your PHP branch; for EOL versions, upgrade to a supported branch or obtain back‑ported patches from your distro.
  • Deploy the temporary mitigation session.upload_progress.enabled=0 where patching is delayed.
  • Validate exploitability safely with a non‑disruptive probe (e.g., Qualys TruConfirm) and capture evidence for audit trails.

Source: Qualys Blog – PHP Announces Critical Security Release for Two Vulnerabilities

📰 Original Source
https://blog.qualys.com/vulnerabilities-threat-research/2026/10/20/php-announces-critical-security-release-for-two-vulnerabilities ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Every gap like this maps to a control you can evidence.

The Verisq AI Trust Operations platform maps incidents to your control framework and collects the evidence continuously — so your Trust Center shows proof, not promises, when a buyer or auditor asks.

Explore the Verisq AI Trust Operations platform →