What is PHP and why is everyone panicking about it?

Bugs in one of the pillars of the WWW have caused worldwide alarm
A stuffed elephant toy labeled PHP standing on a computer keyboard
Representative imageBen Griffiths/Unsplash
Published on: 

Governments and cybersecurity agencies around the world have urged websites to address two critical security flaws in PHP, a programming language that powers a large part of the internet.

The vulnerabilities were discovered and reported widely on October 20. The PHP Foundation, the not-for-profit organisation that maintains the PHP code, released a fix on Wednesday, but not before the incident triggered global alarm.

What is PHP?

PHP is an open-source scripting language that is more than 30 years old.

An estimated 70% of websites, including content management systems and publishing template systems, are built on PHP.

"PHP is everywhere. It quietly powers WordPress, Drupal, Joomla, and Magento sites, shared hosting platforms, control panels, and an awful lot of software that doesn't even advertise that it runs PHP under the hood," cybersecurity company Huntress said in a blog post.

What happened?

Between July and August this year, researchers at cybersecurity firms Calif and Wiz discovered these bugs. On October 20, a post on cybersecurity news platform Hacker News claimed that two critical PHP vulnerabilities were about to be publicly disclosed. The post was later taken down, but its screenshots had already circulated on social media.

The two vulnerabilities, collectively named “PHP2Shell”, could allow attackers to take control of affected web servers without prior access or authentication. Such access could enable attackers to steal sensitive data, disrupt services, or move deeper into a network.

The main issue is that these vulnerabilities “sit in parts of PHP that nearly every request touches: memory management and error handling," according to the PHP Foundation.

The flaws work by corrupting a website's memory through a request, which can then be exploited to launch an attack. They could also “provide a direct path to the server’s file system or database,” the US National Security Agency said.

Both bugs were rated 9.2/10 on the CVSS v4.0 severity scale.

"When a critical bug lands in PHP itself, rather than in one app built on top of it, the number of places you have to go looking to identify vulnerable PHP versions gets very big, very fast," said the Huntress post.

On October 21, the PHP Foundation announced a security release to address the vulnerabilities and urged users to upgrade to the patched version immediately. Some organisations had to temporarily shut down their websites in order to install the updates. Several services resumed operations after their systems were updated.

How does this affect India?

PHP powers a large share of websites and custom web applications widely used by Indian businesses, educational institutions, and public-facing portals.

On October 21, India's Computer Emergency Response Team, CERT-In, issued an alert terming the severity of the incident 'critical'. It said all organisations and individuals using PHP were potentially exposed to remote code execution and complete system compromise.

The same day, CERT-In also flagged critical vulnerabilities in digital certificates issued by eMudhra, a Bangalore-based certifying authority that helps secure websites, software, and online communications. This could allow attackers to create fake security certificates and impersonate websites that users trust.

What's next?

Releasing a fix does not mean that every vulnerable website has been secured. Organisations must identify all their PHP installations, check which versions require updates, and ensure the patches are applied.

Taking an affected service offline may be necessary if it cannot be secured immediately, cybersecurity company Hadrian said.