The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-40566

CVE-2026-40566: FreeScout SSRF Vulnerability

CVE-2026-40566 is a server-side request forgery flaw in FreeScout that allows authenticated admins to scan internal networks and fingerprint services. This post covers technical details, affected versions, and patches.

Published: April 23, 2026

CVE-2026-40566 Overview

CVE-2026-40566 is a Server-Side Request Forgery (SSRF) vulnerability affecting FreeScout, a free self-hosted help desk and shared mailbox application. The vulnerability exists in the IMAP/SMTP connection test functionality within FreeScout's MailboxesController, allowing authenticated administrators to abuse the connection testing feature to probe internal network resources and cloud metadata endpoints.

The vulnerability stems from three AJAX actions—fetch_test (line 731), send_test (line 682), and imap_folders (line 773)—in app/Http/Controllers/MailboxesController.php that pass admin-configured server and port values directly to fsockopen() via Helper::checkPort() and to IMAP/SMTP client connections without any SSRF protection mechanisms.

Critical Impact

Authenticated administrators can leverage this SSRF vulnerability to perform internal network port scanning, service fingerprinting, and potentially leak cloud metadata from endpoints like 169.254.169.254. Service banners and error responses are captured in IMAP debug logs and returned in AJAX responses.

Affected Products

  • FreeScout versions prior to 1.8.213

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40566 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40566

Vulnerability Analysis

This SSRF vulnerability allows an authenticated admin to configure a mailbox's IMAP or SMTP server to point at any internal host and port, then trigger a connection test. The server opens raw TCP connections (via fsockopen()) and protocol-level connections (via IMAP client or SMTP transport) to the attacker-specified target.

The vulnerability is particularly concerning because it operates as a semi-blind SSRF—while direct response content isn't fully returned, the response differentiates open from closed ports, enabling internal network port scanning. When the IMAP client connects to a non-IMAP service, the target's service banner or error response is captured in the IMAP debug log and returned in the AJAX response's log field, enabling service fingerprinting.

In cloud environments, the metadata endpoint at 169.254.169.254 can be probed and partial response data may be leaked through protocol error messages, potentially exposing sensitive cloud configuration data, IAM credentials, or instance metadata.

Root Cause

The root cause is a complete lack of SSRF protection in the connection testing functionality. Specifically:

  • No IP validation is performed on user-supplied server addresses
  • No hostname restrictions or blocklists for internal ranges (RFC 1918, link-local addresses)
  • No utilization of the project's own sanitizeRemoteUrl() or checkUrlIpAndHost() functions
  • The validation block in connectionIncomingSave() is entirely commented out

The in_server/in_port and out_server/out_port values from admin configuration are passed directly to network functions without sanitization. This is distinct from the sanitizeRemoteUrl() redirect bypass vulnerability—it involves a different code path, different root cause, and operates at a different protocol layer.

Attack Vector

An attacker with administrative access to FreeScout can exploit this vulnerability through the mailbox configuration interface:

  1. Access the mailbox settings and configure the IMAP or SMTP server to point to an internal target (e.g., 127.0.0.1, 192.168.x.x, or 169.254.169.254)
  2. Specify the target port to probe
  3. Trigger a connection test via one of the vulnerable AJAX actions
  4. Observe the response to determine port state (open/closed) and capture service banners from the debug log

The vulnerability is exploitable over the network and requires high privileges (administrator access). While the scope is changed (affecting resources beyond the vulnerable component), confidentiality impact is limited to partial information disclosure through error messages and service banners.

Detection Methods for CVE-2026-40566

Indicators of Compromise

  • Unusual outbound connections from the FreeScout server to internal network ranges (RFC 1918 addresses)
  • Connection attempts to cloud metadata endpoints (169.254.169.254)
  • Mailbox configurations with internal IP addresses or localhost as IMAP/SMTP servers
  • High frequency of connection test AJAX requests from administrative sessions

Detection Strategies

  • Monitor web application logs for requests to /mailboxes/*/fetch_test, /mailboxes/*/send_test, and /mailboxes/*/imap_folders endpoints
  • Implement network-level monitoring for FreeScout server connections to internal IP ranges or sensitive endpoints
  • Review mailbox configurations for suspicious server entries pointing to internal resources
  • Alert on connection attempts to port 80/443 on cloud metadata IP addresses from application servers

Monitoring Recommendations

  • Deploy web application firewall rules to detect SSRF patterns in mailbox configuration parameters
  • Enable detailed logging for the MailboxesController class to capture connection test activities
  • Implement egress filtering to restrict FreeScout server's ability to connect to internal networks
  • Configure SIEM alerts for connection patterns consistent with port scanning behavior

How to Mitigate CVE-2026-40566

Immediate Actions Required

  • Upgrade FreeScout to version 1.8.213 or later immediately
  • Audit existing mailbox configurations for any suspicious server addresses pointing to internal resources
  • Review administrative access logs for signs of exploitation
  • Consider implementing network segmentation to limit the FreeScout server's access to internal resources

Patch Information

FreeScout version 1.8.213 addresses this vulnerability. The fix is available through:

  • GitHub Release 1.8.213
  • GitHub Commit Details

For complete vulnerability details, refer to the GitHub Security Advisory GHSA-fg98-rgx6-8x4g.

Workarounds

  • Restrict administrative access to trusted users only until patching is complete
  • Implement network-level egress filtering to prevent the FreeScout server from connecting to internal IP ranges and cloud metadata endpoints
  • Deploy a web application firewall with SSRF detection rules to block requests containing internal IP addresses in server configuration fields
  • Consider disabling the connection test functionality at the web server level by blocking the vulnerable AJAX endpoints until the patch can be applied
bash
# Example: Block access to vulnerable endpoints using .htaccess (temporary mitigation)
# Add to FreeScout's .htaccess file

# Block connection test endpoints until patched
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^mailboxes/.*/fetch_test$ - [F,L]
    RewriteRule ^mailboxes/.*/send_test$ - [F,L]
    RewriteRule ^mailboxes/.*/imap_folders$ - [F,L]
</IfModule>

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeSSRF

  • Vendor/TechFreescout

  • SeverityMEDIUM

  • CVSS Score4.1

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-918
  • Technical References
  • GitHub Commit Details

  • GitHub Release 1.8.213

  • GitHub Security Advisory GHSA-fg98-rgx6-8x4g
  • Related CVEs
  • CVE-2026-40496: FreeScout Auth Bypass Vulnerability

  • CVE-2026-40497: FreeScout Privilege Escalation Flaw

  • CVE-2026-40589: FreeScout Information Disclosure Flaw

  • CVE-2026-40591: FreeScout Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English