A newly discovered PHP vulnerability has emerged even as developers continue patching an earlier flaw, leaving a large share of websites potentially exposed. Researchers say the issue could affect up to 70% or 80% of the web.
The vulnerabilities, known collectively as php2shell, target PHP, a scripting language used to build websites and apps. Since PHP powers a substantial portion of the internet, flaws in the software can put many sites at risk.
If exploited, php2shell could let attackers run malicious code remotely without signing in. They could then steal information, disrupt a website, or take it offline.
A patch for the original php2shell vulnerability was already available when the issue was reported in October, though installing it across websites and services was expected to take weeks or months. Researchers have now found that PHP contains another flaw that could produce a similar result.
The newer vulnerability, identified as CVE-2026-126714 and nicknamed phpAfterShell, involves website session files. These files store temporary information about a visitor, such as saved preferences or the contents of a shopping cart.
Researchers say an attacker could send a request that interrupts an update to one of these files, leaving it partly corrupted. When PHP later reads the file, it might process data planted by the attacker, potentially allowing malicious code to run on the web server.
There is no known evidence that phpAfterShell has been used in an attack so far. Still, once a vulnerability becomes public, the window to address it can feel uncomfortably short.
The flaw affects PHP versions 8.2 through 8.5, as well as some older, unsupported versions. Developers can reduce the risk in older versions by turning off session upload progress. A patch is available for developers to install.
For ordinary website users, there is little to do to speed up those updates; site operators have to apply them. Users can still take basic steps to protect their accounts, devices, and personal information.
Security flaws are being uncovered at a striking pace, in part because advanced AI tools can help researchers examine widely used software. Cybersecurity researcher Jerry Gamblin noted that the first 100,000 vulnerability records took 18 and a half years to publish, while 2026 reached another 100,000 in 322 days.
That acceleration creates pressure for software companies and their customers. But finding vulnerabilities before criminals do is essential, even if the steady stream of disclosures can be unsettling. More flaws will likely come to light as researchers continue examining software, and developers work through the fixes.



