Critical SQL Injection in FortiClient EMS Multi-Tenant Mode
Vulnerability Disclosure · 8 sources · Updated 5mo ago · First seen Mar 18, 2026

Fortinet FortiClient Endpoint Management Server (EMS) contains a critical unauthenticated SQL injection vulnerability, tracked as CVE-2026-21643 with a CVSS score of 9.1, affecting version 7.4.4 when multi-tenant mode is enabled. The flaw was introduced during a middleware refactor that changed database connection and tenant routing logic, allowing the HTTP Site header to be passed into a PostgreSQL search_path query without proper validation. Because the vulnerable middleware executes before authentication, an attacker can send a crafted HTTPS request and run arbitrary SQL commands without valid credentials.
Research cited in the coverage says the publicly exposed /api/v1/init_consts endpoint is the most practical attack path because it can reveal whether multi-tenant mode is active, lacks rate limiting, and returns PostgreSQL error messages that support efficient error-based data extraction. Successful exploitation can lead to full compromise of the EMS management database and exposure of sensitive information. Commentary in the related podcast segment reinforces that the bug was introduced by the 7.4.4 refactoring and fixed in 7.4.5, highlighting how code refactoring can create serious security regressions when input handling and validation are not preserved.


