Cybersecurity
PHP2Shell, PHP 7 and Spain's Kit Digital: 1,424 days without patches and not a word about security in the rules
PHP2Shell has no patch for PHP 8.1 or earlier. We estimate some 115,500 Kit Digital websites are exposed (from 82,900 to 166,700), and the programme's rules required 12 months of hosting and made 0 mentions of security.
- Date
- Oct 22, 2026
- Reading time
- 8 min
- Result
- ≈ 115,500 unpatched Kit Digital websites • 1,424 days without patches on PHP 7.4 • 58 security releases it never got • 0 mentions of security in the rules
Translated from the Spanish original. The code, data and READMEs on GitHub are in Spanish.
On 21 October 2026, PHP released the patch for PHP2Shell, two critical flaws that allow someone to take over a server without logging in. It released it for PHP 8.2, 8.3, 8.4 and 8.5. There is no patch for PHP 7, and there won’t be: it’s been without support for 1,424 days. And according to W3Techs, 24% of websites whose language is known are still on PHP 5 or 7. Using the programme’s official data, we estimate that some 115,500 Kit Digital websites are on a PHP version with no PHP2Shell patch. Meanwhile, the rules of Kit Digital, a Spanish government programme funded by EU money that paid €2,000 per website to thousands of Spanish small businesses, required 12 months of hosting, AA accessibility and two-item SEO. The word “security” doesn’t appear once.
This isn’t an opinion: these are dates from php.net, the text of the BOE (Spain’s official gazette), NIST’s vulnerability database and W3Techs’ statistics. All measured on 22 October 2026, with the code published.
PHP2Shell in two lines
- CVE-2026-109618 and CVE-2026-109619, rated CVSS 9.2. On Apache with mod_php, an unauthenticated request can lead to code execution on the server with the default configuration, according to the PHP Foundation.
- Fixed in PHP 8.5.12, 8.4.27, 8.3.36 and 8.2.35. CISA, the US cybersecurity agency, says they affect every PHP installation serving web requests and recommends that anyone still on PHP 8.1 or earlier disconnect those systems. Yes: for a website on PHP 7, the official advice is to switch it off.
As for whether they’re already being exploited, the sources disagree. Some security firms talk about attacks before the patch, but neither CISA nor the PHP Foundation had observed any at the time of publication. It doesn’t matter: with proof-of-concept code circulating, it’s a matter of days.
The timeline, which is the funniest part
| Event | Date |
|---|---|
| PHP 7.0 released | 3/12/2015 |
| Last PHP 7.4 patch (7.4.33) | 3/11/2022 |
| End of PHP 7.4 support | 28/11/2022 |
| PHP2Shell patch (PHP 8.2 onwards only) | 21/10/2026 |
And Kit Digital opened its calls with this margin:
| Kit Digital call | Opening | Days of support PHP 7.4 had left |
|---|---|---|
| Segment I (10 to 49 employees) | 15/03/2022 | 258 |
| Segment II (3 to 9 employees) | 02/09/2022 | 87 |
| Segment III (0 to 2 employees) | 20/10/2022 | 39 |
The self-employed and micro-businesses in Segment III, those least able to maintain a website, started applying for theirs 39 days before PHP 7.4 stopped receiving patches. Any website delivered on PHP 7.4 from then on was born expired.
What the rules required (and what they didn’t)
Kit Digital’s “Website and internet presence” solution (Order ETD/1498/2021, BOE-A-2021-21873) devotes 304 words to the requirements:
- €2,000 of aid per website.
- A domain for a minimum of twelve months.
- Hosting for a minimum of twelve months.
- At least 3 pages, mobile-responsive design, WCAG 2.1 level AA accessibility, a content management system so the business can manage it alone, directory listings and basic two-item SEO.
What does not appear in those 304 words:
| Term | Mentions |
|---|---|
| Security | 0 |
| Update | 0 |
| Maintenance | 0 |
| Patch | 0 |
| PHP | 0 |
| Version | 0 |
The requirement ensured the website looked good on a phone and could be read by a screen reader. Making sure it couldn’t be hijacked wasn’t in the specification. After the twelve months, the business was left with a “self-managed” content management system that nobody had told them also needed managing on the inside.
What PHP 7 has missed since it died
| Measure (since 28/11/2022) | Amount |
|---|---|
| Days without security patches on PHP 7.4 | 1,424 |
| Security releases published for PHP 8 | 58 |
| CVEs fixed in PHP 8 | 69 |
| Of which critical (CVSS 9 or higher) | 9 |
| Of which high (CVSS 7 to 9) | 14 |
| Security advisories (GHSA) in the changelog | 62 |
| CVEs that the NVD database flags as affecting PHP 7 | 1 |
That last line looks like good news and is the worst of all. NVD only flags 1 of the 69 CVEs as affecting PHP 7, but not because the other 68 don’t affect it: nobody analyses abandoned versions any more, so whether they’re vulnerable isn’t recorded either. On PHP 7 there are no patches, and there’s nobody to ask either.
How many Kit Digital websites are at risk?
There’s no census of the PHP versions of Kit Digital websites, and we’re not going to probe small businesses’ websites to build one: that would be pointing at vulnerable businesses on the very day they’re most at risk. But with public data you can estimate the order of magnitude.
| Data point | Value | Source |
|---|---|---|
| “Website and internet presence” solutions granted | 343,799 | Red.es, data as of 13/10/2026 |
| Websites using PHP, of those whose language is known | 69.3% | W3Techs |
| Websites with PHP on a version with no PHP2Shell patch (8.1 or earlier) | 48.5% | W3Techs |
Note that PHP2Shell doesn’t leave only PHP 7 out: PHP 8.0 and 8.1 have no patch either. They account for 13.7% of PHP websites, on top of the 34.8% still on PHP 7 or earlier. Within PHP 7, the most used is precisely 7.4: 73.4%.
| Scenario | Unpatched Kit Digital websites |
|---|---|
| Low: only those on PHP 7 or earlier | 82,900 |
| Central: the same split of languages and versions as the global web | 115,500 |
| High: all on PHP (WordPress or another PHP CMS) | 166,700 |
Some 115,500 websites paid for with European funds would be on a PHP version for which the official advice is to disconnect them, with a range from 82,900 to 166,700. It’s an estimate, not a count, and it rests on three assumptions:
- That they’re all still online. Many will have been taken down when the 12 months of hosting ended, and there’s no public data on how many. A website that’s been taken down isn’t at risk, even if the business lost it.
- That they split languages and versions like the global web. Kit Digital websites were built from 2022 onwards: there will be fewer on PHP 5 and more on 8.0 and 8.1, which have no patch either. And if most of them are WordPress, as many digitalisation agents sell, the figure gets closer to the high scenario.
- That nobody has updated them. Some hosting providers upgrade the PHP version on their own, and some digitalisation agents will have kept maintaining theirs. That brings the figure down.
What to do if you have one of these websites
- Check your PHP version. In WordPress: Tools → Site Health → Info → Server. Or in your hosting panel. Do it with your own website, not other people’s.
- If it’s PHP 7 or earlier, there’s no patch to install: you have to migrate to PHP 8.3 or 8.4. Before that, update the CMS, plugins and theme, and test on a copy. If the website is four pages and a form, consider something better: leaving WordPress for a static website that has no PHP to patch.
- If you can’t migrate yet, ask your hosting provider for a web application firewall (WAF) in the meantime, or follow CISA’s advice: disconnect it until you can update.
- If you’re a digitalisation agent, review your portfolio. Your clients don’t know what PHP is, but they know who built their website. To do the inventory in one go, our free script exports to a CSV the CMS and versions of each website on a list, and when each domain expires. The PHP version only appears if the server announces it; the exact one is in the hosting panel.
Limitations
- We didn’t measure Kit Digital websites: there’s no public data and we won’t obtain it by probing other people’s websites. The estimate applies W3Techs’ global split to Red.es’s official figures: it’s good for the order of magnitude, not as a count.
- W3Techs only counts websites that announce their PHP version.
- NVD doesn’t evaluate unsupported branches: the count of CVEs affecting PHP 7 is a minimum, not a maximum.
- The call opening dates come from Government and Red.es press releases; those from the BOE and php.net are the official ones.
How to reproduce it
medir.py only queries public sources (php.net, NVD, BOE and W3Techs) and estimar.py does the estimate with Kit Digital’s official counters. Both store every raw data point: yeswelab-laboratorio/php7-kit-digital-php2shell-webs-sin-parche on GitHub.
Related
- How to leave WordPress: a fast, secure website with Astro, Cloudflare, an API and PostgreSQL on AWS: the PHP-free alternative, with a template.
- How to find out what technology a website uses and who owns it: the inventory of CMS and versions across your website portfolio, in a CSV.
- Why 90% of companies fail when they bring in AI: automating an existing mess
- Credential confinement: security in AI agents
- Building websites and forms with AI or no code
Managing lots of websites and don’t know how many are still on PHP 7? We measure the state of your portfolio and the cost of migrating it, with data and without alarmism. Commission the experiment.