# PHP2Shell (CVE-2026-109618, CVE-2026-109619): What to Do, and When It Becomes an Incident

Source: https://truvocyber.com/blog/php2shell-cve-2026-109618-cve-2026-109619
Published: 2026-10-22
Topic cluster: Cybersecurity

> PHP2Shell is two critical PHP flaws allowing unauthenticated RCE. What to do now, when it becomes an incident, and what SOC 2, ISO 27001, GDPR and HIPAA require.

PHP2Shell is two critical flaws in the PHP engine, CVE-2026-109618 and CVE-2026-109619, that allow remote code execution without a login on PHP web servers. PHP fixed them on October 21, 2026 in versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35. Patch and restart every PHP worker now. Because exploitation attempts were seen before the patch existed, an internet-facing PHP server that was unpatched also needs an investigation, which counts as incident response under SOC 2 and ISO 27001 even when no personal data is involved.

*Last updated: October 24, 2026*

At a glance

- **CVEs**: [CVE-2026-109618](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) (memory exhaustion corrupts request state) and [CVE-2026-109619](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp) (use-after-free across requests)

- **Severity**: CVSS v4.0 9.2 (Critical) from PHP for both, with no authentication or user interaction needed

- **Fixed in**: PHP 8.5.12, 8.4.27, 8.3.36, 8.2.35 (released October 21, 2026)

- **No official fix**: PHP 8.1, 8.0, 7.4 and older (end of life, source-only backports)

- **Most exposed**: Apache with mod_php (confirmed exploitable with default settings). PHP-FPM, FrankenPHP, LiteSpeed and php-cgi are also affected

- **Disclosure**: details leaked in a Hacker News post on October 20, 2026, two days before the planned coordinated disclosure ([Huntress](https://huntress.com/blog/php2shell-leaked-critical-php-vulnerabilities)). CERT-EU told organizations to prepare for immediate patching, and PHP moved the release up to October 21 at 14:00 UTC

- **Exploitation**: attempts seen on October 17, four days before disclosure ([Amazon honeypots](https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/)), and attack traffic reported by [Cloudflare](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/) and [watchTowr](https://watchtowr.com/intelligence/php-cve-2026-109618-faq/) on October 21. No compromised organization has been named yet

- **CISA KEV**: not listed as of October 21, 2026

- **Live tracker**: [PHP2Shell incident tracker](/incidents/php2shell)

## 
![PHP2Shell_How_to_check](https://341945322.fs1.hubspotusercontent-na3.net/hubfs/341945322/PHP2Shell_How_to_check.avif)

The timeline below shows how PHP2Shell unfolded, from the first attack attempt on October 17, 2026 to the planned disclosure date.
[
![PHP2Shell timeline: attacks started before a patch existed. October 17, 2026: Amazon honeypots log an exploitation attempt, four days before disclosure. October 20, 2026: a Hacker News post reveals the flaws ahead of the embargo, and CERT-EU tells organizations to prepare. October 21, 2026 at 14:00 UTC: PHP releases emergency patches 8.5.12, 8.4.27, 8.3.36 and 8.2.35, and Cloudflare turns on WAF rules and reports attack traffic. October 22, 2026 at 11:00 ET: the original coordinated disclosure date, overtaken by the leak. Truvo Cyber, truvocyber.com.](/hubfs/blog-diagrams/php2shell-timeline-v3.webp)
](/hubfs/blog-diagrams/php2shell-timeline-v3.webp)

Exploitation attempts came four days before disclosure, so patching alone does not answer whether you were hit. Click to enlarge.

## How the two PHP2Shell flaws work

Both PHP2Shell flaws are memory-safety bugs in PHP's own runtime, so they affect any PHP application that handles web requests, whatever framework or CMS it uses. The bugs trigger while PHP is still setting up the request, before WordPress, Drupal, Laravel or custom code runs. Application logins, plugins and input validation cannot stop them.

PHP2Shell CVE
What goes wrong
How an attacker triggers it

CVE-2026-109618
When PHP runs out of memory partway through building request data, the end-of-request cleanup treats the half-built data as valid and can run attacker-influenced code
Oversized or malformed multipart form posts that exhaust memory within normal limits

CVE-2026-109619
State left over from one request (sessions, errors, objects) is reused by the next request on the same worker after its memory was freed
Session upload progress (on by default), fatal-error backtraces in PHP 8.5, and some configuration warnings

PHP rates both 9.2 on CVSS v4.0 and marks the attack complexity as high, because exploitation depends on worker reuse, memory conditions and defeating address randomization. Failed attempts tend to crash workers, which leaves traces in the logs. The [Datadog Security Labs analysis](https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/) walks through both bugs in technical detail.

The diagram below shows where in a web request PHP2Shell triggers, and why the attack completes before application-level controls start.
[
![Where PHP2Shell hits: inside PHP, before your code starts. An unauthenticated, oversized or malformed multipart POST to any PHP page passes a WAF or reverse proxy, which reduces risk while you patch but can be bypassed, and reaches the web server: Apache with mod_php (exploitable with default settings), PHP-FPM, FrankenPHP, LiteSpeed or php-cgi. The flaws trigger in the PHP runtime while the request is being set up, and attacker code executes as the web server's worker account. CVE-2026-109618: PHP exhausts memory while building the request data, and cleanup treats the half-built data as valid. CVE-2026-109619: state from an earlier request on the same worker is reused after the memory was freed, triggered through session upload progress, which is on by default. The application (WordPress, Drupal, Laravel or custom code) is bypassed: the attack completes before logins, plugins and input validation start. The fix: upgrade to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or the patched vendor package, then restart every PHP worker. PHP 8.1 and older get no official PHP release. Truvo Cyber, truvocyber.com.](/hubfs/blog-diagrams/php2shell-where-it-hits-v2.webp)
](/hubfs/blog-diagrams/php2shell-where-it-hits-v2.webp)

Both flaws fire while PHP sets up the request, so a site needs no upload form or login to be exposed. Click to enlarge.

The diagram below breaks down each bug step by step, based on the PHP advisories and the Datadog Security Labs analysis.
[
![How PHP2Shell works: two memory-safety bugs in the PHP runtime, a conceptual view based on the PHP security advisories and Datadog Security Labs. CVE-2026-109618, out of memory in the middle of one request: a multipart POST is built to use far more memory than the request's size on the wire. Before application code starts, PHP builds $_POST, and the hash table counts a new entry before copying the entry's key. That copy hits memory_limit, PHP aborts with longjmp(), and the entry is counted but left uninitialized. Shutdown still happens, because Apache mod_php always calls the shutdown step, and reads the half-built data. If attacker-controlled data fills that memory, shutdown follows a fake pointer and executes code as the PHP worker. CVE-2026-109619, stale state carried across requests on one worker: in request A, upload progress or a PHP 8.5 fatal-error backtrace stores worker-wide state that points into request A's memory. A fatal error ends request A before that state is reset, and PHP frees request A's memory while the worker-wide state still points at the freed memory. In request B on the same worker, an upload or a config warning reads the stale pointer before normal setup. The use-after-free leaks process memory, for example through the session cookie, and corrupts memory, leading to code execution. Exploitation is hard: attackers need to groom the heap, leak memory to get past ASLR, and get requests onto the same worker, and failed attempts crash workers and leave log traces. The fix replaces the longjmp() out-of-memory exit with a graceful soft limit and resets all worker-wide state between requests. Stopgaps until patching: session.upload_progress.enabled=0, fatal_error_backtraces=0 on PHP 8.5, and pm.max_requests=1 on PHP-FPM. Truvo Cyber, truvocyber.com.](/hubfs/blog-diagrams/php2shell-how-it-works-v2.webp)
](/hubfs/blog-diagrams/php2shell-how-it-works-v2.webp)

The two PHP2Shell bugs step by step, from the PHP advisories and the Datadog Security Labs analysis. Click to enlarge.

## Which PHP versions does PHP2Shell affect?

PHP2Shell affects every supported PHP branch below the October 21, 2026 releases, and every end-of-life branch.

PHP branch
Fixed version
Status

8.5
8.5.12
Supported, patch available

8.4
8.4.27
Supported, patch available

8.3
8.3.36
Supported, patch available

8.2
8.2.35
Supported, patch available

8.1, 8.0, 7.4
None from PHP
End of life. Source backports only, so the fix depends on the OS vendor or host

7.3 and older
None
End of life. Plan the upgrade

Linux distributions patch their own PHP packages and usually keep the old version number, so a distribution's PHP 8.3 or 8.2 package can be patched while still reporting an older version. [Red Hat](https://access.redhat.com/security/vulnerabilities/RHSB-2026-013), Debian, [AlmaLinux](https://almalinux.org/blog/2026-10-21-php2shell-cve-2026-109618-cve-2026-109619/) and cPanel had published updates on October 21. Check the vendor's advisory for the exact package build.

We update the [PHP2Shell tracker](/incidents/php2shell) as PHP and the Linux distributions ship new builds, so check it for the current list of fixed versions and vendor advisories.

## Where to start a PHP2Shell exposure check

Start a PHP2Shell exposure check with the PHP that serves web traffic, because the command-line PHP is often a different build. The free [PHP2Shell checker](/tools/php2shell-checker) gives a first signal from outside by reading the PHP version a site advertises. Confirm on the server with `phpinfo()` from a protected page and the package changelog for both CVE IDs, because Linux distributions patch without changing the version number. On managed hosting, ask the host in writing and keep the reply.

The [how to check for PHP2Shell](/blog/how-to-check-php2shell) post has the commands for each hosting setup, container images and a list of domains.

## What to do about PHP2Shell, step by step

PHP2Shell needs vulnerability remediation first and then, because exploitation began before the patch, an incident response check that follows the [NIST SP 800-61](https://csrc.nist.gov/pubs/sp/800/61/r2/final) phases: detection and analysis, containment, eradication and recovery, and post-incident activity. Evidence preservation comes before everything else, because patching and redeploying can wipe the logs the analysis needs. The first three steps can be finished today.

**Step 1. Evidence preservation**

- Copy web server, PHP-FPM and PHP error logs from at least October 17, 2026 to storage the web servers cannot write to.

**Step 2. Remediation**

- Upgrade to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or install the vendor package that carries the fix.

- Restart every PHP worker, because old workers keep running vulnerable code.

- Rebuild and redeploy container images, then confirm no old containers remain.

- Where patching must wait, apply PHP's partial mitigations: set `session.upload_progress.enabled=0`, set `fatal_error_backtraces=0` on PHP 8.5, cap request and multipart sizes at the web server or proxy, and turn on WAF rules from Cloudflare or another provider. [PHP's advisory](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w) calls patching the only complete fix.

**Step 3. Detection and analysis**

- Review the preserved logs for the signs in the next section, starting with internet-facing servers that ran mod_php.

- Record a finding for each server: no evidence, inconclusive evidence, or evidence of compromise, with the reasoning.

- With no evidence of compromise, close the vulnerability record with the patch evidence and the analysis notes.

- With evidence of compromise, declare an incident and make the breach determination for each law that applies, using the obligations sections below.

**Step 4. Containment, eradication and recovery (when a server was compromised)**

- Isolate the server from the network and rotate every credential it held or could read.

- Rebuild the server from a known-good image with patched PHP. Cleaning a compromised server in place can leave a backdoor behind.

- Restore data from a backup taken before the compromise and confirm the service works.

**Step 5. Post-incident activity**

- Set an upgrade date for anything still on PHP 8.1 or older, or record a formal risk acceptance with an owner.

- Compare how long remediation took with the vulnerability management policy, and add any PHP servers the inventory missed. A SOC 2 or ISO 27001 auditor will ask about both.

## What are the signs that PHP2Shell was exploited?

No confirmed indicators of compromise (file hashes, IP addresses, domains) had been published by October 22, 2026. Researchers, including [Datadog Security Labs](https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/) and the [NCSC-NL and CERT-EU repository](https://github.com/NCSC-NL/php2shell), point to behavior instead.

Sign in logs or on the host
What it suggests

A web worker (apache2, php-fpm, httpd, php-cgi) starting `sh`, `bash`, `curl`, `wget` or connecting out
**Strongest signal** of code execution. Investigate immediately

`Allowed memory size ... exhausted ... in Unknown on line 0` in the PHP error log
Memory ran out before any script ran. Consistent with CVE-2026-109618 attempts, though not proof on its own

Apache `AH00052 ... Segmentation fault` or bursts of worker crashes and HTTP 500s from one client
Failed exploitation attempts

Multipart POSTs to pages that take no uploads, or requests carrying a `PHP_SESSION_UPLOAD_PROGRESS` field
Probing of CVE-2026-109619

Very large field names or binary data in form posts
Attempts to exhaust memory

A successful exploit can return HTTP 200 and leave the worker running, so a clean-looking access log alone does not settle the question.

## Which design choices contain a PHP2Shell compromise?

PHP2Shell triggers before any application code runs, so logins, input validation and plugin updates play no part in stopping it. Once a worker is taken over, the design around PHP decides how far the attacker gets.

Design choice
Effect on a PHP2Shell compromise

**Egress filtering.** The web tier can reach only the services it needs, with no general outbound internet access
The attacker's usual next steps, a reverse shell or a payload download, fail

**Least-privilege web workers.** The PHP worker account can read only the secrets and files the application needs
Code running as the worker has little to steal

**Segmentation.** The web tier reaches data stores only on the ports and accounts the application uses
A compromised web server cannot browse the database or reach internal systems

**Immutable rebuilds.** Servers and containers are only ever replaced from versioned images
Recovery is a redeploy of a clean, patched image, and any change on a running server stands out

The same choices decide the breach question. A compromised web server that could reach no personal data is a security incident to clean up, while one holding database credentials with broad read access is a likely breach.

## Should PHP2Shell be treated as a security incident?

Treat PHP2Shell as a vulnerability to patch and, for any internet-facing PHP server that was unpatched after October 17, 2026, as a security event that needs an investigation. Running the incident response process to answer *were we exploited?* is the expected control, and it does not by itself mean a breach occurred.

The same facts lead to different answers under different rules:

Outcome of the PHP2Shell investigation
Security program (SOC 2, ISO 27001)
Privacy law (GDPR, HIPAA, PIPEDA, Law 25)

Patched, no sign of exploitation
Vulnerability closed, investigation documented as a security event
Nothing to notify

Server compromised, no personal data on it or reachable from it (for example, a marketing site turned into a crypto-miner or used to pivot)
**Security incident**: contain, eradicate, recover, document
Usually no breach, because no personal data was compromised

Server compromised, and it held or could reach personal data or PHI
Security incident
Possible **breach**. Run each law's test and its clock

Exploitation cannot be ruled out because logs are missing
Security incident, with a documented gap in logging
Assess as a possible breach on a worst-case basis where personal data was reachable

The second row is the one teams tend to miss. A compromised web server is a security incident for the company, with recovery work and evidence to keep, even if no regulator ever needs to hear about it.

Key insight

**A compromised PHP server is a security incident even with no personal data on it.**

SOC 2 and ISO 27001 expect containment, recovery and a documented record whenever a server is taken over. Privacy laws add notification only when personal data or PHI was compromised.

## What are my obligations under SOC 2 and ISO 27001 for PHP2Shell?

SOC 2 and ISO 27001 expect a documented vulnerability response and, where exploitation is possible, a documented decision on whether an incident occurred. Neither framework sets a notification deadline.

Framework
Controls in play
Evidence an auditor will expect

SOC 2
CC7.1 (detect new vulnerabilities), CC7.2 and CC7.3 (monitor and evaluate events), CC7.4 and CC7.5 (respond and recover), CC9.2 (hosting and vendor patching)
The PHP inventory, the patch ticket and its timing against policy, the event assessment, and any incident record

ISO 27001:2022
A.8.8 (management of technical vulnerabilities), A.8.9 (configuration management), A.5.25 (assessment and decision on information security events), A.5.24-A.5.28 (incident management)
The same, plus lessons learned feeding the risk register

An end-of-life PHP version with no fix is a risk to record and treat: upgrade, isolate, or formally accept the risk with an owner and a date. The [SOC 2 CC7.1 vulnerability management guide](/blog/soc-2-cc7-1-vulnerability-management), the [ISO 27001 A.8.8 guide](/blog/iso-27001-a-8-8-technical-vulnerabilities) and the [SOC 2 vulnerability risk acceptance guide](/blog/soc-2-vulnerability-risk-acceptance) cover each step.

## What are my obligations under GDPR and HIPAA for PHP2Shell?

GDPR and HIPAA apply only if the investigation finds, or cannot rule out, that personal data or protected health information was compromised. An unexploited vulnerability is not a breach under either law, although [GDPR Article 32](https://eur-lex.europa.eu/eli/reg/2016/679/oj) and the HIPAA Security Rule both expect timely patching as part of keeping systems secure.

Law
When PHP2Shell becomes a breach
Clock

GDPR
A compromised server led to access to personal data, judged with *a reasonable degree of certainty* ([EDPB Guidelines 9/2022](https://www.edpb.europa.eu/system/files/2023-04/edpb_guidelines_202209_personal_data_breach_notification_v2.0_en.pdf))
72 hours to the supervisory authority from that point, unless unlikely to result in risk. Individuals without undue delay if high risk. Document every breach (Art. 33(5))

HIPAA
PHI was accessed or disclosed without permission, presumed a breach unless a four-factor risk assessment shows low probability of compromise ([45 CFR 164.402](https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-C/part-164/subpart-D))
Individuals within 60 days of discovery. HHS and media when 500 or more people are affected

[PIPEDA](https://laws-lois.justice.gc.ca/eng/acts/P-8.6/) (Canada)
A breach of security safeguards creates a real risk of significant harm
*As soon as feasible.* Keep a record of every breach for 24 months

[Quebec Law 25](https://www.legisquebec.gouv.qc.ca/en/document/cs/P-39.1)
A confidentiality incident presents a risk of serious injury
Promptly, to the Commission d'accès à l'information and affected people. Register every incident

HIPAA is broader at the incident stage. Under [45 CFR 164.304](https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-C/part-164/subpart-C/section-164.304), even an *attempted* unauthorized access is a security incident that the Security Rule expects covered entities and business associates to identify, respond to and document.

### Not sure if PHP2Shell hit you?

Truvo scopes exposure, reviews logs and documents the decision as part of an effective security program.

[Book Your Strategy Call](/contact-us)

 

## Frequently asked questions about PHP2Shell

### Is PHP2Shell being exploited?

Exploitation attempts are confirmed. Amazon's honeypots logged an attempt on October 17, 2026, and Cloudflare and watchTowr reported attack traffic on October 21. CISA had not listed either CVE in its Known Exploited Vulnerabilities catalog, and no compromised organization had been named, as of October 22, 2026.

### Does a WAF protect against PHP2Shell?

A WAF reduces risk while patching is under way. Cloudflare enabled rules for all plans on October 21, 2026, and other vendors claim coverage, but Cloudflare has seen attackers change payloads to slip past rules. PHP states that patching is the only complete fix.

### Is WordPress affected by PHP2Shell?

Yes. PHP2Shell is in PHP itself, so any WordPress, Drupal, Magento or Laravel site running an unpatched PHP is exposed regardless of plugins or application updates. On managed WordPress hosting, the host patches PHP, so ask the host to confirm in writing.

### Does upgrading to PHP 8.2.35 fix PHP2Shell?

Yes. PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 fix both CVEs. Restart every PHP worker after upgrading, and rebuild container images, because running workers keep the old code in memory.

### Is a PHP2Shell vulnerability on our server a reportable breach?

An unpatched vulnerability alone is not a breach under GDPR, HIPAA or PIPEDA. It becomes one only if exploitation led to personal data or PHI being compromised, which the log investigation decides. It is still a security event to assess and document for SOC 2 and ISO 27001.

### What if we run PHP 8.1 or older?

PHP 8.1 and older receive no official release. Upgrade to 8.2 or newer, or confirm that the OS vendor or host has shipped a patched package, and isolate the server from the internet until one of those is done.

## A runtime flaw tests the inventory before it tests the patch

PHP2Shell rewards the teams that know where PHP runs, which version each site uses, and who patches it. From a security architecture view, PHP2Shell also tests the design around the runtime: egress, privileges and segmentation decide how far one compromised worker gets. The patch takes minutes. Finding every PHP server, preserving the logs and making a documented call on *were we exploited?* is where the work is.

If your team needs help scoping the exposure, reviewing logs or making the incident and breach determination, [Truvo's incident response team](/services/incident-response) can run it with you and leave you with the evidence your auditor and customers will ask for. The [PHP2Shell incident tracker](/incidents/php2shell) stays updated as vendors publish.
 

PHP is not the only runtime with a critical flaw this month. CVE-2026-111497 in the Brotli decoder, also called Node2Shell and HTTP2Shell, affects Node.js, .NET, Bun, Python packages and Envoy. Check your versions with the free [Brotli vulnerability checker](https://truvocyber.com/tools/brotli-vulnerability-checker), which includes a read-only self-check script for your servers.

## Sources

- [PHP advisory GHSA-w8hw-w9fx-j79w, CVE-2026-109618 (October 21, 2026)](https://github.com/php/php-src/security/advisories/GHSA-w8hw-w9fx-j79w)

- [PHP advisory GHSA-6wmf-4rv5-p3rp, CVE-2026-109619 (October 21, 2026)](https://github.com/php/php-src/security/advisories/GHSA-6wmf-4rv5-p3rp)

- [Datadog Security Labs, PHP2Shell analysis (October 21, 2026)](https://securitylabs.datadoghq.com/articles/php2shell-critical-vulnerabilities-in-php/)

- [NCSC-NL and CERT-EU, php2shell repository (October 21, 2026)](https://github.com/NCSC-NL/php2shell)

- [Amazon Threat Intelligence, PHP2Shell exploitation before disclosure](https://aws.amazon.com/blogs/security/amazon-threat-intelligence-identifies-php2shell-exploitation-prior-to-public-disclosure-in-madpot/)

- [Cloudflare, WAF protections for PHP vulnerabilities (October 21, 2026)](https://blog.cloudflare.com/php-vulnerabilities-waf-protection/)

- [watchTowr, PHP2Shell FAQ](https://watchtowr.com/intelligence/php-cve-2026-109618-faq/)

- [Red Hat security bulletin RHSB-2026-013](https://access.redhat.com/security/vulnerabilities/RHSB-2026-013)

- [AlmaLinux, PHP2Shell patched packages (October 21, 2026)](https://almalinux.org/blog/2026-10-21-php2shell-cve-2026-109618-cve-2026-109619/)

- [NIST SP 800-61 Rev. 2, Computer Security Incident Handling Guide](https://csrc.nist.gov/pubs/sp/800/61/r2/final)

- [GDPR, Regulation (EU) 2016/679](https://eur-lex.europa.eu/eli/reg/2016/679/oj)

- [EDPB Guidelines 9/2022 on personal data breach notification](https://www.edpb.europa.eu/system/files/2023-04/edpb_guidelines_202209_personal_data_breach_notification_v2.0_en.pdf)

- [45 CFR Part 164 (HIPAA Security and Breach Notification Rules)](https://www.ecfr.gov/current/title-45/subtitle-A/subchapter-C/part-164)

- [PIPEDA](https://laws-lois.justice.gc.ca/eng/acts/P-8.6/)

- [Quebec, Act respecting the protection of personal information in the private sector](https://www.legisquebec.gouv.qc.ca/en/document/cs/P-39.1)

{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [
    {
      "@type": "Question",
      "name": "Is PHP2Shell being exploited?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Exploitation attempts are confirmed. Amazon's honeypots logged an attempt on October 17, 2026, and Cloudflare and watchTowr reported attack traffic on October 21. CISA had not listed either CVE in its Known Exploited Vulnerabilities catalog, and no compromised organization had been named, as of October 22, 2026."
      }
    },
    {
      "@type": "Question",
      "name": "Does a WAF protect against PHP2Shell?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "A WAF reduces risk while patching is under way. Cloudflare enabled rules for all plans on October 21, 2026, and other vendors claim coverage, but Cloudflare has seen attackers change payloads to slip past rules. PHP states that patching is the only complete fix."
      }
    },
    {
      "@type": "Question",
      "name": "Is WordPress affected by PHP2Shell?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. PHP2Shell is in PHP itself, so any WordPress, Drupal, Magento or Laravel site running an unpatched PHP is exposed regardless of plugins or application updates. On managed WordPress hosting, the host patches PHP, so ask the host to confirm in writing."
      }
    },
    {
      "@type": "Question",
      "name": "Does upgrading to PHP 8.2.35 fix PHP2Shell?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "Yes. PHP 8.2.35, 8.3.36, 8.4.27 and 8.5.12 fix both CVEs. Restart every PHP worker after upgrading, and rebuild container images, because running workers keep the old code in memory."
      }
    },
    {
      "@type": "Question",
      "name": "Is a PHP2Shell vulnerability on our server a reportable breach?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "An unpatched vulnerability alone is not a breach under GDPR, HIPAA or PIPEDA. It becomes one only if exploitation led to personal data or PHI being compromised, which the log investigation decides. It is still a security event to assess and document for SOC 2 and ISO 27001."
      }
    },
    {
      "@type": "Question",
      "name": "What if we run PHP 8.1 or older?",
      "acceptedAnswer": {
        "@type": "Answer",
        "text": "PHP 8.1 and older receive no official release. Upgrade to 8.2 or newer, or confirm that the OS vendor or host has shipped a patched package, and isolate the server from the internet until one of those is done."
      }
    }
  ]
}
