Exploit database

Vulnerability

CVE-2026-27636

FreeScout: Missing .htaccess in Restricted File Extensions Allows Remote Code Execution on Apache

Vulnerability details

Score
8.8
Severity
high

CVSS 3.1 · GitHub_M

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Description

FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. Prior to version 1.8.206, FreeScout's file upload restriction list in `app/Misc/Helper.php` does not include `.htaccess` or `.user.ini` files. On Apache servers with `AllowOverride All` (a common configuration), an authenticated user can upload a `.htaccess` file to redefine how files are processed, enabling Remote Code Execution. This vulnerability can be exploited on its own or in combination with CVE-2026-27637. Version 1.8.206 fixes both vulnerabilities.

CVE Program

Exploit source choices

2 sources
FreeScout Unauthenticated RCE via ZWSP .htaccess Bypass
MSF-multi--http--freescout_htaccess_rceMetasploitLinux,PHP,Unix,Windows / remotePreferred

This module exploits an unauthenticated remote code execution vulnerability in FreeScout <= 1.8.206 (CVE-2026-28289). The sanitizeUploadedFileName() function checks for dot-prefixed filenames before stripping Unicode format characters (ZWSP U+200B), allowing .htaccess upload via email attachment. A crafted email is sent via SMTP to a FreeScout mailbox. When fetched by the IMAP/POP3 cron (typically every 60s), the ZWSP is stripped and the attachment is stored as .htaccess. The file uses SetHandler to make itself executable as PHP, achieving code execution when requested via HTTP. Requires a valid mailbox email address and web-accessible attachment storage (storage:link pointing to storage/app/).

2026-03-01freescout_htaccess_rce.rb
rav1010/cve-2026-27636
GH-470005b0ca73a583459954214839e27dGitHubUnofficial GitHub source

Freescout-passive-scanner

2026-03-042 files · 1 stars