# CVE-2025-32756: Fortinet appliance admin portal overflow, exploited as a zero-day

A stack overflow in the HTTP API of five Fortinet appliances gives an unauthenticated attacker code execution through a crafted cookie. Fortinet saw it exploited on FortiVoice before the fix, and a public proof of concept exists.

- Vendor: Fortinet, FortiVoice, FortiMail, FortiNDR, FortiRecorder and FortiCamera
- Severity: CRITICAL (CVSS 3.1 9.6)
- Exploited (CISA KEV): yes, added 2025-05-14
- EPSS: 30.9% on 2026-11-23
- Public exploit: yes
- Patch available: yes
- Vendor advisory: FG-IR-25-254, https://fortiguard.fortinet.com/psirt/FG-IR-25-254
- Published: 2025-05-13; updated: 2026-10-13
- Page: https://patchtonight.com/cve/CVE-2025-32756/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiVoice 7.2.0 | 7.2.1 or later |
| FortiVoice 7.0.0 to 7.0.6 | 7.0.7 or later |
| FortiVoice 6.4.0 to 6.4.10 | 6.4.11 or later |
| FortiMail 7.6.0 to 7.6.2 | 7.6.3 or later |
| FortiMail 7.4.0 to 7.4.4 | 7.4.5 or later |
| FortiMail 7.2.0 to 7.2.7 | 7.2.8 or later |
| FortiMail 7.0.0 to 7.0.8 | 7.0.9 or later |
| FortiNDR 7.6.0 | 7.6.1 or later |
| FortiNDR 7.4.0 to 7.4.7 | 7.4.8 or later |
| FortiNDR 7.2.0 to 7.2.4 | 7.2.5 or later |
| FortiNDR 7.0.0 to 7.0.6 | 7.0.7 or later |
| FortiRecorder 7.2.0 to 7.2.3 | 7.2.4 or later |
| FortiRecorder 7.0.0 to 7.0.5 | 7.0.6 or later |
| FortiRecorder 6.4.0 to 6.4.5 | 6.4.6 or later |
| FortiCamera 2.1.0 to 2.1.3 | 2.1.4 or later |
| FortiCamera 2.0 and 1.1 (all versions) | No fix. Migrate to a fixed release |

## What it is

A **stack-based buffer overflow** in the HTTP API of FortiVoice, FortiMail, FortiNDR, FortiRecorder and FortiCamera. An unauthenticated attacker sends a crafted request to the portal or admin interface and runs code or commands on the appliance. Fortinet rates it critical (CVSS 9.8).

Fortinet's advisory says it was exploited in the wild on **FortiVoice** before the fix. The two public write-ups we opened, Centripetal and the proof of concept's README, place the bug in the `enc` parameter of the AuthHash cookie, at `/remote/hostcheck_validate`. Fortinet's advisory doesn't name the endpoint.

A public proof of concept exists. Its README says it detects vulnerable devices and triggers the overflow, and does not execute code. It still makes scanning easy.

## Am I affected?

You're affected if you run one of these and it is older than the fixed version:

- FortiVoice 7.2.0, 7.0.0 to 7.0.6, or 6.4.0 to 6.4.10
- FortiMail 7.6.0 to 7.6.2, 7.4.0 to 7.4.4, 7.2.0 to 7.2.7, or 7.0.0 to 7.0.8
- FortiNDR 7.6.0, 7.4.0 to 7.4.7, 7.2.0 to 7.2.4, or 7.0.0 to 7.0.6
- FortiRecorder 7.2.0 to 7.2.3, 7.0.0 to 7.0.5, or 6.4.0 to 6.4.5
- FortiCamera 2.1.0 to 2.1.3, plus all of 2.0 and 1.1

The attack goes through the **HTTP/HTTPS portal and admin interfaces**, so any appliance that exposes them to untrusted networks is at risk. Fortinet doesn't state other preconditions. FortiOS firewalls aren't listed.

## What to do

1. **Upgrade** to FortiVoice 7.2.1, 7.0.7 or 6.4.11; FortiMail 7.6.3, 7.4.5, 7.2.8 or 7.0.9; FortiNDR 7.6.1, 7.4.8, 7.2.5 or 7.0.7; FortiRecorder 7.2.4, 7.0.6 or 6.4.6; FortiCamera 2.1.4; or later. FortiCamera 2.0 and 1.1 have no fix, so migrate to a fixed release.
2. **Workaround if you can't patch tonight:** Fortinet says to disable the HTTP/HTTPS administrative and portal interfaces. Its advisory gives no menu path or command. Expect to lose web management and any web portal until you patch.
3. **If an appliance was reachable and unpatched, treat it as possibly compromised.** Check it (see below). If you find signs of compromise, isolate it and rebuild it on fixed firmware, and rotate every credential that logged in through the web or SSH, because the malware captured them. Hunt for activity from the appliance toward your internal network.

## Detection

Fortinet's advisory lists these indicators:

- **Crash log entries** from `diagnose debug application httpd display trace-log`:
  - `mod_fcgid: error reading data, FastCGI server closed connection`
  - `mod_fcgid: process /migadmin/www/fcgi/admin.fe(1741) exit(communication error), get unexpected signal 11`
- **fcgi debugging switched on.** Run `diag debug application fcgi`. If the output includes `general to-file ENABLED`, treat it as an indicator unless you turned it on yourself. It is off by default.
- **Modified files:** `/data/etc/crontab` and `/var/spool/cron/crontabs/root` (jobs that copy password data from `fcgi.debug` to `/var/spool/.sync` and clear the log every 12 hours), `/etc/pam.d/sshd` (lines loading the malicious library), and `/etc/httpd.conf` (a `LoadModule socks5_module modules/mod_socks5.so` line).
- **Added files and hashes** listed in the indicators section.
- **Traffic** from or to the attacker addresses listed above.

Fortinet says the attackers scanned the device's network, erased crash logs and enabled fcgi debugging to capture credentials. Missing crash logs are suspicious on their own.

## Sources

- [Fortinet advisory FG-IR-25-254](https://fortiguard.fortinet.com/psirt/FG-IR-25-254)
- [CVE record CVE-2025-32756](https://cveawg.mitre.org/api/cve/CVE-2025-32756)
- [Centripetal on the public proof of concept](https://www.centripetal.ai/alerts/proof-of-concept-exploit-observed-for-critical-zero-day)
- [Public proof of concept repository (kn0x0x)](https://github.com/kn0x0x/CVE-2025-32756-POC)

---

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.
