Skip to main content

FreeScout CVE-2026-40566

| EUVDEUVD-2026-24167 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-04-21 GitHub_M
4.1
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain admin credentials
  2. Delivery
    Access mailbox configuration
  3. Exploit
    Set IMAP/SMTP server to internal target
  4. Install
    Trigger connection test
  5. C2
    Receive service banner in AJAX response
  6. Execute
    Fingerprint internal service
  7. Impact
    Map internal network topology

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The vulnerability requires the attacker to hold an authenticated admin account in FreeScout with permissions to access the mailbox configuration interface and trigger connection tests. No unauthenticated exploitation is possible; CVSS PR:H correctly reflects this high-privilege requirement. The attacker must have network access to FreeScout's web interface (typically AV:N). No special product configuration is required; default FreeScout installations with the mailbox feature enabled are exploitable. Exploitation is limited to TCP port ranges and IP addresses reachable from the FreeScout server's network context. Organizations using network segmentation or outbound firewall rules that restrict the FreeScout server's egress to only authorized mail servers can prevent internal reconnaissance, though this requires explicit configuration beyond FreeScout's built-in protections.

Impact

CVSS 4.1 (AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N) correctly reflects a network-accessible vulnerability with low attack complexity but high privilege barrier (PR:H requires admin role). The severity is mitigated by the admin-only authentication requirement; however, this does not eliminate risk in organizations where multiple administrators exist or admin accounts have broader permissions. EPSS data not provided. Exploitation requires no special conditions beyond admin access and is not reported as actively exploited (no KEV status in input). The vulnerability is technically straightforward (direct parameter to socket function), making exploitation trivial once admin credentials are obtained. Real-world risk depends on deployment context: in single-admin or restricted-access deployments, risk is lower; in larger organizations with shared admin responsibilities or compromised admin accounts, risk increases substantially. The semi-blind SSRF nature (service banners leaked via protocol errors) means this is not a complete information disclosure but enables reconnaissance of internal infrastructure. The scope change (S:C) indicates potential impact to systems beyond FreeScout itself (internal network targets). For environments without network segmentation, this could facilitate lateral movement reconnaissance.

Exploit ScenarioDerived

An administrator (either legitimate with malicious intent or a compromised account) accesses the FreeScout mailbox configuration interface and sets the IMAP server address to an internal IP address such as 192.168.1.100 or a cloud metadata endpoint (169.254.169.254). The admin then triggers the connection test via the fetch_test or send_test AJAX actions. FreeScout opens a raw TCP connection to the specified target without validation, returning port-open/closed differentiation in the response. The attacker-controlled endpoint receives the unsolicited connection attempt, enabling port scanning. If the target is a non-IMAP service (e.g., SSH on port 22 or HTTP), the service banner is captured in IMAP debug output and returned in the AJAX response's log field, revealing service versions and enabling fingerprinting.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 21, 2026

Server-Side Request Forgery (SSRF) in FreeScout versions before 1.8.213 allows authenticated administrators to probe internal networks and fingerprint services via unvalidated IMAP and SMTP connection test functionality. Three AJAX actions in MailboxesController pass attacker-controlled server hostnames and ports directly to fsockopen() and protocol clients without IP validation, hostname restrictions, or internal-range blocklists, enabling port scanning and service banner disclosure through IMAP debug logs and AJAX responses. The vulnerability requires admin authentication but affects confidentiality of internal infrastructure.

RemediationAI

Upgrade FreeScout immediately to version 1.8.213 or later, which includes input validation for IMAP and SMTP server addresses. The patch adds IP validation and hostname restriction logic to the three vulnerable AJAX endpoints. Organizations unable to upgrade immediately should implement network-level compensating controls: restrict outbound TCP connections from the FreeScout server to only authorized mail servers using host-based firewall rules or network segmentation (blocking access to private IP ranges 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 127.0.0.0/8, and 169.254.0.0/16), disable the AJAX mailbox test features via web server rules if not in use, and limit admin role assignment to trusted users only. See GitHub security advisory GHSA-fg98-rgx6-8x4g and commit efe82e31b4a0d4c0b20025d09df0615e8139ff08 for implementation details.

Affected VersionsENISA

freescout < 1.8.213

Affected Packages

euvd freescout fix: 1.8.213

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

FreeScout's mailbox configuration includes IMAP and SMTP server settings that administrators can customize. The vulnerability exists in three AJAX endpoints (fetch_test, send_test, imap_folders) within app/Http/Controllers/MailboxesController.php that call Helper::checkPort() and instantiate IMAP/SMTP client connections using admin-supplied in_server, in_port, out_server, and out_port parameters. These parameters are passed directly to PHP's fsockopen() function and mail protocol libraries without any validation against IP address ranges, private subnets, or localhost. The root cause is absent input validation (CWE-918: Server-Side Request Forgery) combined with commented-out validation logic in connectionIncomingSave(). The codebase includes defensive functions like sanitizeRemoteUrl() and checkUrlIpAndHost() that are deliberately not called in these code paths. In cloud deployments, the metadata endpoint at 169.254.169.254 becomes attackable, potentially leaking credential tokens or instance metadata through protocol error messages captured in debug logs.

Know when Freescout gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 4.1 MEDIUM
AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
Low
Integrity
None
Availability
None

Lifecycle Timeline

3
Patch released
Apr 22, 2026 - 21:10 nvd
Patch available
Patch available
Apr 21, 2026 - 18:01 EUVD
CVE Published
Apr 21, 2026 - 16:04 nvd
MEDIUM 4.1

DescriptionGitHub Advisory

FreeScout is a free self-hosted help desk and shared mailbox. Versions prior to 1.8.213 have a Server-Side Request Forgery (SSRF) vulnerability in the IMAP/SMTP connection test functionality of FreeScout's MailboxesController. Three AJAX actions fetch_test (line 731), send_test (line 682), and imap_folders (line 773) in app/Http/Controllers/MailboxesController.php pass admin-configured in_server/in_port and out_server/out_port values directly to fsockopen() via Helper::checkPort() and to IMAP/SMTP client connections with zero SSRF protection. There is no IP validation, no hostname restriction, no blocklist of internal ranges, and no call to the project's own sanitizeRemoteUrl() or checkUrlIpAndHost() functions. The validation block in connectionIncomingSave() is entirely commented out. An authenticated admin can 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 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, making this a semi-blind SSRF that enables 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. This is distinct from the sanitizeRemoteUrl() redirect bypass (freescout-3) -- different code path, different root cause, different protocol layer. Version 1.8.213 patches the vulnerability.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

CVE-2026-28289 CRITICAL POC
10.0 Mar 03

File upload bypass in FreeScout 1.8.206 — patch bypass for CVE-2026-27636. PoC and patch available. CVSS 10.0.

CVE-2026-27636 HIGH POC
8.8 Feb 25

Remote code execution in FreeScout prior to version 1.8.206 allows authenticated users to upload `.htaccess` files that

CVE-2026-27637 CRITICAL POC
9.8 Feb 25

Predictable password reset tokens in FreeScout help desk before 1.8.206. Weak random number generation allows attackers

CVE-2026-53595 CRITICAL POC
9.4 Jul 20

Anonymous account takeover in FreeScout help desk before 1.8.224 lets an unauthenticated attacker seize the lowest-id ac

CVE-2024-29185 CRITICAL POC
9.0 Mar 22

FreeScout is a self-hosted help desk and shared mailbox. Rated critical severity (CVSS 9.0), this vulnerability is remot

CVE-2025-58163 HIGH POC
8.6 Sep 03

FreeScout is a free help desk and shared inbox built with PHP's Laravel framework. Rated high severity (CVSS 8.6), this

CVE-2024-29184 HIGH POC
8.0 Mar 22

FreeScout is a self-hosted help desk and shared mailbox. Rated high severity (CVSS 8.0), this vulnerability is remotely

CVE-2024-28186 HIGH POC
7.1 Mar 12

FreeScout is an open source help desk and shared inbox built with PHP. Rated high severity (CVSS 7.1), this vulnerabilit

CVE-2024-34698 MEDIUM POC
6.3 May 14

FreeScout is a free, self-hosted help desk and shared mailbox. Rated medium severity (CVSS 6.3), this vulnerability is r

CVE-2024-34697 MEDIUM POC
6.1 May 14

FreeScout is a free, self-hosted help desk and shared mailbox. Rated medium severity (CVSS 6.1), this vulnerability is r

CVE-2026-32754 CRITICAL
9.3 Mar 19

A stored cross-site scripting (XSS) vulnerability exists in FreeScout help desk software versions 1.8.208 and below, whe

CVE-2026-41193 CRITICAL
9.1 Apr 21

Arbitrary file write in FreeScout (prior to 1.8.215) allows authenticated administrators to achieve remote code executio

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy