# CVE-2026-39808: FortiSandbox unauthenticated command injection in the API

An unauthenticated attacker can run OS commands on FortiSandbox 4.4 with a single crafted HTTP request, and a public exploit exists. VulnCheck and Defused report exploitation from June 2026, and CISA added it to the KEV catalog on July 16, 2026.

- Vendor: Fortinet, FortiSandbox API
- Severity: CRITICAL (CVSS 3.1 9.1)
- Exploited (CISA KEV): yes, added 2026-07-16
- EPSS: 93.2% on 2026-11-23
- Public exploit: yes
- Patch available: yes
- Vendor advisory: FG-IR-26-100, https://fortiguard.fortinet.com/psirt/FG-IR-26-100
- Published: 2026-04-14; updated: 2026-10-12
- Page: https://patchtonight.com/cve/CVE-2026-39808/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiSandbox 4.4.0 to 4.4.8 | 4.4.9 or later |
| FortiSandbox PaaS 21.3.4055 to 23.4.4374 (listed in the CVE record only) | 5.0.2 or later (CVE record; the Fortinet advisory lists PaaS as not impacted) |
| FortiSandbox 5.0, FortiSandbox PaaS 5.0 | Not affected |

## What it is

FortiSandbox has an **OS command injection** (CWE-78) in its API. An **unauthenticated** attacker can send crafted HTTP requests and run commands on the appliance. Fortinet credits Samuel de Lucas Maroto of KPMG Spain, who reported it through responsible disclosure.

The researcher's public proof of concept says one curl request runs commands as root, with no credentials. It injects a pipe character into the `jid` parameter of `/fortisandbox/job-detail/tracer-behavior`. The example writes command output to a file in the web root and reads it back. The README says the bug was found in November 2025 and published in April 2026, after the patch.

A sandbox holds malware samples and analysis data, and it usually sits deep inside the network with broad reach. Root on it is a useful foothold.

Exploitation status, by source:

- **Fortinet:** the advisory says "Known Exploited: No". Help Net Security says Fortinet had not confirmed attacks as of June 16.
- **VulnCheck and Defused:** per CyberScoop, VulnCheck first saw exploitation on June 9 and Defused confirmed it on June 11. Defused counted 49 exploitation events from 11 IPs over six days, but that figure covers this CVE and CVE-2026-39813 together.
- **CrowdSec:** first exploitation attempts on June 17. It reports 49 unique IPs probing for this CVE and classes it as early exploitation.
- **CISA:** added to KEV on July 16, 2026. Known ransomware use is "Unknown". CISA requires forensic triage under BOD 26-04.

The same devices were also hit by [CVE-2026-25089](/cve/CVE-2026-25089/) and CVE-2026-39813. Check those too.

## Am I affected?

You're affected if you run **FortiSandbox 4.4.0 to 4.4.8**. The advisory lists no special configuration, so any appliance whose web interface or API an attacker can reach is exposed.

**Not affected** per the advisory: FortiSandbox 5.0 and FortiSandbox PaaS 5.0.

Sources disagree on PaaS. The CVE record lists FortiSandbox PaaS builds 21.3.4055 through 23.4.4374 as affected and gives 5.0.2 or later as the fix. The advisory says PaaS 5.0 is not impacted. If you run PaaS on one of those older builds, confirm with Fortinet.

The advisory scores it 9.8 (temporal 9.1). The CVE record and CISA's entry show 9.1. The CVE record text also contains an unfilled placeholder where the attack vector should be, so use the advisory for details.

The advisory gives no commands or menu paths for checking the version. Use the firmware version shown on the appliance.

## What to do

1. **Upgrade.** Move FortiSandbox 4.4.x to **4.4.9 or later**. FortiSandbox 5.0 is not affected by this CVE.
2. **Restrict access to the web interface and API now.** The advisory lists no workaround. Limiting who can reach the appliance is your only stopgap until you patch. Keep it off the internet.
3. **If it was reachable while on 4.4.0 to 4.4.8, assume possible compromise.** Exploitation has been seen since at least June 2026, and a public exploit has existed since April. CISA requires forensic triage. Review the appliance (see Detection), then rotate credentials and API keys stored on or used by it. Rebuild the appliance if you find signs of tampering.

## Detection

No indicators of compromise such as IPs, hashes or user agents have been published in the sources I found. The behaviours below come from the PoC and CrowdSec:

- HTTP requests to `/fortisandbox/job-detail/tracer-behavior` where the `jid` parameter contains a pipe or other shell metacharacters.
- Follow-up requests to `/ng/<filename>.txt`. CrowdSec says attackers use these to check that an injected command created a file.
- Unexpected files in the web root, such as the `out.txt` file in the PoC example.
- Unexpected processes started by the web service, and outbound connections from the sandbox that don't match normal update or management traffic.

Search back to at least **June 9, 2026**, and further if the appliance was exposed since April.

## Sources

- [Fortinet advisory FG-IR-26-100](https://fortiguard.fortinet.com/psirt/FG-IR-26-100)
- [CVE record (cveawg.mitre.org)](https://cveawg.mitre.org/api/cve/CVE-2026-39808)
- [CISA Known Exploited Vulnerabilities catalog entry](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2026-39808)
- [Public proof of concept (samu-delucas)](https://github.com/samu-delucas/CVE-2026-39808)
- [CyberScoop, FortiSandbox vulnerabilities exploited](https://cyberscoop.com/fortinet-fortisandbox-vulnerabilities-exploits/)
- [Help Net Security, attackers are exploiting FortiSandbox vulnerabilities](https://helpnetsecurity.com/2026/06/16/fortisandbox-vulnerabilities-cve-2026-39813-cve-2026-39808-cve-2026-25089/)
- [CrowdSec vulnerability tracking report](https://www.crowdsec.net/vulntracking-report/cve-2026-39808-fortinet-fortisandbox-command-injection)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
