Cybersecurity
How AI Helped Detect PHP Vulnerabilities and Strengthen Cybersecurity

Imagine opening your favourite website to read the news, shop online or access an important service, only to discover that the technology running behind it may have a serious security weakness. This is the kind of concern that has recently brought PHP into the global cybersecurity spotlight.

PHP is one of the technologies that quietly keeps many websites running. However, the discovery of two critical security vulnerabilities in its underlying system has raised concerns among technology companies, cybersecurity experts and government agencies. The flaws, collectively known as PHP2Shell, have highlighted the risks hidden in software that millions of people rely on every day.

What makes this discovery particularly interesting is the role of artificial intelligence (AI). Advanced AI-assisted tools helped researchers identify weaknesses that had reportedly remained unnoticed for years. The discovery has prompted an urgent response, with website owners being advised to update their systems and take necessary precautions against potential attacks.

What Is PHP and Why Do So Many Websites Use It?

Most people have probably never heard of PHP, but they may use websites powered by it every day.

PHP stands for PHP: Hypertext Preprocessor. It is a programming language that works behind the scenes to help websites process information and respond to users' requests.

For example, when you log in to a website, search for a product or access information stored in an online database, PHP may be helping that website complete the process. It is also widely used with WordPress, a platform that allows people and businesses to create and manage websites without building everything from scratch.

PHP has been around since the 1990s and continues to play an important role in web development. Its widespread use is one reason the recent security discovery has attracted so much attention. When a weakness affects a technology used by so many websites, the potential consequences can extend far beyond a single company.

What Went Wrong? Understanding PHP2Shell

Cybersecurity researchers identified two serious vulnerabilities in PHP, which have been associated with the name PHP2Shell. These flaws affect the underlying PHP engine and could potentially allow attackers to gain control of vulnerable servers.

The two reported vulnerabilities are identified by their CVE numbers: CVE-2026-109618 and CVE-2026-109619.

The first, CVE-2026-109618, involves a problem with how PHP handles an out-of-memory situation. In simple terms, when a computer runs short of available memory, software must manage the situation carefully. If that process goes wrong, it can lead to memory corruption or leave a request in an invalid state.

The second, CVE-2026-109619, involves a memory-management problem known as a use-after-free error. This happens when software tries to use a piece of memory after it has already been released. It is similar to trying to use a key that has been discarded and reassigned, potentially causing unexpected and unsafe behaviour.

These may sound like highly technical problems, but their possible consequences are serious. Under certain conditions, attackers could exploit the vulnerabilities to run unauthorised code on affected servers without logging in first. This is known as unauthenticated remote code execution, or RCE.

If an attacker successfully gains that level of access, sensitive information, databases and website operations could be put at risk. However, the actual impact depends on the affected system, its configuration and the attacker's level of access.

How Did Artificial Intelligence Help Find the Problem?

One of the most striking aspects of this incident is how AI-assisted research helped uncover the flaws.

Modern software can be extremely complicated, with large amounts of code written and maintained over many years. Even experienced developers cannot easily inspect every line and anticipate every possible failure. As a result, some security weaknesses can remain hidden for a long time.

AI tools can help researchers analyse code, identify unusual patterns and investigate potential weaknesses more efficiently. In this case, those capabilities helped bring attention to vulnerabilities that might otherwise have remained undetected.

However, AI brings both opportunities and challenges. The same technology that helps security experts find weaknesses could also help cybercriminals develop attacks more quickly.

This means the future of cybersecurity will depend not only on how effectively AI is used to detect threats, but also on how quickly developers and organisations respond to the problems it uncovers.

Why Has the Discovery Raised Global Concerns?

The biggest concern is the number of websites that depend on PHP. A vulnerability in the underlying software can potentially affect multiple websites and services, especially when their systems have not been updated.

Following the discovery, organisations were urged to review their security arrangements and install the necessary fixes. Some organisations may also need to temporarily take vulnerable websites offline if they cannot secure them quickly enough.

Smaller businesses could face additional difficulties. Unlike large technology companies, they may not have dedicated security teams or the resources to monitor their websites continuously. If their software is outdated, they may not even realise that their systems need urgent attention.

Another concern is the possibility of attackers using publicly available technical details to identify vulnerable servers. Once information about a security flaw becomes widely known, organisations may have less time to respond before attackers attempt to exploit it.

The incident is therefore a reminder that maintaining a website involves more than designing attractive pages and providing useful services. Security updates and regular monitoring are equally important.

Which PHP Versions Need Immediate Updates?

To address the reported vulnerabilities, security fixes were released for the following PHP versions:

  • PHP 8.5.12
  • PHP 8.4.27
  • PHP 8.3.36
  • PHP 8.2.35

Website owners and administrators should check which version their servers are running and ensure that they have installed an appropriate security update.

Those who rely on a hosting company or an external web developer should contact them and ask whether the PHP security patches have been applied. People who manage their own websites should make the update a priority.

It is also important to remember that updating WordPress or its plugins alone may not fix a vulnerability in the PHP engine itself. The underlying PHP runtime must also be secured.

If an organisation cannot apply the necessary fix promptly, it should seek professional security advice and consider temporary protective measures, including taking the affected website offline when appropriate.

What Does This Mean for Ordinary Internet Users?

For most people who simply browse websites, there is no need to panic or make technical changes to their personal devices solely because of this incident.

The main responsibility lies with website owners, developers and hosting providers. Nevertheless, users should remain alert to official security announcements from the services they use.

They should also be careful with suspicious emails and messages claiming to provide emergency security updates. Cybercriminals sometimes take advantage of frightening news to trick people into clicking malicious links, downloading unsafe files or sharing passwords.

If a trusted service advises you to change your password or take another protective step, follow its official instructions rather than links received from unknown sources.

Conclusion: A Lesson for the Future of Cybersecurity

The PHP2Shell discovery highlights an important reality: even widely used technologies that have existed for decades can contain security weaknesses that go unnoticed for years.

It also demonstrates how AI is changing cybersecurity by helping researchers identify problems that might otherwise take considerable time and effort to discover. But finding a weakness is only the beginning. The real protection comes when developers release fixes, organisations install them promptly and security teams check whether any damage has already occurred.

As more of our daily lives move online, cybersecurity can no longer be treated as an afterthought. Regular software updates, responsible use of AI and greater awareness of online threats are essential to keeping digital services safe.

Ultimately, this incident is not just about PHP or a particular software flaw. It is a reminder that the safety of the internet depends on how seriously we take the responsibility of protecting the technology behind it.

← Back to Blog