Hackers Use Public PHP2Shell Exploits to Launch Automated Attacks on Websites

Hackers are using publicly available PHP2Shell exploit tools to scan websites and launch automated attacks against vulnerable PHP servers.

Researchers have identified scripts that collect target information, test upload handling, and attempt remote command execution through specially crafted HTTP requests.

The activity shows how quickly disclosed vulnerabilities can become tools for widespread attacks. PHP2Shell covers two critical PHP engine vulnerabilities, CVE-2026-109618 and CVE-2026-109619.

Both involve unsafe memory handling and can allow attackers to execute code without logging in. PHP released fixes on October 21, 2026, after details leaked before the planned disclosure.

The flaws affect the PHP runtime rather than a specific website plugin or framework. Updating WordPress, Laravel, or application code alone therefore does not remove the underlying exposure. Administrators must address the PHP software serving their websites.

PHP2Shell Exploits Target Websites

Hunt.io identified exposed directories containing PHP2Shell scanners, probes, and exploitation scripts. Its investigation found 146 matching files, including tools referencing the upload progress feature associated with the vulnerabilities.

These files show attackers assembling separate discovery and exploitation stages into automated workflows.

One server, 206.188.197[.]105, hosted tooling associated with attempts against 123 servers across cloud providers, shared hosting platforms, and internet service providers.

Flowchart of exploitation (Source: akatsukilegion)
Flowchart of exploitation (Source: akatsukilegion)

Around 57 targets ran PHP, including many using unsupported releases. However, Hunt.io reported that none of those targets was successfully exploited in the observed activity.

Other tools inspect response headers, session cookies, and website content to identify likely PHP deployments.

Upload probes then submit multipart requests containing the PHP_SESSION_UPLOAD_PROGRESS field and examine the responses for signs that session tracking is active. Such responses indicate a possible attack surface, not proof of successful exploitation.

A separate exploit examined by researchers targeted PHP 8.4.26 running under Apache mod_php. Its workflow recycled PHP workers, leaked memory addresses through session cookies, and attempted to execute a shell command.

The leaked addresses helped bypass address space layout randomization, a protection that makes memory locations harder to predict.

Targeting memory corruption (Source: akatsukilegion)
Targeting memory corruption (Source: akatsukilegion)

The vulnerabilities involve use after free, where software continues using memory after releasing it. One flaw involves failed cleanup following an out of memory error. Session upload tracking provides a confirmed route into the vulnerable request handling code.

Because PHP processes upload data before website code runs, application authentication and input checks cannot reliably stop the underlying bug.

However, edge filtering can block known attack patterns and should remain enabled while administrators patch, akatsukilegion said.

Administrators should install PHP 8.2.35, 8.3.36, 8.4.27, or 8.5.12, or a newer fixed release appropriate for their branch, and restart PHP workers. Unsupported deployments require a supported upgrade or a verified vendor backport.tenable+1

Join 16,000+ SOC teams using ANY.RUN to streamline threat investigations and reduce manual effort. Explore for your team 

Varshini
Varshini
Varshini is a Cyber Security expert in Threat Analysis, Vulnerability Assessment, and Research. Passionate about staying ahead of emerging Threats and Technologies..

Trending News

Related Stories