Cybersecurity
6 min readThe October 2026 PHP vulnerabilities: who is exposed and what to do this week
On October 21, 2026 the PHP project fixed two critical flaws, CVE-2026-109618 and CVE-2026-109619, that let an unauthenticated web request run code on the server. The fix is PHP 8.5.12, 8.4.27, 8.3.36 or 8.2.35. PHP runs about 69% of websites with a known server-side language, and roughly half of PHP sites sit on a branch that gets no official fix. Here is what the numbers mean and what to do.
On October 21, 2026 the PHP project released PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35 to fix two critical vulnerabilities, CVE-2026-109618 and CVE-2026-109619, that allow an unauthenticated web request to run code on the server. Both carry a CVSS 4.0 score of 9.2. Every PHP installation that serves web requests is affected, and the PHP team rates Apache with mod_php as the highest-risk setup because a demonstrated exploit fires before any application code runs. The Canadian Centre for Cyber Security issued alert AL26-026 the same day. If you run a website, a web application, an intranet tool or a vendor appliance built on PHP, this is the week to find it and patch it.
What are CVE-2026-109618 and CVE-2026-109619?
Both are memory-safety bugs in the PHP engine itself, not in any one application. The first, CVE-2026-109618, is triggered when a request hits the memory limit at the wrong moment: PHP can be interrupted while its internal request data is only partly set up, and the cleanup that follows treats the half-built data as valid. The second, CVE-2026-109619, is a use-after-free: a fatal error can leave internal state pointing at memory from a previous request, and the next request handled by the same worker reuses it. The PHP Foundation reports full remote code execution was demonstrated on Apache with mod_php on default settings for both, and confirmed on PHP-FPM through application-level code paths for the first.
The disclosure was messy. The CVE numbers leaked on forums around 15:00 UTC on October 20, with a wrong release time and a wrong CVSS score of 10.0. The PHP team pulled the release forward a day, from October 22 to October 21. A researcher's demonstration video was posted by mistake that evening and spread, which the Foundation says accelerated the proof-of-concept exploits that circulated on release day. Both the Cyber Centre and the United States cybersecurity agency CISA said they had not observed exploitation at the time of their alerts, and both said that could change quickly.
How many websites are exposed?
The honest answer is most of the web, and the version data is worse than the headline. W3Techs, which surveys the technology behind the top ten million sites, reports on October 22, 2026 that PHP is used by 69.3% of all websites whose server-side language is known. WordPress alone, which runs on PHP, powers 39.6% of all websites and 58.3% of sites with a known content management system.
The fix only exists for PHP 8.2 and newer. According to the same W3Techs data, PHP 8 accounts for 65.3% of PHP sites, PHP 7 for 26.9% and PHP 5 for 7.7%. Within PHP 8, 15.2% of sites run 8.1 and 5.8% run 8.0, both of which left official support before this advisory. Add those up and roughly 48% of PHP websites are on a branch with no upstream patch at all. Those sites depend on a Linux distribution or a long-term-support vendor backporting the fix, or on an upgrade they may have been putting off for years. PHP 8.2 itself reaches end of life on December 31, 2026, so sites on 8.2.35 have bought weeks, not years.
One more figure from the PHP Foundation puts the workload in context: the PHP security team has published 15 CVEs since July 1, 2026 and handled more than 100 reports that turned out to be invalid, duplicates or not reproducible. The team is small and runs by consensus, and the Foundation calls the months it took to settle a fix for the first bug a structural failure it is now changing.
Why version numbers can mislead you
Debian, Ubuntu, Red Hat and their derivatives backport security fixes without changing the version number. A server reporting PHP 8.2.29 can be fully patched, and a server reporting 8.3.36 can be an unpatched build behind a cache that sets the header. That is why no outside scan can give a reliable yes or no, and why both government alerts tell you to inventory PHP on the server rather than trust what the website advertises. Our free check reads what your site tells the world and tells you plainly which of five situations you are in, then points you to the server-side confirmation.
What should you do this week?
The sequence below follows the Cyber Centre's alert and the PHP project's advisory. Most organisations can finish it in a day if they know where their PHP is.
- Inventory every PHP install, not just the public website. Web mail, wikis, ticketing, intranets, monitoring dashboards and vendor appliances often bundle PHP and are the ones nobody remembers. CISA's alert makes the same point: PHP is frequently embedded in other software.
- Patch internet-facing systems first. Update to 8.5.12, 8.4.27, 8.3.36 or 8.2.35, or install the distribution package whose changelog names both CVEs, then restart PHP-FPM or Apache so every worker picks up the new build.
- For PHP 8.1 and older, get a written answer from your vendor on whether a backport exists. If it does not, the Cyber Centre's advice is to take the system off the public internet until it is upgraded. The PHP security team published minimal source backports for 7.4, 8.0 and 8.1 for people who build from source.
- If you cannot update today, apply the PHP project's interim settings: memory_limit set to -1 where applications cannot override it, a low post_max_size (8M without uploads, 32M with), session.upload_progress.enabled set to 0, and on PHP 8.5 fatal_error_backtraces set to 0. Restart every worker. The PHP team is explicit that these reduce exposure to the confirmed paths and do not make an install safe.
- Review web server and endpoint logs for unusual requests and new processes, and report suspected compromise to the Cyber Centre. The absence of log entries does not prove you were not hit.
- Write down what you did. A one-page record of hosts, versions and dates is what an insurer, a client questionnaire or a CPCSC assessor will ask for next.
What this means for a Canadian SMB
If an agency or hosting company runs your site, send them the advisory link today and ask for the patched version in writing. If you run it yourself, the check and the steps above are enough for one site. If you have several, or you are not sure what runs PHP, that is the point where a managed security provider earns its fee: inventory, confirmation on the server, interim settings where an update has to wait, and the record at the end. HuCortex does this as a fixed-scope engagement that usually takes a day.
Common questions
- Which PHP versions fix CVE-2026-109618 and CVE-2026-109619?
- PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35, released on October 21, 2026. PHP 8.1 and older receive no upstream release; the PHP security team published minimal source backports for 7.4, 8.0 and 8.1, and some Linux distributions backport the fix under the old version number.
- How many websites run PHP?
- About 69.3% of websites with a known server-side language use PHP, per W3Techs data dated October 22, 2026. WordPress, which runs on PHP, powers 39.6% of all websites. Roughly 48% of PHP sites run PHP 8.1 or older, branches with no official fix for these two vulnerabilities.
- Are the PHP vulnerabilities being exploited?
- Proof-of-concept exploits circulated on October 21, 2026. The Canadian Centre for Cyber Security and CISA both said they had not observed exploitation at the time of their alerts, and both warned that could change quickly. The PHP Foundation found no functional exploit at the time of release.
- What can I do if I cannot update PHP immediately?
- Apply the PHP project's interim settings: memory_limit of -1 that applications cannot override, a low post_max_size, session.upload_progress.enabled set to 0, and fatal_error_backtraces set to 0 on PHP 8.5, then restart every worker. The PHP team says these reduce exposure but do not make an install safe. Update as soon as you can.
Sources
- Security advisory: critical remote code execution vulnerabilities, PHP project, October 21, 2026
- Today's PHP security release and how we're strengthening PHP security, The PHP Foundation
- AL26-026, Critical vulnerabilities impacting PHP, Canadian Centre for Cyber Security
- Critical vulnerabilities in PHP require immediate patching, CISA
- Usage statistics and market share of PHP for websites, W3Techs
- Usage statistics of PHP version 8 for websites, W3Techs
- Usage statistics and market share of WordPress, W3Techs
Ready to take the next step?
HuCortex works with Canadian businesses on CPCSC readiness, PIPEDA compliance, and managed security. Start with a free assessment.
