DEV Community

Cover image for Millions of Hacking Attempts Target Websites Worldwide After Critical PHP Security Flaws
Deepak
Deepak

Posted on

Millions of Hacking Attempts Target Websites Worldwide After Critical PHP Security Flaws

A major cybersecurity warning has put website owners and developers around the world on high alert. On October 22, 2026, reports described millions of attempts to exploit newly disclosed critical vulnerabilities in PHP, a programming language widely used to build websites and web applications.

According to reports, Cloudflare observed exploitation attempts increase dramatically after the vulnerabilities became public. Several government organizations and businesses temporarily took websites offline while they assessed their exposure and applied security updates.

This incident highlights an important lesson: a vulnerability in widely used software can put many different websites at risk simultaneously.

What Happened?

PHP is a server-side programming language used by websites to process requests, communicate with databases and generate dynamic pages. It is also an important part of popular platforms such as WordPress, Drupal and Joomla.

Security researchers identified two critical PHP vulnerabilities associated with the name php2shell. Depending on the affected software and configuration, these flaws could allow attackers to execute commands remotely on vulnerable servers.

Successful exploitation could potentially allow an attacker to:

  • Access sensitive files or information.
  • Compromise server resources.
  • Interfere with website operations.
  • Attempt to access databases or credentials.
  • Gain greater control over a vulnerable system.

The potential impact is significant because PHP is used across a large part of the web.

Sources: Reuters | Associated Press

Why Are Millions of Hacking Attempts Happening?

According to Cloudflare CEO Matthew Prince, the company observed thousands of exploitation attempts in the hours before public disclosure. The number increased to tens of thousands shortly after disclosure, then hundreds of thousands, and eventually millions.

Why does this happen?

When a serious vulnerability becomes public, attackers can quickly search for systems that may be affected. Automated tools can scan large numbers of internet-facing servers much faster than a person could investigate them manually.

AI may accelerate parts of this process, including vulnerability research and the development of attack techniques. However, not every detected attempt succeeds, and a large number of attempts does not automatically mean that the same number of websites has been compromised.

How Does This Affect WordPress and Other Websites?

PHP vulnerabilities can affect the software underneath a website, not just its custom application code.

For example, a business might have a carefully developed WordPress website with secure passwords and a well-designed theme. If the underlying PHP runtime is vulnerable, the website could still be exposed.

Potentially affected environments include:

  • WordPress websites and plugins that depend on PHP.
  • E-commerce platforms and online stores.
  • Custom PHP applications.
  • Business portals and customer management systems.
  • Websites running outdated or unsupported server software.

The actual risk depends on the PHP version, deployment configuration and available security fixes. Website owners should verify their own environment rather than assume every PHP website is equally vulnerable.

What Should Website Owners Do Now?

1. Check the PHP version

Find out which PHP version your hosting environment uses. For WordPress, you can generally check under Tools → Site Health → Info → Server, although the exact menu may vary.

You can also check through a trusted hosting control panel or server administrator.

2. Apply official security updates

Review the latest security advisories from the official PHP website. Install the appropriate fixed release for your environment, following your hosting provider's guidance.

Do not assume that updating WordPress alone automatically updates the PHP runtime.

3. Update website dependencies

Update WordPress, themes, plugins and other PHP applications to supported, patched versions. Back up the website and database first, and test important functionality after updating.

4. Review server logs

Check web server, application and security logs for unusual requests, unexpected errors, unfamiliar processes or suspicious file changes.

If you suspect a compromise, preserve logs and involve a qualified security professional. Updating the software alone may not remove an attacker's existing access.

5. Strengthen access security

Use unique, strong passwords, multi-factor authentication where available, restricted administrator access and the principle of least privilege.

Keep backups protected and test that you can restore them.

6. Use temporary protections when necessary

A web application firewall may help block some malicious requests, but it should not be treated as a replacement for patching.

If a vulnerable system cannot be secured promptly, follow official cybersecurity guidance and consider temporarily taking it offline until adequate protection is in place.

The Growing Role of AI in Cybersecurity

One notable aspect of this incident is the role of AI-assisted security research in identifying serious software weaknesses.

AI can help researchers inspect large codebases, identify suspicious patterns and investigate potential vulnerabilities. These capabilities may help defenders find problems earlier.

However, similar capabilities could also help attackers analyze vulnerabilities and develop exploitation techniques more quickly.

This creates a challenge for software maintainers: the time available to investigate, fix and deploy patches may become increasingly short.

The best response is not to avoid AI entirely, but to combine responsible security research with careful testing, coordinated disclosure and rapid deployment of verified fixes.

Key Lessons for Developers

This incident offers several important lessons for anyone building or maintaining web applications:

  1. Keep runtimes updated: Secure application code cannot compensate for every vulnerability in its underlying software.
  2. Monitor security advisories: Follow official notices for PHP and the frameworks and libraries your applications use.
  3. Prepare for emergency updates: Maintain backups, staging environments and a tested patching process.
  4. Reduce unnecessary exposure: Disable unused services and restrict access to sensitive systems.
  5. Verify, don't assume: Confirm the installed version, the applied fix and the system's security status.
  6. Plan for incident response: Know how to isolate affected systems, preserve evidence and recover safely.

Conclusion

The reported surge in PHP exploitation attempts demonstrates how quickly a newly disclosed software vulnerability can become a global security concern.

For developers, hosting providers and business owners, the priority is clear: identify affected systems, apply verified security updates, monitor for suspicious activity and prepare for incidents before they happen.

Cybersecurity is not a one-time task. It requires continuous maintenance, timely updates and a clear understanding of the software running behind every website.

Discussion: How does your team manage emergency security updates? Do you patch immediately, test in staging first, or rely on your hosting provider?

Share your experience in the comments.


Further Reading

Disclaimer: This article is for educational and defensive cybersecurity awareness. Check official advisories for the latest technical details and applicable fixes.

Top comments (0)