“Mail2Shell”, Zero-Click Unauthenticated RCE in FreeScout (CV
A patch for an authenticated file-upload RCE in FreeScout could be bypassed by prefixing a dotfile name with an invisible Unicode character, so the dotfile check passed but the character was later stripped, writing a real .htaccess to disk. Because FreeScout automatically imports email attachments, an attacker could send a crafted email with a .htaccess and a PHP shell disguised as .txt to get unauthenticated remote code execution.
Published on meetcyber.net
Tracked as CVE-2026–28289, this vulnerability allows attackers to execute arbitrary commands on the server simply by sending a specially crafted email.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the filename validation ran before Unicode formatting characters were stripped, so a leading zero-width space hid the dot from the dotfile check and was removed later, producing a real .htaccess.
Impact
An unauthenticated attacker could execute arbitrary commands on the FreeScout server, leading to full server compromise, exposure of support tickets and credentials, and lateral movement.
What the attacker needed
FreeScout up to 1.8.206; Apache with .htaccess overrides enabled; Ability to send email to a monitored mailbox; No authentication needed
The fix
The vulnerability was fixed in FreeScout 1.8.207; additionally, organisations should disable .htaccess overrides, prevent script execution in upload directories, and store attachments outside the web root.
How it was found
- Send an email with an attachment named with a leading zero-width space followed by .htaccess, containing a rule to run .txt files as PHP.
- Send a second email attachment containing a PHP script saved with a .txt extension.
- FreeScout polls the mailbox and saves the attachments to the storage/attachments directory.
- Access the uploaded .txt file through the web interface to trigger PHP execution and run system commands.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
FreeScout is a help desk program that reads incoming emails and saves their attachments to a folder on the web server. The developers tried to block dangerous files like .htaccess (a configuration file that can make the server run other files as code) by checking the file name, but they checked before removing an invisible character. An attacker could hide that character at the start of the name so the check missed it, and the server later removed the character and saved a real .htaccess, letting a second file run commands on the server.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.