Thinking global, living local

Half of PHP Websites Run a Version Nobody Patches. What a Hacked Site Gives Away About Its Company

October 27, 2026

PHP runs seven in ten websites whose software can be identified, and about half of those run a version that no longer gets security fixes. A company website rarely holds only web pages: it holds the keys to databases, email, payments and the cloud.

Cybersecurity · 27 October 2026

Half of PHP Websites Run a Version Nobody Patches. What a Hacked Site Gives Away About Its Company

Skip to article content
Text Size
70%of websites whose server-side language is known run PHP (W3Techs, August 2026)
53%of those PHP sites run a version that no longer gets security fixes; 72% from 1 January 2027 if none upgrade
11,334new vulnerabilities found in WordPress add-ons and core in 2025, 91% of them in plugins (Patchstack)
100+Indian government and public-sector sites reported serving hidden betting pages, June 2026

A company’s website is usually the least guarded thing it owns and the most visible. It is often built by an agency, hosted by someone else and updated rarely, but it talks to the same database, email system and cloud account as the rest of the business. Seven in ten websites whose software can be identified run PHP, the language behind WordPress, Drupal, Joomla and Magento. This blog’s arithmetic from W3Techs’ figures is that about half of those sites run a version of PHP that no longer receives security fixes, and on 1 January 2027 PHP 8.2 joins them.

This piece explains why PHP sites are where most website attacks land, what a website reveals about its owner before anyone breaks in, what a break-in exposes beyond the site itself, and what Indian companies and government departments should do about it. It describes categories of weakness and the fixes for them, not methods of attack.

Half of PHP websites run an unpatched version

PHP websites by whether their version still gets security fixes, % No fixes Security fixes only Full support 27 Oct 2026 53 39 1 Jan 2027* 72 20 W3Techs version shares (Jun–Aug 2026) mapped to php.net support dates. *If no site upgrades; PHP 8.2 loses security fixes on 31 Dec 2026. This blog’s arithmetic.
Version% of PHP websitesStatus on 27 Oct 2026End of security fixes
PHP 4 and 58.0No fixesEnded 2008 (PHP 4) and 2018 (PHP 5.6)
PHP 728.9No fixesEnded 28 Nov 2022 (PHP 7.4)
PHP 8.04.4No fixesEnded 26 Nov 2023
PHP 8.111.2No fixesEnded 31 Dec 2025
PHP 8.219.6Security fixes onlySecurity fixes until 31 Dec 2026
PHP 8.319.6Security fixes onlySecurity fixes until 31 Dec 2027
PHP 8.46.8Full supportSecurity fixes until 31 Dec 2028
PHP 8.51.5Full supportSecurity fixes until 31 Dec 2029

W3Techs measures sites whose language it can detect; major-version shares are from 22 August 2026 and PHP 8 minor-version shares from 29 June 2026, so the minor-version rows are approximate. Linux distributions such as Debian, Ubuntu and Red Hat backport fixes to some older versions, so a site on an old version number is not always unpatched; but a site still on PHP 5 or 7 almost always is.

About 53% of PHP sites are on versions the PHP project no longer fixes, which is about 37% of all websites whose language W3Techs can identify. PHP 7 alone, whose last branch lost support in November 2022, still runs on 29% of PHP sites. Because PHP 8.2, the most used version, reaches the end of its security fixes on 31 December 2026, the unpatched share rises to about 72% at the turn of the year unless sites upgrade.

There is an irony in these numbers. W3Techs can count a site’s PHP version largely because the site announces it, in a response header that PHP sends by default. That header is the first thing anyone looking for a vulnerable site reads.

The language is rarely the hole; the add-ons are

Most PHP websites are not written from scratch; they are a content-management system plus plugins and themes from many small developers. WordPress alone runs about 40% of all websites. Patchstack, a WordPress security firm, counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, 42% more than in 2024, and 91% of them were in plugins, 9% in themes and only a handful in WordPress itself. It judged about 36% serious enough to need emergency protection rules. For the most heavily attacked flaws, the median time from public disclosure to mass exploitation was about five hours.

That timing matters more than the count. A company that patches its website monthly, or whenever its agency next visits, is exposed for weeks to flaws that automated scanners begin trying within hours. The attacker does not need to choose a target; scanners try every site that matches.

What a website gives away before it is hacked

What a site can reveal without being hackedWhat it tells an outsiderThe fix
Software versions in response headers and page code (PHP, the web server, the CMS and its plugins)Which published vulnerabilities are likely to workPatch first; then switch off version disclosure (PHP’s expose_php, server tokens, generator tags)
Detailed error messagesFile paths, database names, the framework and sometimes queriesLog errors privately; show a plain error page to visitors
Configuration, backup and source-control files left in the web folder (environment files, database dumps, archive files, repository folders)Database passwords, cloud and email keys, payment-gateway secrets, the full source codeKeep secrets and backups outside the web root; block dot-files; scan your own site for them
Diagnostic pages left on (such as a PHP information page)The whole server configuration, sometimes including secrets in environment variablesDelete them from production
CMS features that list authors or usersValid login names for password-guessingRestrict user listings; enforce strong passwords and two-factor login for administrators
Public admin and database-management panelsWhere to aim password attacksPut them behind a VPN or an IP allow-list
Third-party scripts, plugins and themesThe vendors a company relies on, each with its own flawsKeep an inventory; remove what is unused; update the rest

None of these needs a break-in. Each is something an ordinary visitor’s browser could request, and each tells an outsider either which door to try or what lies behind it. The most damaging are files that should never have been in the public web folder at all: a configuration file holding the database password and cloud keys, or a backup of the customer database left behind after a migration.

What a hacked website exposes beyond itself

CaseEntry pointWhat it exposed beyond the website
Exposed environment files, 2024 (Palo Alto Networks Unit 42)Publicly readable configuration files on about 110,000 domainsOver 90,000 secrets, about 7,000 of them cloud credentials; data copied out of cloud storage and held to ransom, with no encryption needed
CosmicSting, 2024 (Sansec)A flaw in Magento/Adobe Commerce, the PHP shop software, patched in June 2024Card skimmers on checkout pages at 4,275 shops, about 5% of all such stores; stolen encryption keys meant patching alone did not close the hole
PHP-CGI flaw CVE-2024-4577, 2024–25 (Cisco Talos, GreyNoise)Windows servers running PHP in CGI modeA foothold into the company network: attackers in Japan moved on to credential theft and remote-control tools; a ransomware gang used it within 48 hours of the patch
Betting spam on Indian government sites, 2024–26 (TechCrunch; FalconFeeds via MediaNama)Compromised CMS or server configuration, as researchers suspectMore than 100 government and public-sector domains ranked betting pages on Google; visitors from search were redirected while administrators saw a normal page

The common thread is that the website is connected to more than the website. A PHP application has to hold credentials to do its job: to its database, to send email, to take payments, to store files in the cloud. Whoever controls the application holds those credentials too. That turns a defaced page into a breach of customer records, a payment-card theft or a foothold into the company network. It also exposes things a company may not think of as secret: staff names and email addresses, the vendors and agencies it uses, internal server names, and the cloud accounts it runs.

The Indian government cases show a quieter cost. The hijacked sites did not look hacked to the people running them. Search engines were shown betting pages and visitors arriving from search were redirected, while administrators saw an ordinary page. TechCrunch found about 50 such links on government domains in May 2024; the same pattern was reported across more than 100 domains, including ministries, a High Court and tax and police portals, in June 2026.

The Indian picture

CERT-In, the national computer emergency response team, handled about 29.44 lakh cyber-security incidents in 2025. The last year for which a breakdown was found, 2022, included 19,793 website defacements, and central and state government websites hacked numbered 59, 42 and 50 in 2020, 2021 and 2022. Government sites must pass a security audit by NIC, STQC or a CERT-In-empanelled auditor before they go live under the Guidelines for Indian Government Websites, but the betting cases show that a clearance at launch says little about a site several years and many plugin updates later.

For companies the stakes are rising. The Digital Personal Data Protection Act provides for penalties of up to Rs 250 crore for failing to take reasonable security safeguards, and its Rules, notified in November 2025, phase in most obligations over 18 months. CERT-In’s 2022 directions already require incidents to be reported within six hours. A leaked configuration file from a forgotten marketing site counts as a breach as much as an attack on the core systems.

What companies should do

  • Know what you run. List every public website and subdomain, including old campaign and agency-built sites, with its PHP, CMS and plugin versions and who is responsible for patching it.
  • Get onto supported versions. Move off PHP 7 and 8.0–8.1 now, and plan the PHP 8.2 upgrade before 31 December 2026; remove plugins that are not used or no longer maintained.
  • Patch in hours, not months. Turn on automatic security updates for the CMS and plugins, or buy a service that applies protection rules on disclosure.
  • Keep secrets out of the web folder. Store credentials in a secrets manager or outside the web root, give the website only the access it needs, and rotate any key that has ever been in a public folder.
  • Say less. Switch off version headers and detailed errors, delete diagnostic pages, and put admin panels behind a VPN or allow-list.
  • Look at your site as Google does. Monitor search results for your domain for unexpected pages, since cloaked spam is designed to be invisible to administrators.

What would fix this

  • CERT-In should publish yearly counts of website compromises by sector and by cause (unsupported software, plugin flaw, leaked credential), as it did for defacements, so the scale of the problem is measured.
  • Government websites should be re-audited after major changes and at least yearly, not only before launch, and the audit should check the PHP and CMS versions against their end-of-support dates.
  • NIC and state IT departments should run a shared inventory of every government web property with its software versions, so that unsupported PHP can be found and replaced centrally.
  • The Data Protection Board should say in its guidance that running public-facing software past its end of security support is a failure of reasonable security safeguards.

These are proposals from this blog, not recommendations any agency has adopted.

What this piece could not establish

W3Techs’ version figures cover only sites that reveal a version, mix dates from June and August 2026, and cannot see distribution backports, so the 53% figure is an estimate of exposure, not a count of vulnerable sites. No figure was found for the share of Indian websites, or Indian government websites, running unsupported PHP; this blog did not scan any third-party site to find out. The cause of the Indian betting compromises has not been published; the CMS explanation is a researcher’s suggestion. CERT-In’s defacement breakdown was found only for 2022. Patchstack’s figures come from its 2026 report as summarised on its site and in news coverage.

Sources and caveats

PHP usage and version shares: W3Techs, server-side languages (26 August 2026) and PHP version pages (22 August and 29 June 2026); W3Techs founder on detection method (W3Techs forum). PHP support dates: php.net supported-versions policy (September 2024 change), PHP.Watch and remirepo (PHP 8.1 end of life). WordPress: market share per W3Techs as reported (October 2026); Patchstack, State of WordPress Security in 2026 and its 2025 analysis, as summarised on patchstack.com and by news coverage. Cases: Palo Alto Networks Unit 42, large-scale cloud extortion operation (August 2024), via Security Affairs, Security Boulevard and The Hacker News; Sansec on CosmicSting via BleepingComputer, SecurityWeek and The Hacker News (October 2024); Cisco Talos on attacks in Japan and GreyNoise on mass exploitation of CVE-2024-4577 (March 2025), via BleepingComputer and Security Affairs; TechCrunch (10 May 2024) and MediaNama citing FalconFeeds (June 2026) on Indian government sites. India: CERT-In incidents in 2025 (PIB, January 2026, via Morung Express and Vision IAS); 2022 defacements (CERT-In annual report via MediaNama); government websites hacked 2020–2022 (Rajya Sabha reply, February 2023); GIGW 3.0 security-audit requirement (GIGW guideline 5.3.1, as summarised by audit firms); DPDP Rules notification and phasing (PIB, The Week, Deccan Herald, November 2025); CERT-In directions of 28 April 2022. The unsupported-version shares are this blog’s arithmetic from W3Techs’ shares and php.net’s dates (builder in the repository at out/research/php-surface/). This piece describes weaknesses and fixes for defenders; it is not legal or security advice for any specific system.

About this article: Researched, written and edited by Umashankar Triplicane Dwarakanathan, with AI research assistance; every figure is meant to trace to the primary source cited. See the Editorial Policy for how sourcing, AI use and corrections work.

Topics
Umashankar Triplicane Dwarakanathan
Contact Us
Umashankar Triplicane Dwarakanathan
Investment Promotion & Energy-Sector Leader · Chennai, Tamil Nadu, India
LinkedIn → GitHub → Email +91 78273 81696
How this site works

Data-led analysis of India's trade, currency and industrial policy. Every article is built from primary official sources, and every figure links back to the release, table or filing it came from.

Sources. DGCI&S TradeStat (imports/exports, HSN-wise) · PIB (government press releases, January 2017 to today, refreshed daily) · RBI (circulars, balance of payments) · MoSPI (CPI/WPI, IIP) · PARIVESH (environmental clearances) · CCIL (bond yields) · BIS (policy rates) · SEBI, NSE/BSE and SEC filings for company data.

Interpretation. Figures carry their vintage and retrieval date; estimates and press-reported numbers are labelled as such; where sources disagree, both are shown. Corrections are made visibly, never silently. Articles are written with AI assistance from the cited sources — AI-generated text can misstate figures even when working from real material, so verify any number that matters to a decision against the linked primary source.

footer

Browse all articles by topic

Every piece on this blog, grouped. Or read the full index.

Agriculture & FertilisersAI ToolsChemicalsClimate & CarbonEnergy & FuelsGas & LNGImport SubstitutionIndustrial PolicyMarkets & FinanceMobility & EVPrices & InflationTextilesTrade & Tariffs

Each topic is a live archive page that updates itself as pieces are labelled. It replaces a hand-kept list that had fallen 18 articles behind.