Cloudanix VulnDB

CVE-2023-48788

Critical · 9.8 CISA KEV · ransomware

CVSS

9.8

EPSS

98.4%

Published

Mar 12, 2024

CISA due date

Apr 15, 2024

Cloudanix analysis

Act now SSVC: Act

Attackers can remotely break into vulnerable Fortinet endpoint management servers and may use that access to spread ransomware or disrupt managed devices.

Active In The Wild Wormable
Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Trivial
Impact
Remote Code Execution
Component
Application
Class
SQL Injection
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

This vulnerability is an unauthenticated network-reachable SQL injection in Fortinet FortiClient Enterprise Management Server. Specially crafted packets can cause the EMS application to incorporate attacker-controlled input into SQL commands without proper neutralization. Because the CVSS vector indicates network access, low complexity, no privileges, and no user interaction, a remote attacker can potentially read or modify EMS database contents and, in vulnerable configurations, pivot from database manipulation to unauthorized command or code execution on the EMS server. Successful exploitation can compromise confidentiality, integrity, and availability of the FortiClient EMS management plane.

Why it matters to the business

Compromise of FortiClient EMS can undermine centralized endpoint management, allowing attackers to tamper with endpoint policy, access sensitive management data, disrupt endpoint operations, or use the EMS server as a foothold for broader intrusion. This issue is listed in CISA KEV, has very high EPSS likelihood, is reported as actively exploited in the wild, and is associated with ransomware activity including Medusa Ransomware, so unpatched internet-accessible or broadly reachable EMS deployments should be treated as urgent incident-response priorities. The CISA remediation deadline of 2024-04-15 has already passed, increasing regulatory and operational risk for organizations subject to KEV-driven remediation expectations.

How an attack unfolds

An attacker first identifies a reachable FortiClient EMS service running an affected 7.2.0 through 7.2.2 or 7.0.1 through 7.0.10 version. The attacker then sends specially crafted network packets that place SQL metacharacters or expressions into a vulnerable server-side query path. If the server is vulnerable, the injected SQL executes in the context of the EMS database connection, enabling unauthorized database reads or writes. Depending on database permissions and EMS configuration, the attacker may escalate from database manipulation to operating-system command execution, for example by abusing database execution features or writing data that causes the EMS application to run attacker-controlled commands. After gaining execution, an attacker may deploy web shells or tools, create or alter administrative access, stage credential theft, disable security controls, move laterally, and ultimately deploy ransomware. Public exploitation context includes KEV listing, active in-the-wild exploitation, and ransomware use, so post-exploitation activity should be assumed possible if a vulnerable EMS instance was exposed before remediation.

How to fix it

Upgrade Fortinet FortiClient Enterprise Management Server to a fixed release immediately. Affected ranges are FortiClientEMS 7.2.0 through 7.2.2 and 7.0.1 through 7.0.10; upgrade to FortiClientEMS 7.2.3 or later, or 7.0.11 or later, following Fortinet guidance and release notes. If immediate upgrade is not possible, restrict EMS access to trusted administrative networks only, block internet exposure, enforce VPN or bastion access, apply host firewall rules, monitor the EMS and database servers closely, and consider taking exposed vulnerable EMS instances offline until patched. Because exploitation is active and ransomware-associated, remediation should include credential rotation for EMS administrators and related service accounts, review of EMS-created or modified accounts, and forensic triage if the server was reachable by untrusted networks while vulnerable.

How to confirm the fix worked

Confirm the installed FortiClient EMS version from the application console, package inventory, file metadata, or Fortinet-supported command/management interface, and verify it is 7.2.3 or later for the 7.2 branch or 7.0.11 or later for the 7.0 branch. Validate that the EMS service is not reachable from the public internet or untrusted networks unless explicitly required and protected. Re-run authenticated vulnerability scans or vendor-safe detection checks after upgrading. Review change records and file timestamps to confirm the upgrade completed successfully and EMS services restarted cleanly. Validate that no unexpected EMS administrator accounts, policy changes, database changes, scheduled tasks, services, or startup entries appeared before or after patching.

Typical attack path

  1. Reconnaissance for Fortinet FortiClient Enterprise Management Server instances, especially internet-facing or VPN-accessible management servers.
  2. Version identification to determine whether the target is running FortiClientEMS 7.2.0-7.2.2 or 7.0.1-7.0.10.
  3. Delivery of crafted packets containing SQL injection content to the vulnerable EMS service.
  4. Execution of attacker-controlled SQL against the EMS backing database.
  5. Database enumeration, modification of EMS data, or creation/alteration of management accounts or configuration.
  6. Attempted escalation from SQL injection to command execution using database or application capabilities.
  7. Deployment of remote access tooling, credential theft, persistence, lateral movement, data theft, or ransomware payloads.

How to detect it

Investigate FortiClient EMS application logs, Windows Event Logs, web or reverse-proxy logs in front of EMS, database logs, EDR telemetry, process creation logs, service creation events, scheduled task events, and firewall/netflow records. Look for SQL injection patterns in requests or EMS protocol traffic, especially SQL keywords, quote/comment metacharacters, time-delay probes, and attempts to invoke database command-execution features. On Windows, prioritize process lineage where the EMS service process or SQL Server process spawns command interpreters or scripting tools such as cmd.exe, powershell.exe, wscript.exe, cscript.exe, mshta.exe, rundll32.exe, regsvr32.exe, certutil.exe, bitsadmin.exe, curl.exe, or wget.exe. Review database audit logs for use of xp_cmdshell, sp_configure, OLE automation procedures, suspicious CREATE LOGIN/USER statements, or abnormal SELECT/UPDATE activity against EMS-related tables. Examine EMS administrator accounts, policy changes, deployment packages, and endpoint assignments for unauthorized modifications. Check for new Windows services, scheduled tasks, startup items, recently dropped executables, archive files, credential-dumping tools, remote access tools, and ransomware notes. Correlate suspicious inbound connections to EMS with immediate outbound connections to unfamiliar IP addresses, payload downloads, SMB/RDP activity, or authentication attempts to other internal systems. Because this vulnerability is KEV-listed and ransomware-associated, absence of exploit strings in application logs should not be considered proof of no compromise; use endpoint and database forensics as well.

  • FcmDaemon.exe
  • FortiClientEMS
  • FortiClient Enterprise Management Server
  • C:\Program Files (x86)\Fortinet\FortiClientEMS\
  • C:\Program Files\Fortinet\FortiClientEMS\
  • sqlservr.exe
  • xp_cmdshell
  • sp_configure
  • WAITFOR DELAY
  • UNION SELECT
  • OR 1=1
  • '--
  • /*
  • */
  • cmd.exe /c
  • powershell.exe -enc
  • powershell -EncodedCommand
  • certutil.exe -urlcache
  • bitsadmin.exe /transfer
  • curl.exe http
  • wget.exe http
  • mshta.exe http
  • rundll32.exe javascript:
  • regsvr32.exe /s /n /u /i:
  • vssadmin.exe delete shadows
  • wbadmin delete catalog
  • bcdedit /set {default} recoveryenabled no
  • wevtutil cl
  • Medusa

What your security team should do

  • Immediately identify all Fortinet FortiClient EMS deployments and prioritize any affected version that is internet-facing, VPN-accessible, or reachable from user networks.
  • Upgrade affected systems to FortiClientEMS 7.2.3 or later, or 7.0.11 or later, and verify successful remediation.
  • Treat any previously exposed vulnerable EMS server as potentially compromised; initiate forensic review rather than relying only on patch status.
  • Hunt for SQL injection strings, database execution abuse, suspicious child processes from EMS or SQL Server processes, new EMS administrator accounts, and ransomware staging activity.
  • Restrict EMS access to dedicated administrative networks and enforce firewall allowlisting, VPN, MFA, and least-privilege administrative access.
  • Rotate EMS administrative credentials, related service account credentials, and credentials stored or managed through EMS if compromise cannot be ruled out.
  • Review endpoint management policies for unauthorized changes that could weaken endpoint security or enable attacker persistence.
  • Increase monitoring for Medusa Ransomware-style post-exploitation activity, including credential dumping, lateral movement, data staging, and ransomware deployment.
  • Document KEV remediation evidence because the CISA due date of 2024-04-15 has passed.

The record

A improper neutralization of special elements used in an sql command ('sql injection') in Fortinet FortiClientEMS version 7.2.0 through 7.2.2, FortiClientEMS 7.0.1 through 7.0.10 allows attacker to execute unauthorized code or commands via specially crafted packets.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities