Introduction #
Short introduction, summed up by AI.
What happened? Security researchers disclosed CVE-2026-109618 and CVE-2026-109619 (CVSS 9.2) affecting the PHP interpreter itself – not WordPress or any specific application. PHP versions prior to the security releases from October 21, 2026 are affected.
The vulnerabilities in detail:
- CVE-2026-109618 allows an internal memory pointer to be overwritten, enabling arbitrary code execution – a shell – on the server. It was already being exploited in the wild before the patch was released.
- CVE-2026-109619 allows an attacker to bypass memory protections and achieve code execution through a crafted request.
Both can be exploited remotely without authentication via manipulated HTTP requests. That’s what makes them so dangerous – every PHP application processing requests is a potential entry point.
Who is affected? Practically every PHP installation processing web requests on unpatched versions
- patched: PHP 8.5.12 / 8.4.27 / 8.3.36 / 8.2.35
- End-of-Life, permanently vulnerable: PHP ≤ 8.1
End of the AI summary.
Post from the german BSI: BSI - Version 1.1: PHP - Kritische Schwachstellen bedrohen Webanwendungen weltweit
How can I scan my services #
This guide got reworked (27.10.2026) since the CVE released on the 21 of October 2026.
To archive my first guide: I used 0xrsydn/php2shell-scan first, which gave me a bunch of false positives. Also, the repository contains a complete RCE exploit logic, automatic PoC downloader and a bunch of more stuff, which did not comply with the README section saying “Defaults are polite enough for production” in my opinion.
This new guide is about a Nuclei template for php2shell. Nuclei is a well known fast, customizable vulnerability scanner.
A template for php2shell can be found here: Github - ademking/php2shell-nuclei-templates.
The Readme tells you to not use it against systems you are not allowed to scan, which I repeat here:
Read the Readme of the repository for more informations about the templates provided inside of it.
Installation #
First of all, we need the Nuclei scanner. An installation guide from Nuclei can be found here.
If installing it on a debian based system like me, follow this steps:
# 1. Download the latest release from the release section of Nuclei's GitHub
wget https://github.com/projectdiscovery/nuclei/releases/latest/download/nuclei_3.11.1_linux_amd64.zip
# 2. Unzip it
unzip nuclei_3.11.1_linux_amd64.zip
# 3. Move the binary to /usr/local/bin
sudo mv nuclei /usr/local/bin/
sudo chmod +x /usr/local/bin/nuclei
# 4. Verify the installation
nuclei --version
After the installation, update the templates of Nuclei if you want:
# Download the templates (stored at ~/nuclei-templates)
nuclei -update-templates
Now we add the php2shell template from the Github Repository mentioned earlier:
# 1. Clone the repo to a temporary location
git clone https://github.com/Ademking/php2shell-nuclei-templates.git /tmp/php2shell-templates
# 2. Create the target folder inside nuclei-templates
mkdir -p ~/nuclei-templates/php2shell
# 3. Copy the templates in
cp /tmp/php2shell-templates/templates/php2shell/*.yaml ~/nuclei-templates/php2shell/
# 4. Validate the YAML syntax (optional)
nuclei -t ~/nuclei-templates/php2shell -validate
# 5. Clean up the temporary clone
rm -rf /tmp/php2shell-templates
Now we can use it to scan an url. Change https://example.com to your domain - and make sure you have permission to scan it! This command only uses the php2shell templates:
nuclei -t ~/nuclei-templates/php2shell -u https://example.com -nt
You can also scan with a specific template from the repository, for example for only CVE-2026-109618:
nuclei -id CVE-2026-109618 -u https://example.com -nt
Read the Github Readme to understand, how the scan excactly works
Bonus: Scan locally for attacks #
Another interesting repository I found is darkfibr/php2shell-detect.
I did not test it yet, but this one allows you to scan your logs and folders for existing attacks, if you have access to the server providing the URL / application you want to test.
Conclusion #
Hope, this short guide helps you fixing the php2shell CVE on your services.
Have to mention, that the web provides a lot of good guides since the CVE dropped.
Feel free to search for other guides, which might provide other tools and tricks to search for the CVE!
If you find anything interesting, you can also provide a link in the comment section below (no registration required), to help others.