CVE-2026-109618 — PHP Memory Corruption Vulnerability
Research article
CVE-2026-109618 (PHP2Shell): Unauthenticated Remote Code Execution via PHP Memory Corruption
| CVE | CVE-2026-109618 |
|---|---|
| Vendor and product | PHP Group PHP; Siemens AMIS TS; Siemens AX4 |
| Published | November 12, 2026 09:50 UTC |
| Research cut-off | November 12, 2026 09:45 UTC |
| Sources reviewed | 4: NVD record (last modified 2026-11-05); CISA KEV catalog; FIRST EPSS (2026-11-10); 1 news report |
Executive summary
CVE-2026-109618, part of the "PHP2Shell" pair, is a critical memory-corruption flaw in the PHP interpreter that can lead to unauthenticated remote code execution and memory disclosure [1, 2]. NVD assigns a CVSS 3.1 base score of 9.8 (Critical) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Primary, nvd@nist.gov); PHP's own scorer (Secondary, security@php.net) rates it 9.2 Critical under CVSS 4.0 [1]. NVD maps multiple weaknesses including CWE-416 (Use After Free), CWE-755, CWE-824 and CWE-1325 [1]. The flaw affects PHP branches 8.2, 8.3, 8.4 and 8.5 (and per NVD's CPE, versions from 7.3.0), and is fixed in PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 [1, 3]. CISA added it to the Known Exploited Vulnerabilities catalog on 2026-10-26 with evidence of exploitation in the wild, setting a federal due date of 2026-10-29 [2]. FIRST EPSS estimates a 100% probability of exploitation activity in the next 30 days [4]. The most urgent action for defenders is to upgrade PHP to the fixed release for their branch and restart affected services (for example mod_php under Apache, PHP-FPM) so in-memory vulnerable code is cleared [3].
Vulnerability identification
| Field | Value | Source |
|---|---|---|
| CVE ID | CVE-2026-109618 | [1] |
| Vendor | PHP Group | [1, 2] |
| Product | PHP | [1, 2] |
| Component | PHP interpreter (memory handling); exact internal function not specified in reviewed sources | [1] |
| Record status | Analyzed | [1] |
| Published | 2026-10-21T14:17:09 | [1] |
| Last modified | 2026-11-05T19:17:07 | [1] |
| CVSS 3.1 (Primary, nvd@nist.gov) | 9.8 Critical, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | [1] |
| CVSS 4.0 (Secondary, security@php.net) | 9.2 Critical | [1] |
| CWE | CWE-416 (Use After Free); CWE-755 (Improper Handling of Exceptional Conditions); CWE-824 (Access of Uninitialized Pointer); CWE-1325 (Improperly Controlled Sequential Memory Allocation) | [1] |
| Related advisories | GHSA-w8hw-w9fx-j79w; Siemens SSA-166980, SSA-566435, SSA-566512 | [1] |
| Related CVE | CVE-2026-109619 (second half of "PHP2Shell") | [3] |
The weaknesses NVD maps describe memory-safety problems: a use-after-free (CWE-416) is use of memory after it has been released; access of an uninitialized pointer (CWE-824) is dereferencing a pointer whose value was never set; improper handling of exceptional conditions (CWE-755) and improperly controlled sequential memory allocation (CWE-1325) describe faulty error and allocation handling [1]. The full CVSS 4.0 vector string is present in the pack but only the 3.1 vector decomposes cleanly; the reviewed sources give the 4.0 base score as 9.2 Critical [1].
Technical background
PHP is a widely deployed server-side scripting language whose interpreter executes application code within web server contexts such as Apache mod_php or PHP-FPM worker processes [3]. In these deployments, a worker process parses untrusted HTTP input (headers, cookies, request bodies, session identifiers) and maintains in-memory state across requests. A memory-corruption flaw in the interpreter therefore sits at the trust boundary between remote, unauthenticated clients and the server process [2, 3]. The reviewed sources do not identify the specific interpreter subsystem (for example a particular parser or session routine) that contains the flaw.
Vulnerability description
CVE-2026-109618 is a memory-corruption vulnerability in PHP that, per CISA, allows unauthenticated remote code execution [2]. CISA's short description characterizes it as an out-of-memory corruption vulnerability [2]. NVD's CWE mappings indicate memory-safety defects (use-after-free, uninitialized pointer access) combined with faulty error and allocation handling [1]. Researchers cited by Qualys report that PHP worker-process memory could be exposed without authentication, potentially revealing passwords, authentication tokens and API keys [3]. The reviewed sources do not provide the detailed internal description of which function or input path triggers the corruption.
Root cause analysis
Confirmed (classification only): NVD attributes the flaw to memory-safety weaknesses — CWE-416 use-after-free, CWE-824 uninitialized pointer access — alongside CWE-755 and CWE-1325 relating to exceptional-condition and allocation handling [1]. Analyst assessment: these mappings suggest that malformed or unexpected input leads the interpreter into an error path that frees or fails to initialize memory and then uses it, corrupting process state. The precise code-level root cause, the triggering input and the affected function are not disclosed in the reviewed sources; the PHP advisory GHSA-w8hw-w9fx-j79w is referenced but its contents are not included in the pack [1].
Technical mechanics
The reviewed sources do not provide a step-by-step technical breakdown of the flaw. The following is a conceptual, defensive summary consistent with the available evidence.
Illustrative (not a confirmed exploit chain):
1. Unauthenticated client sends crafted HTTP input to a PHP-backed endpoint.
2. The interpreter enters an error/allocation path (CWE-755/CWE-1325).
3. Memory is freed or left uninitialized (CWE-416/CWE-824).
4. Subsequent use of that memory corrupts process state.
5. Outcome: information disclosure of worker memory and/or code execution.
Qualys reports a researcher honeypot recorded confirmed remote code execution together with memory leakage on Apache with mod_php on PHP 8.4.26, but notes the confirmed exploit was demonstrated in a favorable single-worker test configuration that is not necessarily representative of all real-world setups [3]. The security control that should have prevented the issue is correct memory lifecycle management within the interpreter, delivered by the fixed releases [1, 3].
Attack surface and exploitation prerequisites
| Prerequisite | Value | Basis |
|---|---|---|
| Access vector | Network (AV:N) | CVSS 3.1 vector [1] |
| Attack complexity | Low (AC:L) | CVSS 3.1 vector [1] |
| Privileges required | None (PR:N) / unauthenticated | CVSS 3.1 vector [1]; CISA [2] |
| User interaction | None (UI:N) | CVSS 3.1 vector [1] |
| Required configuration | Internet-facing or reachable PHP application | Analyst assessment from [3] |
| Attacker position | Remote client reaching a PHP endpoint | [2, 3] |
Note: PR:N, UI:N and AV:N are drawn from the CVSS 3.1 vector and CISA's description; exploitability should not be inferred from the vector alone [1, 2]. The PHP 4.0 vector string's attack-requirements details are not reliably decomposed in the reviewed material beyond the 9.2 base score [1].
Exploitation scenarios and attack lifecycle
Reported: Qualys states attackers were probing for PHP2Shell four days before a patch was available, based on Amazon Threat Intelligence observations, with early activity consisting mostly of scanning and fingerprinting using non-working exploits before escalating [3]. Delft University's Threat Intelligence Lab reportedly observed more than 50,000 exploitation attempts against PHP2Shell from over 600 distinct IP addresses in roughly 70 countries [3]. A researcher honeypot reportedly recorded confirmed RCE with memory leakage on PHP 8.4.26 under Apache/mod_php [3].
Illustrative lifecycle: an unauthenticated attacker fingerprints PHP versions via HTTP headers, sends crafted input to trigger memory corruption, and attempts to leak worker memory (credentials, tokens, API keys) or achieve code execution [3]. Defensive opportunities: block pre-patch scanning at the edge, restart worker processes after patching, and monitor for anomalous crashes or requests [3].
Impact analysis
| Dimension | Impact | Basis |
|---|---|---|
| Confidentiality | High — potential disclosure of worker memory (passwords, tokens, API keys) | CVSS C:H [1]; researcher reports [3] |
| Integrity | High — potential code execution | CVSS I:H [1]; CISA RCE [2] |
| Availability | High — memory corruption may crash workers | CVSS A:H [1] |
| Authentication | Bypassed/not required | CISA unauthenticated RCE [2] |
| Privilege boundary | Remote-to-server-process compromise | [2] |
| Business operations | Potential outage and compromise of web applications | Analyst assessment from [2, 3] |
Technically demonstrated impact (RCE plus memory leak) is reported only in a favorable single-worker test configuration; broad real-world exploitability across all setups is not established by the reviewed sources [3].
Affected products and versions
| Vendor | Product | Affected | Fixed | Source/qualification |
|---|---|---|---|---|
| PHP Group | PHP | ≥ 8.2.*, < 8.2.35 | 8.2.35 | CVE record (CNA) [1] |
| PHP Group | PHP | ≥ 8.3.*, < 8.3.36 | 8.3.36 | CVE record [1] |
| PHP Group | PHP | ≥ 8.4.*, < 8.4.27 | 8.4.27 | CVE record [1] |
| PHP Group | PHP | ≥ 8.5.*, < 8.5.12 | 8.5.12 | CVE record [1] |
| PHP | php | ≥ 7.3.0, < 8.2.35 | 8.2.35 | NVD CPE (broader lower bound than CNA) [1] |
| Palo Alto Networks | PAN-OS | ≥10.2.0<10.2.7; ≥11.1.0<11.1.4; ≥11.2.0<11.2.4; ≥12.1.0<12.1.4; ≥12.2.0<12.2.4 | 10.2.7 / 11.1.4 / 11.2.4 / 12.1.4 / 12.2.4 | NVD CPE [1] |
| Palo Alto Networks | Panorama virtual appliance | all versions | Not stated | NVD CPE [1] |
| Siemens | RUGGEDCOM APE1808 firmware | all versions | Not stated | NVD CPE; see SSA advisories [1] |
| Siemens | Spectrum Power 4/7/TG, Energy Engage, BluePlanet, AMIS TS | as listed | Not stated | NVD CPE [1] |
NVD's CPE lower bound of 7.3.0 for PHP is broader than the CNA's 8.2.* starting point; the discrepancy is noted and the authoritative PHP affected ranges and fixes are the CNA values [1]. Fixed versions for the Siemens and Palo Alto products (beyond the PAN-OS CPE values) are not fully stated in the reviewed sources; consult the referenced Siemens SSA advisories [1].
Exploitation and threat intelligence status
- In CISA KEV: yes, added 2026-10-26; federal due date 2026-10-29; CISA states evidence of exploitation in the wild [2].
- Ransomware use: Unknown per CISA [2].
- EPSS: 1.0000 (100%), percentile 1.0000 as of 2026-11-10; a statistical estimate, not direct evidence [4].
- Reported activity: pre-patch probing per Amazon Threat Intelligence; 50,000+ attempts from 600+ IPs in ~70 countries per Delft University; honeypot RCE on PHP 8.4.26 (favorable test config) [3].
- CISA has not disclosed which, if any, organizations were compromised [3].
Indicators of compromise
The reviewed sources provide no specific file hashes, domains, IP addresses, URLs or log signatures for CVE-2026-109618; they report aggregate activity (600+ source IPs, ~70 countries) but not enumerated indicators [3]. No usable IOCs are established by the reviewed sources. Any indicators, once published, go stale and must be validated before blocking.
Detection and exposure assessment
- Inventory all PHP runtimes and applications; identify the PHP version per host and whether it is internet-facing [3]. Qualys reports ~73% of identifiable installations were internet-exposed and ~71% were end-of-life, which will not receive patches [3].
- Version check: run
php -von each host to confirm the installed version against the fixed releases (8.2.35 / 8.3.36 / 8.4.27 / 8.5.12) [1, 3]. A version string below the fix indicates exposure, not proof of exploitation. - Qualys TotalAppSec provides four non-intrusive QIDs (520310, 520404, 533086, 533203) that check version indicators in HTTP headers and cookies, and two intrusive QIDs (533068, 533085) that test actual behavior such as handling of malformed session IDs; the intrusive QIDs can crash unpatched apps and should run only in QA or already-patched production via the Trending Vulnerability Intrusive Options profile [3].
- Because running processes may retain vulnerable code until restarted, rescan after patch and restart [3].
Immediate mitigation
- Restrict internet exposure of PHP applications pending patching (network segmentation, access control at the edge); this reduces the unauthenticated remote attack surface described by CISA [2]. Limitation: does not fix the flaw.
- Block or rate-limit anomalous scanning at the web edge; Qualys reports early activity was scanning/fingerprinting [3]. Limitation: motivated attackers can evade signatures.
- Prioritize by exposure: patch internet-facing and EOL installations first [3].
All measures above are compensating; follow CISA's required action to apply vendor mitigations per BOD 26-04 [2].
Permanent remediation
Upgrade PHP to the fixed release for the branch in use: 8.2.35, 8.3.36, 8.4.27, or 8.5.12 [1, 3]. After upgrading, restart affected services (for example Apache mod_php and PHP-FPM workers) so processes no longer run vulnerable code in memory [3]. The PHP advisory is GHSA-w8hw-w9fx-j79w [1]. For end-of-life branches that will not receive a fix (Qualys estimates ~71% of installations), migrate to a supported, patched branch [3]. For affected Siemens and Palo Alto products, apply the fixes in the referenced vendor advisories/CPE values (for example PAN-OS 10.2.7/11.1.4/11.2.4/12.1.4/12.2.4) [1]. Standard change controls apply: back up, schedule a maintenance window, and plan rollback. Vendor-confirmed fixes are the PHP fixed versions in [1]; restart guidance is from [3].
Workarounds and compensating controls
The reviewed sources do not document a supported configuration workaround that neutralizes the flaw without upgrading. Network restriction and edge filtering reduce exposure but leave residual risk: the interpreter remains vulnerable, and any reachable input path could still trigger corruption [2, 3]. A workaround is therefore not equivalent to applying the fixed version [1, 3].
Validation and verification
| Step | Action | Basis |
|---|---|---|
| 1 | Confirm php -v reports ≥ 8.2.35 / 8.3.36 / 8.4.27 / 8.5.12 for the branch | [1, 3] |
| 2 | Restart mod_php/PHP-FPM so processes no longer hold vulnerable code | [3] |
| 3 | Rescan the same applications after restart to confirm the fix | [3] |
| 4 | Run Qualys non-intrusive QIDs (520310, 520404, 533086, 533203); use intrusive QIDs (533068, 533085) only in QA or patched production | [3] |
| 5 | Review service health and logs for crashes post-change | [3] |
| 6 | Record evidence, owner, date and any EOL exceptions requiring migration | [3] |
Do not rely on a single check; a version string alone does not confirm the process was restarted [3].
Incident response
If exploitation is suspected, follow the organization's IR plan and CISA's forensics triage requirements under BOD 26-04 [2]. Triage and scope PHP-backed, internet-facing assets first [2, 3]. Preserve evidence (process memory, logs) before remediation. Because researchers report potential disclosure of passwords, tokens and API keys from worker memory, rotate credentials and secrets that may have been loaded by affected workers where evidence warrants [3]. Eradicate by upgrading to the fixed version and restarting services, then monitor [1, 3]. Apply applicable notification and reporting obligations. The reviewed sources do not provide forensic artifacts specific to this CVE.
Security hardening and prevention
- Maintain an accurate inventory of all PHP runtimes and versions, and reduce internet exposure of non-essential PHP endpoints [3].
- Establish a repeatable patch pipeline so future PHP vulnerabilities are inventoried, prioritized by exposure, patched/restarted, and verified by rescan — the five-step process Qualys recommends [3].
- Migrate off end-of-life PHP branches, which will not receive fixes [3].
- Defense in depth (broader): least privilege for web/worker processes, segmentation, and monitoring for process crashes and anomalous request patterns [2, 3].
Risk assessment
Technical severity is Critical: CVSS 3.1 9.8 (nvd@nist.gov) and CVSS 4.0 9.2 (security@php.net), unauthenticated, network-reachable [1]. Exploitation is confirmed in the wild by CISA KEV (added 2026-10-26) and corroborated by multiple researcher reports; EPSS is 100% [2, 3, 4]. Exposure is high given PHP's prevalence and the reported ~73% internet-facing, ~71% EOL installation base [3]. Recommended priority: emergency remediation for any internet-facing or reachable PHP service — upgrade to the fixed branch version and restart workers immediately, then verify by rescan [1, 3]. This organization-specific rating assumes PHP is deployed and reachable and is not the CVSS score. Residual risk after edge-only controls remains high because the interpreter stays vulnerable until patched [3].
Conclusion
CVE-2026-109618 ("PHP2Shell") is a critical, unauthenticated memory-corruption flaw in the PHP interpreter enabling potential remote code execution and worker-memory disclosure [1, 2, 3]. It is confirmed exploited in the wild and listed in CISA KEV [2]. Owners of any PHP deployment — especially internet-facing and end-of-life installations — must act now: upgrade to PHP 8.2.35, 8.3.36, 8.4.27 or 8.5.12, restart mod_php/PHP-FPM, and verify by rescan [1, 3]. The key evidence still needed to close the issue fully is the code-level root cause and triggering input (from GHSA-w8hw-w9fx-j79w) and concrete indicators of compromise, neither of which the reviewed sources provide [1, 3].
References
- CVE-2026-109618 record. NIST National Vulnerability Database (NVD), 2026-11-05. https://nvd.nist.gov/vuln/detail/CVE-2026-109618. Accessed 2026-11-12.
- Known Exploited Vulnerabilities Catalog: CVE-2026-109618. Cybersecurity and Infrastructure Security Agency (CISA), 2026-10-26. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-12.
- PHP2Shell and Node2Shell: Find, Fix, and Verify Across Your Web Apps and APIs. Qualys, 2026-11-12. https://blog.qualys.com/product-tech/2026/11/12/https-blog-qualys-com-misc-2026-11-10-p.... Accessed 2026-11-12.
- EPSS score for CVE-2026-109618. FIRST, 2026-11-10. https://api.first.org/data/v1/epss?cve=CVE-2026-109618. Accessed 2026-11-12.
Summary
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).
Severity breakdown
Critical · 9.2
An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
- Attack from
- the network (remotely)
- Attack complexity
- high (only works under specific conditions)
- Special conditions
- only in some setups or conditions
- Login needed
- no
- User action needed
- no
- Impact
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-416: Use After Free
- CWE-755: Improper Handling of Exceptional Conditions
- CWE-824: Access of Uninitialized Pointer
- CWE-1325: Improperly Controlled Sequential Memory Allocation
- CWE-1419: Incorrect Initialization of Resource
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP Group PHP | ≥ 8.2.*, < 8.2.35 | 8.2.35 |
| ≥ 8.3.*, < 8.3.36 | 8.3.36 | |
| ≥ 8.4.*, < 8.4.27 | 8.4.27 | |
| ≥ 8.5.*, < 8.5.12 | 8.5.12 |
CISA KEV
Exploited in the wild
PHP contains an out-of-memory corruption vulnerability that allows for unauthenticated remote code execution.
- Listed as
- PHP Memory Corruption Vulnerability
- Added to the catalog
- October 26, 2026
- Federal due date
- October 29, 2026
- Required action
- Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.
- Ransomware use
- Not known
- Forensic triage
- Required by CISA: look for signs of compromise, not just the patch
Public exploits
Exploit available
References by type
Vendor advisories
Other references
- seclists.org/fulldisclosure/2026/Oct/51
- openwall.com/lists/oss-security/2026/10/21/6
- openwall.com/lists/oss-security/2026/10/23/5
- arcticwolf.com/resources/blog/php2shell-critical-php-vulnerabilities-en…
- cert-portal.siemens.com/productcert/html/ssa-166980.html
- cert-portal.siemens.com/productcert/html/ssa-566435.html
- cert-portal.siemens.com/productcert/html/ssa-566512.html
- cert-portal.siemens.com/productcert/html/ssa-862892.html
- php2shell.delftintellab.com
- wiz.io/blog/php2shell-php-rce
- cisa.gov/news-events/alerts/2026/10/21/critical-vulnerabilities-php-req…
Affected
- PHP Group PHP
- Siemens AMIS TS
- Siemens AX4
- Siemens blueplanet 360 NX3 M6 WM OD IISX
- Siemens blueplanet 360 NX3 M6 WM OD IISX - S
Frequently asked questions
What is CVE-2026-109618?
CVE-2026-109618, part of the "PHP2Shell" pair, is a critical memory-corruption flaw in the PHP interpreter that can lead to unauthenticated remote code execution and memory disclosure. NVD assigns a CVSS 3.1 base score of 9.8 (Critical) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (Primary, nvd@nist.gov); PHP's own scorer (Secondary, security@php.net) rates it 9.2 Critical under CVSS 4.0. Weakness type: Use After Free (CWE-416).
How severe is CVE-2026-109618?
CVE-2026-109618 has a CVSS 4.0 base score of 9.2 (critical), from the CNA (php.net). An attacker without an account can exploit this over the network, without any user action, but only under specific conditions.
Is CVE-2026-109618 being exploited?
Yes. CISA lists CVE-2026-109618 in its Known Exploited Vulnerabilities (KEV) catalog, added October 26, 2026: it has been exploited in real attacks. US federal agencies must fix it by October 29, 2026.
Which versions are affected by CVE-2026-109618?
PHP Group PHP ≥ 8.2.*, < 8.2.35 (fixed in 8.2.35); PHP Group PHP ≥ 8.3.*, < 8.3.36 (fixed in 8.3.36); PHP Group PHP ≥ 8.4.*, < 8.4.27 (fixed in 8.4.27); PHP Group PHP ≥ 8.5.*, < 8.5.12 (fixed in 8.5.12).
How do I fix CVE-2026-109618?
Update to a fixed release: PHP Group PHP 8.2.35; PHP Group PHP 8.3.36; PHP Group PHP 8.4.27.
Timeline & sources
- NVD: CVE-2026-109618 — PHP Group PHP
- Qualys: PHP2Shell and Node2Shell: Find, Fix, and Verify Across Your Web Apps and APIs
- CISA advisories: Siemens Building Automation and Energy Products
- Siemens ProductCERT: SSA-166980 V1.4 (Last Update: 2026-11-16): PHP2Shell Vulnerabilities in Siemens Products
- Siemens ProductCERT: SSA-566512 V1.3 (Last Update: 2026-11-18): PHP2Shell Vulnerabilities in Palo Alto Networks PAN-OS on...
- SOCRadar: PHP2Shell Exploited by AI Agents from Day One: Inside a Credential-Harvesting Campaign
- The Hacker News: Everything Is a Web Application, Including Your Firewall
- Siemens ProductCERT: SSA-566435 V1.7 (Last Update: 2026-11-20): PHP2Shell Vulnerabilities in Siemens Software Products
References
- NVD — CVE-2026-109618
- CVE.org record
- CISA Known Exploited Vulnerabilities catalog
- GitHub Advisory Database
Related vulnerabilities & news
- CVE-2026-119159 — johndarrel Hide My WP Ghost – Security & Firewall
- Symfony Framework Allows Remote Code Execution via Inline Fragments
- Volans NGFW r5.1 SSL VPN client remote OS command injection (CVE-2026-135797)
- Cisco Flags Critical PHP Session Flaw ("phpAfterShell") Affecting Its Products
- Hydrogen Calendar Embeds Plugin Vulnerable to Stored XSS via ICS Feed