Home › Intelligence › Brief
VULNERABILITY BRIEF🔴 Critical Vulnerability

Critical PHP2Shell RCE Vulnerabilities (CVE‑2026‑109618 & CVE‑2026‑109619)

Unit 42 disclosed two critical PHP remote‑code‑execution vulnerabilities (CVE‑2026‑109618 and CVE‑2026‑109619) that affect all supported PHP versions. The flaws can be weaponized through out‑of‑memory error handling, and telemetry shows over 22 million exposed instances. Organizations must patch immediately and capture remediation evidence to meet audit and trust requirements.

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

Critical PHP2Shell RCE Vulnerabilities (CVE‑2026‑109618 & CVE‑2026‑109619)

What It Is

Unit 42, the threat‑research arm of Palo Alto Networks, warned on October 29 2026 that two newly disclosed PHP flaws—identified as CVE‑2026‑109618 and CVE‑2026‑109619 and collectively dubbed “PHP2Shell”—carry a critical severity rating of 9.2 on the CVSS 4.0 scale and enable remote code execution. The advisory urges organizations to consult the PHP Group’s security bulletin and apply the forthcoming patches without delay.

The first vulnerability, CVE‑2026‑109618, stems from improper handling of out‑of‑memory (OOM) conditions via the longjmp() function, which leaves request‑level memory uninitialized and can be triggered reliably to execute attacker‑supplied code. The second, CVE‑2026‑109619, also involves longjmp() error handling but leaves global pointers referencing freed memory; subsequent requests can read or branch on these dangling pointers, allowing arbitrary code execution. Both issues affect core PHP components such as the execution engine, session management, and process managers.

Telemetry from Palo Alto’s Cortex Xpanse platform indicates that more than 22.6 million web servers worldwide expose themselves to these flaws. Exploitation has been observed in the wild, notably against PAN‑OS management interfaces that were inadvertently reachable from the internet. Dream Research reported a campaign that combined PHP2Shell with a Linux kernel privilege‑escalation bug to obtain root access, and Unit 42 independently confirmed the attacker’s tooling and outcomes. Only a tiny slice of the global install base—approximately 0.02 percent—had internet‑facing management interfaces, and each affected customer has been contacted directly.

PHP issued patches on November 19 2026 covering 18 security issues, including the two critical PHP2Shell bugs. The maintainers noted that successful exploitation generally requires non‑default configurations. Palo Alto Networks advises administrators to “remove public internet access to management interfaces” and to restrict access to trusted internal IP ranges while applying the PAN‑OS fixes that break the exploit chain. Customers who have installed the patches are no longer vulnerable. Protection against the flaws is built into a suite of Palo Alto products—Advanced WildFire, Cortex XDR, XSIAM, Prisma Cloud, Next‑Generation Firewall with Advanced Threat Prevention, among others—and Advanced Threat Prevention signatures specifically detect PHP2Shell activity. Unit 42 also offers tailored adversary intelligence, incident‑response assistance, and pre‑built hunting queries to help organizations identify any signs of exploitation.

The rule set first narrows the field by discarding activity tied to typical web‑server binaries and PHP runtimes—processes whose names match patterns such as apache2, httpd, php‑fpm, php‑cgi (including optional “.cagefs” suffixes), php‑fcgi, sw‑engine, frankenphp, lsphp, lshttpd, litespeed, and their Windows equivalents ending in .exe. It also excludes cases where a w3wp.exe parent spawns common shells (cmd.exe, powershell.exe, pwsh.exe), and filters out usernames that are clearly service accounts (e.g., www‑data, apache, nginx, wwwrun, iusr) unless the parent process is an interactive login shell like sshd, screen, tmux, or similar. Known‑good monitoring tools and hosting‑panel paths—such as Nagios plugins, cPanel, Plesk, DirectAdmin, ISPConfig, Virtualizor, RichDocumentsCode, phpSysInfo, LibreNMS, Zabbix, and certain ADP binaries—are also removed from consideration.

From the remaining events the engine derives a “tool” identifier by stripping any “.exe” suffix from the executable name, then captures the first command passed to a sh ‑c invocation. If that first command ends with the same name as the tool and the overall command line follows a pattern of piping output into a text‑filter utility (grep, awk, cut, sed, wc, head, tail, sort, tr), the activity is flagged as a scripted lookup; otherwise it proceeds to the next stage of analysis.

The detection logic then assembles a comma‑separated list of “signals” that describe the observed behavior. Reconnaissance commands—such as whoami, hostname, ifconfig, netstat, ss, arp, route, w, last, getent, lsb_release, lscpu, printenv, env, getcap, systeminfo, ipconfig, nltest, tasklist, quser, and various uname or id invocations—are marked as “recon”. File‑download activity is captured when tools like curl (with ‑o or ‑‑output flags, remote‑name, or redirection to a file), wget (excluding output to /dev/null or localhost), tftp, fetch, certutil, bitsadmin, or PowerShell/PWSh commands that invoke DownloadString, DownloadFile, Invoke‑WebRequest, iwr, WebClient, or Start‑Bitstransfer appear, provided the destination is not /dev/null or a loopback address. A “staging” signal is added when chmod is used to make a file executable inside temporary locations such as /tmp, /var/tmp, /dev/shm, or /run/shm. Executables launched from those writable or memory‑backed directories, from /proc/self/fd, memfd, or marked as “(deleted)”, generate a “writable_exec” flag.

Separate categories capture more advanced techniques: any command line that contains typical reverse‑shell constructs—netcat/ncat, socat, mkfifo, bash ‑i, socket.socket, fsockopen, pty.spawn, or direct use of /dev/tcp or /dev/udp—triggers a “revshell” signal; piping remote content straight into an interpreter (e.g., curl or wget output piped to sh, bash, python, perl, or php) yields a “pipe_to_shell” flag. Obfuscated execution is flagged when base64 decoding, frombase64string, large base64 literals, OpenSSL base64‑decode, or xxd‑r commands are detected, resulting in an “encoded” signal. Finally, persistence‑related actions—such as editing crontabs (excluding simple listings), writing to authorized_keys via redirection or tee, copying or moving files into that location, and similar backgrounding techniques—are recorded under a “persistence” category.

The hunting query is designed to surface post‑exploitation command execution that occurs inside a PHP web server or worker process. It is not limited to CVE‑2026‑109618 or CVE‑2026‑109619; instead it can flag activity stemming from any web‑application vulnerability, though analysts are warned that the rule may generate false positives and should be cross‑checked against the expected behavior of the hosted applications.

The search runs case‑insensitively against the xdr_data dataset, limiting results to events where event_type equals PROCESS, event_sub_type equals PROCESS_START, and the action_process_image_name field is populated. It extracts timestamps, host identifiers, usernames, image names, command‑line strings for both the actor and the action processes, and the originating event ID, then normalises all textual fields to lower case.

Anchoring logic treats any process whose image name matches common PHP workers—such as apache2, httpd, php‑fpm, php‑cgi, php‑fcgi, sw‑engine, frankenphp, lsphp*, lshttpd, litespeed, xampp‑control, wampmanager, laragon, or de.appsolute.mampprohelper (with optional .exe)—as the causality parent. It also recognises shells launched directly under an IIS w3wp.exe parent when the child image is cmd.exe, powershell.exe or pwsh.exe, and it includes service accounts like www‑data, apache, nginx, wwwrun, iusr or any name containing “iis apppool” provided the parent is not an interactive login session (e.g., sshd, screen, tmux, login, mosh‑server, dropbear).

To reduce noise, the query explicitly excludes known benign workloads and tooling paths, filtering out command lines that reference Nagios plugins, cPanel, Plesk, DirectAdmin, ISPConfig, Virtualizor, RichDocumentsCode, phpSysInfo, LibreNMS, Zabbix, or scripts under /adp/ or /local/bin/uminfo. It also removes Phusion Passenger helper commands (e.g., id, uname, hostname, env, passenger‑config system‑metrics, passengeragent spawn, spawnpreparer, envsetupper, rack‑preloader.rb, passenger_ruby_wrapper) and the default RHEL /etc/profile invocations of id or hostname, as well as generic bash login shells.

Scoring is applied to three families of indicators. Persistence‑related patterns look for copying of .ssh/id_*.pub into authorized_keys, user creation commands, background execution via nohup or setsid, scheduled tasks via schtasks /create, service enablement with systemctl enable, or immutable attribute changes via chattr +i. Interpreter one‑liners are flagged when command lines invoke python, perl, ruby, node(js), lua, or php with a ‑c or ‑r script argument, while explicitly ignoring version‑probe calls such as phpversion or extension_loaded. Credential‑access signatures capture reads of cloud or container secrets, including AWS credentials/config files, aws_secret_access_key, aws_session_token, Azure client secrets, GCP metadata endpoints (169.254.169.254, metadata.google.internal), Kubernetes service‑account tokens, Docker config files, and any use of cat/head/tail/grep on .env files.

After normalising the data, events are bucketed into one‑hour windows per host, PHP worker, and account. For each bucket the query counts total events, distinct reconnaissance tools, and aggregates the raw signals, command lines, and the first event ID. An all_signals string is built from the collected signals, and detection thresholds are applied: a single standalone signal (e.g., revshell, pipe_to_shell, writable_exec) triggers an alert; three or more distinct reconnaissance tools also trigger; or a combination of at least one recon tool plus any follow‑on scored signal such as download, staging, encoded, persistence, interpreter, or cred_access will raise a finding. The final expression evaluates to 1 when the conditions are met.

The detection logic first isolates the initial command run in a shell—bash, dash, or ksh—by applying a regular‑expression extraction to the actor_process_command_line field. If the extracted command ends with a known tool name, the rule flags the event for further analysis; otherwise it proceeds to evaluate the full command line for a series of characteristic patterns.

A series of “signals” are then generated based on the presence of specific tools or command‑line constructs. Reconnaissance activity is scored when the command invokes utilities such as whoami, hostname, ifconfig, netstat, ss, arp, route, lsb_release, lscpu, env, systeminfo, ipconfig, tasklist, quser, uname (with kernel‑related options), id (excluding simple ‑u/‑g flags), ip (with address or routing sub‑commands), ps (with common listing flags), net/net1 (with user or group queries), cat targeting system files (e.g., /etc/passwd, /etc/shadow, /proc/version), find searching for set‑uid/set‑gid bits, or sudo with the ‑l option. File‑transfer activity is flagged when tools such as curl (with ‑o or ‑‑output or redirection), wget (excluding output to /dev/null or stdout), tftp, fetch, certutil, bitsadmin, powershell, or pwsh are used to download data to a non‑temporary location. A “staging” signal is raised when chmod sets executable bits on files under /tmp, /var/tmp, /dev/shm, or /run/shm. Separate “standalone” signals capture execution of binaries from writable or memory‑backed directories (e.g., /tmp, /var/tmp, /dev/shm, /run/user, /proc/self/fd, /memfd, or deleted images), reverse‑shell constructs (including /dev/tcp, nc/ncat/netcat, socat, mkfifo, interactive bash/sh, or socket‑related calls), and direct piping of remote content into an interpreter (e.g., curl or wget output piped to bash, sh, python, perl, or php).

Additional scoring rules detect encoded or obfuscated execution by matching base64‑decode pipelines, OpenSSL encryption/decryption calls, or xxd hex‑dump patterns. Persistence mechanisms are identified through crontab modifications (excluding simple listings), writes to authorized_keys (not involving a copy from /.ssh/id_*.pub), creation of new user accounts via useradd/adduser, backgrounding of temporary binaries with nohup or setsid, scheduled‑task creation via schtasks, registry Run‑key modifications, systemd unit installations (including user‑level units), and immutable attribute changes via chattr + i. Inline interpreter one‑liners are flagged when command lines invoke python, perl, ruby, node, lua, or php with ‑c, ‑e, ‑r options, while explicitly excluding benign version or feature probes. Finally, any access to cloud or container credentials—such as reads of .aws/credentials, .aws/config, AWS secret keys, Azure client secrets, GCP metadata endpoints (169.254.169.254, metadata.google.internal), Docker config files, or environment files ending in .env—is recorded as a “cred_access” signal.

The detection logic pulls raw threat logs from Palo Alto Networks’ next‑generation firewalls, filtering for entries marked as “vulnerability” that originated outside of internal address spaces (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and that were not destined for zones labeled internet, untrust, outside, external, wan, or similar. It then isolates records whose threat ID contains “543004” or whose name matches patterns such as php, multipart, upload.progress, longjmp, or the specific CVE identifiers CVE‑2026‑109618 and CVE‑2026‑109619. The query aggregates events into one‑hour buckets per host, PHP worker and account, counting total hits, distinct source IPs, and enumerating signals like “revshell”, “pipe_to_shell”, “writable_exec”, as well as any recon tools observed.

Palo Alto Networks advises customers to activate a suite of mitigations for the two PHP flaws. Unit 42’s Continuous Frontier AI Defense service offers continuous discovery of hidden exposures, real‑world exploit validation, and prioritized virtual‑patch guidance. Through Unit 42 Threat Intel Services and its Deep and Dark Web Service, organizations can receive bespoke adversary intel, analyst consultations, and exposure tracking. The company also provides a global incident‑response hotline, with toll‑free numbers for North America, the UK, Europe‑Middle East, Asia, Japan, Australia, India, and South Korea.

Machine‑learning models in Advanced WildFire have been refreshed to recognize indicators tied to the chained PHP‑and‑kernel exploit chain. Cortex XDR and XSIAM deliver multilayered post‑exploitation defenses and inventory vulnerable PHP versions across endpoints, on‑prem and legacy servers. Cortex Cloud and Prisma Cloud scan code, container registries and runtime instances for vulnerable PHP builds, while the Cortex CLI can be embedded in CI/CD pipelines to block insecure images before they reach production. Cortex Xpanse, when the “PHP Attack Surface” rule is enabled, surfaces publicly exposed devices and feeds findings into the Threat Response Center or Expander incident view, with additional visibility for XSIAM customers using the ASM module.

The Next‑Generation Firewall’s Advanced Threat Prevention Plus subscription has been applying Frontier Virtual Patching since 10:21 p.m. PT on October 20 2026 via Threat ID 543004, and the standard Advanced Threat Prevention signatures have been active since October 21 2026 as outlined in Palo Alto’s security advisory. Device Security extends similar protections to OT and IoT environments, offering deep protocol visibility and adaptive enforcement. Supplemental documentation includes the “Impact of Critical Vulnerabilities in PHP on Palo Alto Networks Products” advisory, a Lee Klarich briefing on exposed PHP instances, the official PHP advisory, and Dream Research’s report that the chained PHP2Shell exploit compromised 25 servers, among them U.S. government systems. The advisory was refreshed on October 21 2026 at 9:30 a.m. PT to add the Palo Alto advisory and at 1:00 p.m. PT to revise the product‑protection details.

The brief was revised several times in October and November 2026. On Oct. 22 at 4:30 p.m. PT, Palo Alto Networks added product‑protection details for Advanced Threat Prevention, Cortex Cloud and Prisma Cloud and performed light copy‑edits. The next day, Oct. 23 at 12:30 p.m. PT, the update introduced information on post‑exploitation activity using agentic AI and on Managed Threat Hunting queries. A later correction on Oct. 25 at 2:15 p.m. PT retracted the Oct. 23 amendment. On Oct. 29 at 11:00 a.m. PT, the brief was expanded to describe a campaign that chained the PHP2Shell exploit with a Linux kernel privilege‑escalation flaw to obtain root access on PAN‑OS management interfaces that were exposed to the internet. Finally, on Nov. 19 at 2:02 p.m. PT, the executive summary was updated to note the discovery of 18 additional PHP vulnerabilities.

The Oct. 29 addition detailed how attackers first leveraged PHP2Shell—a web‑shell that can be dropped through the newly disclosed CVE‑2026‑109618 and CVE‑2026‑109619 flaws—to gain code execution on vulnerable PHP sites. After establishing footholds, the threat actors exploited a separate Linux kernel privilege‑escalation vulnerability, allowing them to elevate privileges to root and then pivot onto PAN‑OS management interfaces that were publicly reachable. This chaining of exploits enabled full control of the firewall management plane, bypassing typical network segmentation.

In the Oct. 25 update, Unit 42 clarified that earlier observations of post‑compromise activity, initially thought to be linked to the PHP2Shell flaws, actually involved an attack against a European government agency that ran a vulnerable PHP application. Researchers had presumed the initial access stemmed from the PHP2Shell CVEs, but the team could not verify that the breach originated from those specific vulnerabilities, prompting the retraction of the Oct. 23 statement.

The brief’s metadata now includes the tags CVE‑2026‑109618, CVE‑2026‑109619, PHP2Shell and Threat Research Center. The executive summary’s new line about the 18 newly discovered PHP flaws underscores that the full scope of affected versions and potential impact remains under investigation.

Why It Matters for Compliance & Audit Readiness

These flaws bypass traditional perimeter controls, demanding continuous monitoring of web‑server configurations and evidence of timely patch application to maintain a defensible audit trail.

Recommended Actions

  • Apply the PHP 8.2+ patches released on 19 Nov 2026 for CVE‑2026‑109618 and CVE‑2026‑109619.
  • Immediately remove public internet access to management interfaces and restrict them to trusted internal IP ranges.
  • Deploy Advanced Threat Prevention signatures or virtual‑patching controls to detect exploitation attempts.

Source: https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/

📰 Original Source
https://unit42.paloaltonetworks.com/cve-2026-109618-cve-2026-109619/ ↗

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

From the Verisq platform · Trust Operations

Answer one control objective. Answer ten frameworks.

The Verisq Common Framework is a spine of 84 control objectives that SOC 2, ISO 27001, NIST CSF, CMMC, HIPAA, PCI DSS, HITRUST, GDPR, ISO 42001 and NIST AI RMF map onto — each graded honestly. Satisfy an objective once and every framework that recognizes it lights up at its real strength.

See how the Verisq Common Framework works →