Exploited in the wild: confirmedCISA KEV: added 26 Oct 2026CVSS 9.2 CriticalCVE-2026-109618CVE-2026-109619

Is PHP2Shell (CVE-2026-109618 and CVE-2026-109619) being exploited, and what should I do?

Yes. PHP2Shell is two critical PHP flaws, CVE-2026-109618 and CVE-2026-109619 (each CVSS 4.0 9.2), that allow unauthenticated remote code execution, and successful exploitation in the wild is now confirmed. CISA added both to its Known Exploited Vulnerabilities catalogue on 26 October 2026. Update to PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35 now, internet facing Apache mod_php servers first, then hunt for compromise. If you cannot update, CISA says take the system offline.

Added to CISA KEV on 26 Oct 2026

Updated 26 October 2026. CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue, with a 29 October 2026 due date. That date is set under CISA's BOD 26-04 and applies only to US federal agencies. It is not a UK deadline, but treat it as a strong signal of urgency. Both entries are flagged for forensic triage, so do not just patch exposed hosts: check them for compromise too (see Reactive). Known ransomware use is listed as Unknown.

Exploited in the wild: confirmed

Updated 26 October 2026. Security researchers publicly reported a confirmed remote code execution on a honeypot running Apache mod_php with PHP 8.4.26. One report dates the compromise to 24 October. The attacker used a memory leak to get past the server's memory protections, and the command ran about 1.6 ms later. Before this, from around 17 October, only scanning and failed exploit attempts had been seen.

At a Glance

Facts from PHP's security advisories, CISA and public reporting. Last updated 27 October 2026, 07:34 GMT.

From 17 Oct

Probing and scanning for the flaws begins, before public disclosure.

20 Oct

Leak of two PHP RCE flaws. PHP publishes advance notice the same evening.

21 Oct 14:00 UTC

PHP releases 8.5.12, 8.4.27, 8.3.36 and 8.2.35 with full advisories. Every version below these in each branch is affected.

22 Oct

A claim of successful exploitation is corrected the same day. Activity so far is scanning and failed exploit attempts, and attempts to drop Mirai-style malware fail.

23 Oct

PHP's 'Session upload progress' notice names a separate flaw, CVE-2026-115560, which needs an unusual combination of configuration and application code. It has no advisory, NVD record, score or fix yet. Set session.upload_progress.enabled=0. The same day, CISA adds a Sigma detection rule to its alert.

25 Oct

A 23 October claim that a government agency was breached through PHP2Shell is retracted.

26 Oct

Successful exploitation in the wild is publicly reported and confirmed: remote code execution on a honeypot running Apache mod_php with PHP 8.4.26. One report dates the compromise to 24 October.

26 Oct

CISA adds CVE-2026-109618 (memory corruption) and CVE-2026-109619 (stale internal request state) to its Known Exploited Vulnerabilities catalogue. US federal agencies must act by 29 October under BOD 26-04 (the date does not bind UK organisations), both entries require forensic triage, and known ransomware use is listed as Unknown. CISA updates its 21 October alert to match.

Now

Update internet facing Apache mod_php servers first, then every other PHP runtime, and retire unsupported PHP. If you cannot update, take the system offline as CISA advises. PHP's interim settings and a web application firewall only give partial cover. Hunt for PHP workers spawning shells and triage any host that was exposed before you patched it.

What to Do in the Next 24 Hours

Proactive on the left. Reactive on the right. Tick both tracks.

Check a Domain

Enter a domain you own or manage. We make one normal request to its home page and look for public signs of PHP. Nothing else is sent. Exact versions and raw headers are never shown.

A passive check cannot prove a server is safe. Many servers hide their PHP version, and PHP can run on paths, subdomains or servers this check does not see. Results are a starting point; confirm on the server with the steps below.

Proactive: Check Your Servers

The only reliable answer comes from the server. Work through these on every host that runs PHP.

Free Checker Scripts

Tested by the CybaVerse threat hunt team. Run them on any Linux or Windows host that runs PHP to get a clear verdict per PHP install, whether you look after your own business or your clients' estates.

Read-only by design

Both scripts read files and query package and event databases. They run a file with -v and -i only if it passes an execution guard: it must have a PHP runtime name (php, phpN.N, php-fpm*, php-cgi*, lsphp* or frankenphp), resolve to a regular file, and start with compiled program magic bytes (ELF or Mach-O on Linux and macOS, PE on Windows). Anything else, such as phpunit, phpcs, php-cs-fixer or a symlink pointing at one of them, is reported as SKIPPED (not executed) and never run. If nothing passes the guard, the verdict is UNKNOWN (exit 2). The same guard applies to folders added with --search-dir or -SearchDir and to paths you pass in. The scripts do not change configuration, restart services, write files or connect to anything. Every run ends with the exploitation status, the CISA KEV status and due date (which applies to US federal agencies only), and a reminder only (the scripts do not check these) to preserve evidence (memory, a disk image or snapshot, and logs) where feasible before you patch or rebuild, then review for new or changed cron jobs and new local users. It also prints CISA's offline advice and a reminder that patched does not mean clean. Review any script before you run it.

Verdicts

  • PATCHEDThe version is at or above the fixed release for its branch (or 8.6.0 RC4 or later), or the package changelog lists both CVE IDs (a distro backport).
  • LIKELY VULNERABLEThe version is below the fixed release, is an 8.6.0 pre-release before RC4, or is 8.1 or older, and the changelog does not list both CVEs.
  • UNKNOWNThe version can't be read, a vendor build is below the fix with no CVE evidence, only one CVE is in the changelog, or no PHP passed the execution guard (including when none was found). Check with your vendor.

Exit codes

CodeMeaning
0PATCHED: every PHP found is patched
1LIKELY VULNERABLE: at least one PHP is likely vulnerable
2UNKNOWN: at least one result is unknown, or no PHP passed the execution guard; none vulnerable
3Error: bad arguments, an unreadable input file, a missing binary or a CSV with no data rows

The result is the worst verdict across every PHP found. The log hunt is for information and does not change the exit code, so review its findings separately. MSPs and internal IT teams can use the exit code in RMM or deployment tooling to flag hosts at scale.

Know the limits

  • Verdicts rely on versions and package changelogs only. The scripts cannot confirm a patch in custom builds, vendor-bundled PHP or packages whose changelogs don't list CVEs.
  • PHP published minimal source backports for 7.4, 8.0 and 8.1. The scripts cannot detect these in custom builds and report them as LIKELY VULNERABLE, so confirm with whoever built your PHP.
  • The ini values come from php.ini and conf.d. The scripts miss per-site overrides such as FPM pool settings, .htaccess, .user.ini and IIS web.config, so check those by hand.
  • Only standard log paths are searched, up to the last 200,000 lines of each file. A clean log is not proof of safety, because a failure can happen before PHP writes anything.

Reactive: How to Hunt

Successful exploitation is now confirmed and CISA lists both flaws as known exploited, so hunt on behaviour: look for the activity that follows a successful attack on a PHP server. CybaOps can run these hunts across your estate or your clients'.

Forensic triage: patching is not enough

CISA's KEV entries for both CVEs are flagged for forensic triage, which US federal agencies must carry out under BOD 26-04. UK businesses, IT teams and MSPs are not bound by it, but should follow the same principle: if a PHP host was exposed to the internet before you patched it, do not just patch it. Check it for:

  • New or changed PHP files and web shells in web roots and upload folders.
  • Unexpected child processes, such as shells, curl or wget, started by php-fpm, Apache or mod_php.
  • Unusual outbound connections from web server and PHP workers.
  • New cron jobs, user accounts or SSH keys.

If you find anything, isolate the host, keep the logs, rebuild it from a clean, patched image and rotate the credentials it held. The hunts below cover each check, and CybaVerse can help with investigation and remediation.

CybaVerse guidance

Our own advice from the CybaVerse threat hunt team, in addition to PHP's advisories:

  • Hunt for oversized PHPSESSID cookies in responses. A session cookie far longer than your normal baseline is worth investigating.
  • If anything looks wrong, isolate the host and keep its web, PHP and system logs. Rotate the secrets it held, such as database passwords, API keys, session tokens and certificates, then rebuild it from a clean, patched image. Patching does not undo what an attacker may already have read or changed.
  • Updating WordPress, Laravel or another application does not patch the PHP runtime. Update PHP itself, or the package your vendor ships.

PHP2Shell FAQ

Short answers based on PHP's security advisories, CISA and public reporting as of 26 October 2026.

What is PHP2Shell?

PHP2Shell is the name researchers use for two critical PHP vulnerabilities, CVE-2026-109618 and CVE-2026-109619. PHP rates both 9.2 on CVSS v4.0. They let an unauthenticated attacker run code on a web server as the web worker account by abusing how PHP handles memory when a request fails. The name is the researchers', not PHP's.

Which PHP versions are affected?

Every PHP version below 8.5.12, 8.4.27, 8.3.36 and 8.2.35 in its branch, plus PHP 8.1 and older, which get no normal PHP release (only source-only backport branches). All PHP installations serving web requests are at risk, including PHP-FPM, Apache mod_php, php-cgi, FrankenPHP and LiteSpeed. PHP rates mod_php as highest risk. PHP is often bundled inside other products, so check vendor software too. Security researchers count more than 22.6 million exposed instances that are potentially vulnerable.

Is there a patch?

Yes. PHP released 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on 21 October 2026 at 14:00 UTC (15:00 BST). Linux distributions and long term support vendors received the fix in advance, so check your vendor for updated packages. PHP says there are no complete mitigations and updating is the only safe choice. After updating, review memory_limit and post_max_size: the fix adds a hard memory limit that ends the PHP process if it is reached.

What if I cannot update straight away?

CISA says: "Organizations that cannot update immediately, or that continue to use PHP 8.1 or earlier unsupported versions, should take PHP-based systems offline until they can be patched or updated." PHP lists interim settings that reduce exposure but do not make a server safe: set memory_limit=-1 administratively (for example with php_admin_value), keep post_max_size low (8M, or 32M if you need uploads), set session.upload_progress.enabled=0 in php.ini or the FPM pool, set fatal_error_backtraces=0 on PHP 8.5, enforce request size limits at the web server or proxy, then restart every worker. A web application firewall may help in the meantime, but it only gives partial cover.

Is PHP2Shell being exploited?

Yes. On 26 October 2026 security researchers publicly reported a confirmed remote code execution on a honeypot running Apache mod_php with PHP 8.4.26, and one report dates the compromise to 24 October. The attacker used a memory leak to get past the server's memory protections, and the command ran about 1.6 ms later. Before that, from around 17 October, only scanning and failed exploit attempts had been seen, and attempts to drop Mirai-style malware failed. A 22 October claim of success was corrected the same day, and a claim that a government agency was breached was retracted on 25 October. On 26 October CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue; CVE-2026-115560 is not listed. Treat any unpatched internet facing PHP as a target, update now and triage hosts that were exposed.

What does the CISA KEV listing mean?

CISA added CVE-2026-109618 and CVE-2026-109619 to its Known Exploited Vulnerabilities catalogue on 26 October 2026, which means CISA has evidence of active exploitation. The 29 October 2026 due date is set under BOD 26-04 and applies only to US federal agencies. CISA's required action reads: "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." Both entries are flagged for forensic triage, and known ransomware use is listed as Unknown. For UK businesses, IT teams and MSPs the date is not your deadline, but a KEV listing is a strong signal of urgency: patch now and check exposed hosts for compromise.

What if I run PHP 8.1 or older?

The PHP project no longer updates 8.1 and older. Some Linux distributions and long term support vendors provide backported fixes, and PHP's security team published minimal source backports for PHP 7.4, 8.0 and 8.1 for people who build from source. These are source branches, not normal releases or packages, so you have to build and test them yourself. Otherwise upgrade to a supported branch, or take the system offline until you can, as CISA advises. PHP 8.2 reaches end of life on 31 December 2026, so plan that upgrade too.

Does a clean result from the checker mean I am safe?

No. The checker only reads what a site shares publicly on its home page. Many servers hide the PHP version, and PHP can still run on other paths, subdomains, admin panels or behind a proxy or CDN. Always confirm on the server itself.

What does the checker send to my site?

One normal web request for the home page, over HTTPS first and then HTTP, the same as a browser visit. It sends no exploit code or attack traffic, and IP addresses and private or internal names are refused.

What did PHP announce on 23 October 2026?

A 'Session upload progress' notice naming a separate remote code execution flaw, CVE-2026-115560. It is PHP's only statement on it: there is no advisory, NVD record, score or fix yet. It only affects applications that set session.serialize_handler to php_binary or php_serialize and then switch it to php with ini_set() before session_start(), with session upload progress still on. PHP plans to fix it in the next regular release rather than an out-of-band one. Set session.upload_progress.enabled=0 until then. If you already applied that setting from the CVE-2026-109619 advisory, keep it in place. It leaves no log signal, so the checker scripts only flag the risky configuration.

What should I do if a PHP server looks compromised?

Isolate the host and keep its logs. Rotate the secrets it held, such as database passwords, API keys and session tokens, and rebuild it from a clean, patched image. Updating PHP on a compromised host does not remove an attacker who is already in. CybaVerse can help with the investigation and remediation.

Detect and Remediate PHP2Shell Across Your Estate

CybaOps finds vulnerable PHP across every system you look after, whether that's your own business or your clients'. UK-based analysts monitor alerts 24/7, run hunts like the KQL and Sigma rules above and act on pre-approved response actions, and CybaOps drives remediation through to a verified fix, so proactive remediation and reactive hunting happen in one place.