Critical PHP flaws put websites at risk; site owners urged to update now

If your business, church or club has a website, there is a good chance it runs on PHP, and it may need an update today.
The PHP project released emergency security updates Wednesday, Oct. 21, for two critical flaws that "can allow unauthenticated remote code execution." In plain terms, an attacker who never logs in could run their own commands on a vulnerable web server. PHP rated both flaws 9.2 out of 10 on the industry's severity scale.
"All PHP users are strongly encouraged to update immediately," the PHP project said in its advisory. "There are no complete mitigations, updating is the only safe choice."
PHP is the programming language behind WordPress and a large share of the web. OpenAI, which announced the discovery the same day, described PHP as used to run an estimated 70% of websites.
WHAT TO UPDATE TO
Loading ad...
The fixed versions are PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. PHP says every installation serving web pages is at risk, and it considers the risk highest on Apache servers using mod_php.
Sites on PHP 8.1 or older are a bigger problem: the PHP project no longer issues updates for those versions. Some Linux distributions and long-term-support vendors provide their own fixes, but otherwise the advice is to move to a supported version. PHP 8.2 itself stops receiving security fixes on Dec. 31, 2026.
HOW IT WAS FOUND
OpenAI said its AI models helped researchers find the flaws as part of an initiative it calls Patch the Planet. According to OpenAI, the security firm Calif found a critical flaw using OpenAI's GPT-5.6 Sol model, and the cloud security company Wiz independently found and reported both vulnerabilities. OpenAI said it spent two months leading a coalition that included PHP's maintainers, Cloudflare and U.S. agencies including the Cybersecurity and Infrastructure Security Agency to prepare fixes before the bugs were made public.
"Due to the severity of these flaws and PHP's widespread use, we consider this bug to be one of the most impactful vulnerabilities in recent memory," OpenAI said in a post on X.
The plan didn't hold all the way. The PHP project gave advance notice Tuesday that a fix was coming, and the vulnerability identifiers circulated online that day. Code claiming to exploit the bugs began spreading before the patch was out. Cloudflare's chief technology officer, Dane Knecht, said Wednesday the company was seeing early attacks emerging, according to the security firm Tenable.
"The flaws became public before the fix did, so both sides are starting at the same time," Joviane Jardim, a senior security researcher at Detectify, told The Record.
Some organizations took websites offline to protect themselves. The Record reported that several governments and organizations, including Nintendo, pulled sites down ahead of the patch.
WHAT LOCAL SITE OWNERS SHOULD DO
Most small businesses don't manage their own servers, so the first step is a phone call or email.
- If someone else hosts or manages your site, ask them directly whether your site's PHP has been updated to one of the fixed versions, and when. - If you run WordPress, you can see your PHP version under Tools, then Site Health, then the Info tab, under Server. - If your site is on PHP 8.1 or older, ask about upgrading. Those versions won't get an official fix. - Back up your site before any update.
PHP and security firms say settings changes and firewall rules can reduce exposure in the short term, but none of them make a site safe on their own. Cloudflare said it has added protective firewall rules for sites that route traffic through its network, including free-tier customers, and called them a stopgap. OpenAI also urged organizations that may have been exposed to check whether their systems were already compromised.
Sources
- PHP project, "Security advisory: Critical remote code execution vulnerabilities, update now" (Oct. 21, 2026)
- PHP project, "Upcoming Critical PHP Security Release" (Oct. 20, 2026)
- OpenAI, "Patch the Planet: global response coordination as agents uncover critical vulnerabilities" (Oct. 21, 2026)
- OpenAI on X (Oct. 21, 2026)
- Tenable, "php2shell (CVE-2026-109618, CVE-2026-109619): Critical PHP RCE FAQ" (Oct. 21, 2026)
- The Record, "Hundreds of websites taken offline as concern grows over two PHP vulnerabilities" (Oct. 21, 2026)
- GoDaddy, "Important PHP security update: What website owners need to do" (Oct. 20, 2026)
