Two critical security vulnerabilities in the PHP programming language highlight the risks that can arise when flaws appear in the core components upon which websites rely. On October 21, the PHP development team announced the release of security updates to address two vulnerabilities that, if successfully exploited, would allow remote code execution on vulnerable servers, even without an attacker having an account or logging into the site. The Cyber Security Agency of Singapore classified the vulnerabilities as critical and urged organizations to update their systems immediately.
Hot Topics
The issue gains importance from the widespread use of the PHP language in running many websites and web applications, but this widespread use does not mean that all websites that rely on it are vulnerable to hacking, as the actual risk depends on the version of the language used, the availability and installation of security patches, and the nature of the operating environment and its associated settings.
What is the nature of the "PHP2Shell" vulnerability?
The two vulnerabilities, designated CVE-2026-109618 and CVE-2026-109619, are known as PHP2Shell vulnerabilities. Their severity stems from their presence within the PHP environment itself, rather than necessarily in the code written by web developers. According to PHP and the Singapore Cyber Security Agency, each vulnerability received a score of 9.2 out of 10 on the fourth version of the Common Vulnerability Assessment System.
The first vulnerability (CVE-2026-109618) is related to a flaw in handling out-of-memory situations. When PHP encounters a situation where there is not enough memory to continue processing a request, the process may exceptionally stop before some internal data has been initialized. If the request cleanup procedures later treat this incomplete data as if it were intact, a path may be created that allows malicious code to be executed.
The second vulnerability (CVE-2026-109619) is related to a use-after-free memory issue. This occurs when parts of the program continue to reference a previously freed memory area instead of handling valid and properly formatted data. Under certain conditions, subsequent request processing could take advantage of this flaw, potentially leading to exploitation.
How can vulnerabilities be exploited to gain access to servers?
The danger begins when the attacker sends a request designed to trigger a vulnerability in the affected PHP environment. This may lead to a disruption in memory management or the internal state of the processing operation. This disruption is then exploited to affect the execution of the program. If the attack succeeds in achieving what is known as Remote Code Execution, the attacker may be able to execute commands within the privileges granted to the process running the server.
One of the concerning aspects is that, in some operating environments, an attack can occur before the application code itself is executed. Therefore, relying solely on on-site login is insufficient to prevent exploitation. Datadog, in a published security analysis, explained that application-level authentication does not prevent attacks in cases where PHP processes the malicious request before it reaches the application logic.
Tags:
technology


