PHP, the programming language behind a large share of the web, has shipped emergency fixes for two critical flaws that let attackers run code on a server without logging in. The bugs, nicknamed PHP2Shell, were under attack before they were publicly disclosed. The PHP Foundation has also admitted that a "structural failure" left one of them unfixed for well over a year. That matters for crypto exchanges, wallet backends, DeFi front ends and project websites, many of which run PHP somewhere in their stack.
What was fixed, and which versions to install
According to CryptoSlate's summary of the PHP security advisory, the fixes arrived on 21 October, a day after an advance warning. They cover CVE-2026-109618, which involves unsafe cleanup after an out-of-memory error, and CVE-2026-109619, which involves stale internal state being reused across requests. Both score 9.2 out of 10 on the CVSS v4.0 severity scale.
The patched releases are:
- PHP 8.2.35
- PHP 8.3.36
- PHP 8.4.27
- PHP 8.5.12
The PHP project says every installation that serves web requests is at risk. The highest risk is with Apache's mod_php, a common setup where PHP runs inside the web server itself. There, a demonstrated exploit can run before any application code starts, so application-level protections cannot stop it.
The security team also published minimal source backports for the old 7.4, 8.0 and 8.1 branches, but these branches are still unsupported. Teams using Linux distribution packages or long-term-support builds should check whether their vendor has shipped a backported fix, or move to a supported version.
A fix that stalled for more than a year
In a post after the release, the PHP Foundation said its developers first saw signs of the vulnerability in 2024, Cointelegraph reported. They struggled to find a fix that would not break the large body of software built on PHP. With no known route to remote code execution at the time, and only a small group of core developers who understood the engine well enough, work on a fix stopped and started again repeatedly over several months.
The foundation put it bluntly: the delay was a structural failure, caused by both the security team's decision process and its lack of resources. The issue became a top priority after 11 August, when security firm Calif and OpenAI separately reported the same underlying problem. Calif showed that it could be turned into unconditional remote code execution.
Attacks started before disclosure
The accounts differ on how close real attacks were. The PHP security team said it had not found any working exploits when it went public. Cloudflare's data points the other way. CEO Matthew Prince said the network logged thousands of exploit attempts in the 10 hours before disclosure, and that these had grown to "millions" since, according to Cointelegraph. Cloudflare also said attackers were changing their payloads to try to get past its protections.
The exposure is large. Research service W3Techs estimates that PHP powers about 69% of websites whose server-side language is known. The FBI's Cyber Division warned that the flaws could let attackers compromise sensitive data and networks, and urged organisations to update immediately or take affected systems offline.
Many did. The Netherlands shut down its digital identity service, and agencies in Finland, France, Germany and Australia pulled websites offline. Wikimedia took some supporting services offline as a precaution, which knocked out parts of Wikipedia.
How the crypto industry is exposed
Blockchain security firm SlowMist used its MistEye service to scan the industry and found direct PHP fingerprints on 793 of the 1,488 domains it assessed. It urged exchanges, DeFi platforms and wallet providers to check their exposure and upgrade. Intersect, the membership organisation that supports Cardano's development and governance, took its Members Area offline while it assessed the risk.
Several large firms said they were not affected. Coinbase chief security officer Jeff Lunglhofer said a full sweep found no exposed PHP instances, and that the company was checking with third-party suppliers too. BitGo said its platform was unaffected. Binance co-founder Changpeng Zhao told users to be extra careful visiting any website over the next few days, because some administrators may be slow to patch.
Kraken chief security officer Nick Percoco pointed to a less obvious risk. Routers, network storage devices, firewalls, control panels and vendor appliances can contain embedded PHP. These depend on manufacturers for updates, and he warned that some may never get one. Neither Kraken nor Ledger has reported a breach.
What operators should do now
Drawing on the PHP project, Cloudflare, Kraken and the UK's National Cyber Security Centre, the steps are:
- Find every PHP installation, starting with internet-facing systems, including admin panels and third-party hardware. OpenAI has released a Codex skill on GitHub that checks for vulnerable versions.
- Upgrade to one of the patched releases above. The PHP project says this is the only complete fix.
- If you cannot patch at once, take exposed systems offline, or put them behind a web application firewall (a filter that blocks malicious requests) and block direct access to the origin server. Cloudflare has released firewall rules on all plans, including Free. Paid customers should confirm the managed ruleset is set to block mode. Cloudflare's CTO Dane Knecht called these rules a stopgap.
- Check for intrusions after patching. Look for unauthorised admin accounts, modified PHP files and web shells (hidden scripts that give an attacker ongoing access). Patching closes the hole but does not remove someone who is already inside.
Overlapping threats
Ledger CTO Charles Guillemet noted that PHP2Shell arrived alongside other problems. The Node.js project, whose software runs many API servers and blockchain connectors, released versions 26.12.1, 24.22.1 and 22.23.4 to fix high-severity flaws, including a Brotli decoder bug that can allow remote code execution. Separately, eight intermediate certificates from Indian provider eMudhra had very weak private keys, which could let attackers impersonate legitimate services. Mozilla blocked them in Firefox on 17 October. Cloudflare advises updating trust stores and dependencies, then rebuilding affected images.
What to watch
- Whether working public exploit code appears, and whether Cloudflare's attack counts keep rising beyond the millions Prince reported.
- Breach disclosures from exchanges, wallet providers or project sites in the coming days, especially from operators who patched but did not check for intrusions.
- Firmware updates from router, storage and appliance makers that embed PHP, along with any devices that will never be patched.
- When Intersect's Members Area and the government services taken offline come back online.
- Whether the PHP Foundation changes how its security team is funded and how it decides on fixes, after admitting to a structural failure.
