HomeTech NewsCybersecurityPHP2Shell: Honeypots Log 35 Confirmed RCEs, but No Victim Breach Yet

PHP2Shell: Honeypots Log 35 Confirmed RCEs, but No Victim Breach Yet

Latest, 29 October: Palo Alto Networks says PHP2Shell is being actively exploited against PAN-OS firewall management interfaces exposed to the internet, and its Unit 42 team says it has verified an attack chain that added a Linux kernel flaw to gain root. No affected organisation has been named. For PHP itself, the fixes in 8.5.12, 8.4.27, 8.3.36 and 8.2.35 remain the only complete remedy, and the upload-progress mitigation still covers the third, unpatched flaw, CVE-2026-115560. The running account below is kept in date order.

PHP’s security team has given administrators a deadline and little else to go on. Fixes for two critical vulnerabilities in the language, each rated 9.2 on version 4.0 of the CVSS severity scale, are scheduled for 14:00 UTC (15:00 BST) on Wednesday 21 October, the team announced on its mailing list on Tuesday evening.

PHP has not said which versions are affected, what the flaws allow or which releases will carry the fixes; its news archive entry says full details, affected versions and fixed versions “will be published with the release”. What it has said is that the date could move forward: “We reserve the right to release earlier if details of either vulnerability become public, or if we see evidence of active exploitation in the wild.”

Update 10, 29 Oct: Palo Alto says attackers are using PHP2Shell against its firewalls

PHP2Shell is now being used against a major security vendor’s products. An update to Palo Alto Networks’ Unit 42 threat brief on 29 October says the flaws “are being actively exploited against PAN-OS management interfaces that are exposed to the internet”. The company’s security advisory says the issue affects only the management web interface of PAN-OS firewalls and Panorama, and that customers who have applied its fixes are not affected.

Unit 42 says Dream Research reported a campaign in which attackers chained PHP2Shell with a Linux kernel privilege-escalation flaw to gain root access, and that it “has independently verified the same attacker’s tooling and confirmed the reported results”. CISA has given federal agencies until 31 October to patch one such kernel flaw, Fragnesia, which its catalogue says can be chained with PHP2Shell. Palo Alto says about 0.02% of its installed base had internet-facing management interfaces and was at high risk, and that it has contacted each of those customers. No affected organisation has been named.

Update 9, 27 Oct: CISA lists both PHP2Shell flaws as exploited and sets a Thursday deadline

The US Cybersecurity and Infrastructure Security Agency (CISA) added both PHP2Shell flaws, CVE-2026-109618 and CVE-2026-109619, to its Known Exploited Vulnerabilities catalogue on Monday 26 October. A listing is CISA’s formal finding that a flaw is being exploited in attacks. Federal civilian agencies now have until Thursday 29 October to apply PHP’s fixes or mitigations under Binding Operational Directive 26-04, or stop using the product if they cannot. Both entries also point agencies to CISA’s forensic triage requirements, the part of the directive that sets out when they must check whether attackers got in before the patch went on.

CISA has not said what evidence prompted the listing, and it names no victims; both entries record ransomware use as “Unknown”. Its announcement calls such flaws “a frequent attack vector for malicious cyber actors” and says that although the directive binds only federal agencies, it encourages every organisation to put KEV entries first. The listing came two days after the honeypot attacks described in Update 8. For everyone else the remedy has not changed: PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. The third flaw, CVE-2026-115560, is not in the catalogue, and PHP’s upload-progress mitigation remains the only defence against it.

Update 8, 26 Oct: honeypots record the first confirmed PHP2Shell code execution

Five days after the fixes, a PHP2Shell attack has been documented running commands on a server for the first time, though the servers were decoys. Adel Karimi, detection and response lead at Perplexity, has published evidence on GitHub showing that attackers started 35 shells on three of his honeypots, disposable PHP servers set up to attract attacks, on 24 October. “ok, this might be the first publicly documented, validated PHP2Shell RCE in the wild,” he wrote on X at 21:01 UTC (22:01 BST) that evening.

The targets ran PHP 8.4.26, the release just before the fix, under Apache with mod_php, the setup PHP itself rated most at risk. Karimi’s report links each shell to a captured request: 35 starts of /bin/sh directly under Apache worker processes, between 15:35 and 18:57 UTC, from two source addresses. Each attack used four requests: two to exhaust PHP’s memory, one that made the server leak 819,200 bytes of its memory in an oversized session cookie, and a final one adjusted to the memory addresses that leak revealed. The report says that matches the “published leak-guided ASLR technique” rather than anything new, and that the traffic “closely matches the public HTTP-only PoC family”. It ties the chain to CVE-2026-109618 and says its records “do not establish use of a distinct CVE-2026-109619 path”. On 26 October Karimi added the packet captures and process logs for every case.

Others who had been waiting for proof accepted it. “This is by far the highest quality confirmation of in-the-wild php2shell exploitation I’ve seen so far,” Expel’s Marcus Hutchins wrote on X. Until then, activity had been “limited to scanning, fingerprinting, and use of non-working exploits, with no known compromises”, according to Dataminr’s Threat Research and Cyber Engineering team, as quoted by BleepingComputer, which reported the findings on Monday.

The attackers got a shell on a decoy and little else

What the attackers did with the shells was check that they worked. They ran id, tried to write proof files, and tried to call back to their own servers with curl, wget or PHP. The web root was read-only, wget was not installed, and the report says “no downloaded second-stage file was observed”. No real organisation is named or known to have been breached. Karimi also warns that he chose an “intentionally favorable” single-worker setup, and that his results are “not a measurement of exploit reliability on other worker counts, PHP builds, or applications”. Neither CVE was in CISA’s Known Exploited Vulnerabilities catalogue on Monday morning; its latest edition is dated 23 October.

Public exploit code now has a proven route to a shell

The evidence undercuts the comfort taken from earlier failures. Sansec said on 22 October that the public exploits fail against PHP’s default settings; Karimi’s attackers used tooling close to that public code and still got a shell on mod_php with a normal 128 MiB memory limit. That does not mean every unpatched server is open, and the single-worker setup may have made the attack easier than it would be on a busy production site. It does mean defenders now have something concrete to hunt for: the report lists the request sequence, body hashes and the tell-tale sign of a shell started by an Apache worker running as uid=33. The advice has not changed since PHP’s first release notes: update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, and upgrade anything older. As the 32 UK government services taken offline last week showed, the cost of waiting is already being paid in downtime.

Update 7, 23 Oct: PHP flags a third flaw, but the PHP2Shell mitigation already covers it

PHP has disclosed a third remote code execution flaw, CVE-2026-115560, and is not rushing a fix. In an informational advisory on php.net on 23 October, the PHP team says: “We suggest you set session.upload_progress.enabled=0 until the next regular bugfix release, to fully protect from an unlikely RCE vector.” That is the same setting PHP gave as a mitigation for CVE-2026-109619, one of the two PHP2Shell bugs, and the advisory adds: “If you applied it then, keep it in place and no further action is needed.”

Only a rare session setup is exposed

According to PHP, “The issue can only occur under an unusual combination of configuration and application code.” An application has to set session.serialize_handler to php_binary or php_serialize in its configuration, then switch it to php at runtime with ini_set() before calling session_start(), with session upload progress still enabled. “Applications that never change the serialize handler at runtime can keep the feature enabled,” it says. PHP has published no severity score or list of affected versions, and says it “will publish a full advisory for CVE-2026-115560 with the next release”. No GitHub advisory or NVD entry exists for the CVE yet, and no source has reported attempts to exploit it.

Turning off upload progress is the simplest fix

Upload progress keeps coming up for a reason. PHP’s GitHub advisory for CVE-2026-109619 notes that the feature “is enabled by default, and no application call to session_start() is required”, and suggests it “might be prudent” to leave it off even after patching, “as more attackers try to find flaws in this hardly-used and hardly-tested feature.” Switching it off in php.ini or the server configuration and restarting every worker fully protects against the new bug, PHP says. For CVE-2026-109619 it blocks only the confirmed session path, so updating is still required.

PHP chose to disclose before a fix was ready and attached a workaround. By contrast, the unpatched Linux kernel reports Trend Micro’s ZDI copied to public lists this week, apparently by accident, came with no patch. The advisory also follows Node.js’s fixes for four high-severity flaws earlier this month. The advisory does not change the PHP2Shell picture: the 8.5.12, 8.4.27, 8.3.36 and 8.2.35 releases are still the only complete fix for the two critical bugs, and, as of 23 October, no confirmed compromise had been reported. As 32 UK government services found, precautionary outages can still cause disruption.

Update 6, 23 Oct: attempts fail and a Mirai botnet is stopped, but patch now

Two days on, the fix has not changed and is still missing from most servers. PHP’s patched releases — 8.5.12, 8.4.27, 8.3.36 and 8.2.35 — remain the only complete remedy, and anything on PHP 8.1 or older needs upgrading to a supported branch or a vendor backport. Qualys, which analysed anonymised data from 12,000 of its customers, says only 199,000 PHP instances were patched within twelve hours of disclosure, and that roughly 110 million instances — 71% of those with a known version — run end-of-life PHP from 5.4 to 8.1 that will mostly never get an upstream fix. Another 44 million run supported branches that simply have not been patched.

The reassuring part, as of 23 October, was that the attacks were still failing. Sophos says attackers tried to use PHP2Shell to install Potassium, which it believes is a variant of the Mirai botnet; the attempt it analysed was stopped before the malware reached the target. The firm corrected an earlier update that had reported a successful exploitation, saying its telemetry now shows scanning and a small number of failed attempts and “there is no evidence of a successful compromise due to these vulnerabilities”. SecurityWeek reported that Hunt.io, Arctic Wolf and Wordfence describe the same picture — attempts and tooling, but no confirmed breach — and that “no successful in-the-wild compromise has been confirmed so far”.

Sansec, which on release day expected mass exploitation within minutes, walked that back in a 22 October update, saying an attack “needs specific knowledge of the target server and specific conditions on it” and that the publicly available exploits fail against a PHP installation running default settings.

The exception is a reason not to relax. VulnCheck says it has built an exploit for CVE-2026-109618 that reaches code execution on x86-64 systems with ASLR enabled and PHP error display turned off — the recommended production setup — defeating a memory protection that researchers had treated as a major barrier. It is keeping the exploit to its Initial Access Intelligence customers and says it is “not aware of any other public or commercial exploit that achieves RCE on multiple versions of PHP in production configurations”, though it expects that to change.

As of the morning of 23 October, neither CVE had been added to CISA’s Known Exploited Vulnerabilities catalogue. Much of the disruption so far has come from precaution rather than compromise, as when 32 UK government services were taken offline while patches went on. The lesson defenders are drawing is the one PHP gave at the outset: the difficulty of writing a working exploit is no substitute for patching, and the real exposure now is the vast base of unpatched and end-of-life PHP, not any single attack.

Update 5, 22 Oct: 32 UK government services offline after PHP2Shell, minister says

A minister told the House of Lords that 32 UK government services were unavailable and four partly unavailable, largely because of precautionary measures, with no confirmed compromise of central government systems. Full story: 32 UK Government Services Offline After PHP2Shell, Minister Says.

Update 4, 22 Oct: Amazon says it saw an exploit attempt four days before disclosure

Someone was trying to exploit PHP2Shell before PHP had said anything about it. Amazon’s threat intelligence team says it found “a PHP2Shell exploitation attempt dating to Oct. 17, 2026” against its MadPot honeypot network, four days before CVE-2026-109618 and CVE-2026-109619 were disclosed, according to an AWS Security Blog post by CJ Moses, chief information security officer of Amazon Integrated Security. The attempt came from an address linked to a commercial anonymisation network, and Amazon says “it remains unclear how the actor acquired exploit information prior to disclosure”.

The activity picked up on the day of the release. Amazon says it found several proof-of-concept exploits, the earliest at about 02:00 UTC (03:00 BST) on Wednesday, twelve hours before the embargo lifted at 14:00 UTC (15:00 BST), and further attempts on its honeypots until 08:00 UTC (09:00 BST) from varied anonymised infrastructure. Different payloads and infrastructure suggest “multiple actors”, it says. These were attacks on decoy systems, and Amazon says “it’s unclear if any of these attempts would have succeeded in real-world systems”.

After the patch, more exploits appeared within hours and were used against its sensors “almost immediately”, Amazon says, concluding that “PHP2Shell is now being broadly exploited in the wild”. That is Amazon’s assessment from its own sensors; neither CVE was in CISA’s Known Exploited Vulnerabilities catalogue when TSN checked on Thursday afternoon, and its latest edition was published on Wednesday.

The practical change is the start date for any investigation. Amazon says “compromise may predate the advisory” and advises teams to look back to at least 17 October, not 21 October. It repeats PHP’s message that upgrading is the only complete fix, saying “there are no configuration-only workarounds that fully address both issues”. For servers that cannot be patched at once, it suggests considering blocking multi-part file uploads after checking the effect on applications, searching for POST requests containing the PHP_SESSION_UPLOAD_PROGRESS string, and checking web servers for unexpected processes or changed files. It has published the addresses it saw but says they belong to shared anonymisation services, so they should be investigated, not blocked.

Update 3, 21 Oct: OpenAI says its model helped find one of the flaws

OpenAI has published its own account of how the flaws came to light. In a post on its Patch the Planet initiative, the company says that “over the past two months, we led a coalition of maintainers, researchers, and security providers to address critical vulnerabilities in PHP”. According to OpenAI, security firm Calif “identified a critical flaw using GPT-5.6 Sol”, one of its models, “with Wiz also independently discovering and reporting both vulnerabilities”. It credits PHP’s maintainers with leading the fixes and the release, and says it engaged the White House’s Super Intelligence Force, the Office of the National Cyber Director and CISA, among others.

OpenAI calls PHP2Shell “one of the most impactful security issues in recent memory” and claims that, “to our knowledge, frontier AI found these vulnerabilities before attackers did”. That is OpenAI’s claim; it sits alongside the reporting below that the flaws’ details leaked on Tuesday, a day before PHP’s release, and that Cloudflare then saw attack traffic. The company says the bugs are “among several significant vulnerabilities we’ve already found and are working to fix”, and that it expects such findings “to increase sharply in the coming months”.

For defenders, OpenAI is sharing a PHP version checker as a Codex skill and says it has committed $1bn in subsidised access to its Daybreak security tools for organisations with limited security resources that protect essential services. It is also asking for comment on a proposed five-stage process for handling critical flaws in widely used software. The Patch the Planet site points PHP users to the official fixes; PHP’s own advice is unchanged: update.

Update 2, 21 Oct: PHP ships the fixes and confirms the CVEs, as Cloudflare reports early attacks

The fixes are out. PHP released versions 8.5.12, 8.4.27, 8.3.36 and 8.2.35 on Wednesday afternoon and urged every user to update immediately, saying the two flaws “can allow unauthenticated remote code execution”. Its advisory confirms the identifiers that leaked on Tuesday, CVE-2026-109618 and CVE-2026-109619, and both keep the 9.2 rating PHP gave them in advance.

Both bugs come down to how PHP cleans up when a request fails part-way. In the first, out-of-memory handling can interrupt PHP while request data is only partly set up, and cleanup then treats that invalid data as valid, according to PHP’s GitHub advisory. In the second, state owned by one request can outlive the memory behind it, and a later request on the same worker may use it before normal initialisation resets it. Both advisories list every release below the four new versions as affected.

PHP says any installation serving web requests is at risk, naming PHP-FPM, Apache with mod_php, php-cgi, FrankenPHP and LiteSpeed. It rates the risk highest for mod_php, citing “a demonstrated exploit where an unauthenticated request can trigger the attack before any application code runs”. The advisories add that full code execution was validated against mod_php with PHP’s default memory and input limits, and that one of the stale-state attack paths was also validated against PHP-FPM.

Servers on PHP 8.1 or older get nothing from the project itself. The security team has published minimal source backports for 7.4, 8.0 and 8.1 for people who build their own, and says Linux distributions and long-term-support vendors received the patches in advance. Users of the volunteer-run rpms.remirepo.net repository will not get updates today, so PHP suggests switching to distribution packages or building from source. The newly patched 8.2 branch itself reaches end of life on 31 December 2026.

For servers that cannot be updated straight away, PHP lists stopgaps that it says cut exposure to specific attack paths without making an installation safe. They include setting memory_limit=-1 in a way applications cannot override, keeping post_max_size low (8M without file uploads, 32M with them), relying on container or cgroup memory limits rather than RLIMIT_AS or RLIMIT_DATA, switching off session.upload_progress.enabled and restarting every worker, and, on PHP 8.5, setting fatal_error_backtraces=0. Its release notes are blunter: “updating is the only safe choice.”

Attackers did not wait for the patch. Cloudflare says it saw attack traffic aimed at its customers after the details leaked, and watched attackers alter their payloads to slip past the firewall rules it switched on at 03:02 UTC (04:02 BST) on Wednesday, though it calls those rules an extra layer of defence, not a substitute for patching. TSN found no public report of a confirmed compromise when this update was written, and neither CVE was in CISA’s Known Exploited Vulnerabilities catalogue as of its Wednesday afternoon update. Sansec expects mass exploitation now that the fixes and technical write-ups are public.

In the UK, the National Cyber Security Centre has updated its alert to tell organisations to update, apply PHP’s temporary mitigations if they cannot, and consider taking systems offline if neither can be done quickly. It also advises checking any system left exposed for evidence of compromise and backdoors before it is fixed.

The next gap to close is packaged builds. Distributions had the patches in advance, but Remi’s repository, which Sansec says is common on RHEL-based servers, has none today, and machines that depend on it stay exposed until it catches up or their owners switch.

Update, 21 Oct: details leak as “PHP2Shell”, with CVE IDs reported but not confirmed by PHP

Some of what PHP has kept back is now circulating anyway. Details of the two flaws, nicknamed “PHP2Shell”, “have been leaked online ahead of scheduled coordinated disclosure and official patches”, SecurityWeek reported on Wednesday morning. The vulnerabilities are reportedly tracked as CVE-2026-109618 and CVE-2026-109619, and public reporting suggests every PHP version from PHP 5 onwards is affected. PHP has confirmed neither the identifiers nor the scope; the 9.2 CVSS rating is its own.

The flaws themselves appear genuine. watchTowr chief executive Benjamin Harris told SecurityWeek that “we can confirm that these vulnerabilities are indeed real”, and the firm says it believes it has reproduced one of them. Its FAQ says no exploitation in the wild had been reported as of 21 October, and Huntress says it has not seen any in its partners’ environments.

That could change fast once the fixes are public. Security firm Sansec says it expects mass attacks “to start within 15 minutes of the release”. It says a screenshot of an exploit tool named PHP2Shell leaked alongside the news, with a banner claiming it works on every release from PHP 5.4.0.

Older installations are the weak point. PHP’s supported versions page lists only the 8.2 to 8.5 branches as supported, and both Huntress and Sansec warn that servers on end-of-life releases may get no official fix. Huntress advises inventorying every PHP install, including those inside vendor software, and isolating end-of-life PHP from the internet.

A reported leak put the clock on the patch

PHP powers many websites and web applications, including content management systems and e-commerce platforms, as BleepingComputer notes, so a flaw in the language sits underneath the software built on it. The security team is asking users to act before it has said what to fix. “We encourage all PHP users to prepare now so you can update as soon as it is available,” wrote Jakub Zelenka of the PHP security team.

Security firm watchTowr told BleepingComputer that information about the flaws had leaked before a planned embargo date. “In the last hour, two remote code execution vulnerabilities in PHP have been leaked. These vulnerabilities were previously scheduled under embargo and due for release on Thursday at 11 am ET,” chief executive Benjamin Harris said. watchTowr added that it had not seen the flaws exploited in the wild. PHP’s own announcement said nothing about a leak; it has since confirmed the CVE IDs and published the fixes (see the latest update above).

Preparing means knowing where PHP runs

Until the release lands, preparation is an inventory job. The EU’s cybersecurity service for its institutions, CERT-EU, advises organisations “to prepare for immediate patching of affected assets”, and says that where patching cannot be done straight away they should consider isolating internet-facing applications from public networks until a fix is available.

That means knowing which servers, containers and hosted sites run PHP, who maintains them and how quickly each can take an update, including those that depend on a hosting provider or a Linux distribution to ship the new builds. Teams that rely on packaged PHP will want to watch their distribution’s security feeds as well as php.net.

PHP published the fixes and named the affected versions at 15:00 BST on 21 October, as scheduled (see the latest update above).

CISA has since added a Linux kernel flaw that attackers chained with PHP2Shell to its exploited list: CISA gives agencies three days to patch Fragnesia.

Sources

Related stories

Follow @tsnmediahub on X for breaking AI news as it happens.

Follow on X

Share this story

Latest stories

More in this category

Latest stories

Explore the TSN Atlas: Every topic we cover, mapped. Click a bubble to dive in.