Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2023-48788: Unauthenticated SQL Injection Leading to Remote Code Execution in Fortinet FortiClient EMS

Published Mar 12, 2024 · Updated 8 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS9.8Critical · v3.1
EPSS98.4%100th percentile
CISA KEVYesAdded Mar 25, 2024
In the wildActivePer CISA KEV
Vendor
Fortinet
IdentifiersCVE-2023-48788CWE-89 · Improper Neutralization of Special…

CVE-2023-48788 is an unauthenticated SQL injection vulnerability in the DAS component of Fortinet FortiClient Endpoint Management Server (EMS), affecting versions 7.0.1–7.0.10 and 7.2.0–7.2.2. Specially crafted endpoint messages received through the FCMdaemon service on TCP port 8013 are forwarded to FCTDas for database processing. Improper neutralization of the FCTUID request parameter allows attacker-controlled SQL statements to execute against the Microsoft SQL Server backend. Attackers can enable and invoke the xp_cmdshell stored procedure to execute operating-system commands with SYSTEM privileges. The vulnerability is actively exploited and is included in CISA's Known Exploited Vulnerabilities catalog.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits unauthenticated remote command execution with SYSTEM privileges on the affected EMS server, compromising its confidentiality, integrity, and availability. Observed intrusions have deployed unauthorized remote management tools and backdoors, stolen credentials, conducted internal reconnaissance, and enabled lateral movement. The resulting foothold can support data exfiltration, persistent access, and subsequent ransomware deployment; these follow-on outcomes depend on additional attacker actions and network access.

Mitigation

If you can’t patch tonight, do this now.

While upgrading, deploy Fortinet IPS signature FG-VD-54509.0day:FortiClientEMS.DAS.SQL.Injection, available in FMWP database update 27.750. Restrict inbound TCP port 8013 to authorized managed endpoints and eliminate unnecessary internet exposure. Monitor unexpected endpoint connections and SQL Server processes spawning command shells or PowerShell, particularly when followed by external downloads or remote management installation. Use application controls to prevent unauthorized RMM tools and network segmentation to limit post-compromise movement.

Remediation

Patch, then assume compromise.

Upgrade FortiClient EMS 7.0.1–7.0.10 to 7.0.11 or later, and 7.2.0–7.2.2 to 7.2.3 or later, using a currently supported fixed release. FortiClient EMS 6.4 is not affected. Investigate previously exposed or belatedly patched systems for compromise, including unauthorized remote management installations, suspicious SQL Server command execution, credential theft, and persistence. Patching does not remove access mechanisms already established by attackers.

Public exploits

Exploits

2 exploits validated by Mallory's analysis.

View more in app →
forticlient_ems_fctid_sqli.rbThis repository contains a single Metasploit module (Ruby file) that exploits CVE-2023-48788, a SQL injection vulnerability in Fortinet FortiClient EMS (Endpoint Management Server) versions 7.2.0-7.2.2 and 7.0.1-7.0.10 on Windows. The exploit targets the FcmDaemon.exe service, which listens on TCP port 8013 (typically over SSL). By injecting SQL commands into the FCTUID parameter of inter-service messages, the module enables the xp_cmdshell feature and executes arbitrary OS commands as SYSTEM, resulting in unauthenticated remote code execution. The exploit is weaponized, allowing for customizable payloads via the Metasploit framework. The repository is structured as a single Ruby file under the Metasploit modules directory, and includes references to public advisories and a Python PoC. No hardcoded IPs or domains are present, but the default port and service names are fingerprintable. The exploit requires at least one endpoint to be enrolled in the EMS for the vulnerable services to be active.Disclosed Apr 21, 2024 · Framework: metasploit · ruby · networkWeaponizedCVE-2023-48788This repository contains a proof-of-concept exploit for CVE-2023-48788, a SQL injection vulnerability in Fortinet FortiClient EMS. The main file, CVE-2023-48788.py, is a Python script that connects to a specified FortiClient EMS server over SSL/TCP (default port 8013) and sends a specially crafted registration message containing a SQL injection payload ("' OR 1=1 --"). The script then checks the server's response for the presence of the string 'KA_INTERVAL' to determine if the target is vulnerable. The exploit does not provide post-exploitation capabilities or a shell; it is designed to test for the presence of the vulnerability. The repository also includes a README.md with usage instructions and background information. No hardcoded IPs or domains are present; the target is specified by the user at runtime.horizon3ai · Disclosed Mar 18, 2024 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
FortinetForticlient Emsapplication
FAQ

Frequently asked questions

Is CVE-2023-48788 exploited in the wild?
Yes. As of Nov 12, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Mar 25, 2024.
Is there a public exploit for CVE-2023-48788?
Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2023-48788, the earliest disclosed Mar 18, 2024.
Is there a patch for CVE-2023-48788?
Upgrade FortiClient EMS 7.0.1–7.0.10 to 7.0.11 or later, and 7.2.0–7.2.2 to 7.2.3 or later, using a currently supported fixed release. FortiClient EMS 6.4 is not affected.
What products are affected by CVE-2023-48788?
Fortinet Forticlient Ems.
How severe is CVE-2023-48788?
CVE-2023-48788 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 98.4% (100th percentile) as of Nov 12, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence25Every report linking this CVE to a named adversary.
Associated malware35Malware families linked to this CVE, with evidence and IOCs.
Detection signatures2YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity4Community discussion across Reddit, Mastodon, and other social sources.