# CVE-2024-56497: OS command injection in FortiMail, FortiRecorder

- Vendor: Fortinet, FortiMail, FortiRecorder
- Severity: MEDIUM (CVSS 3.1 6.5)
- Exploited (CISA KEV): not listed
- EPSS: 0.6% on 2026-11-23
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: FG-IR-23-170, https://fortiguard.fortinet.com/psirt/FG-IR-23-170
- Published: 2025-01-14; updated: 2025-01-14
- Page: https://patchtonight.com/cve/CVE-2024-56497/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiMail 7.2.0 to 7.2.4 | 7.2.5 or later |
| FortiMail 7.0.0 to 7.0.6 | 7.0.7 or later |
| FortiMail 6.4.0 to 6.4.7 | 6.4.8 or later |
| FortiRecorder 7.0 | 7.0.2 or later |
| FortiRecorder 6.4.0 to 6.4.4 | 6.4.5 or later |

## The vendor's description

An improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiMail versions 7.2.0 through 7.2.4 and 7.0.0 through 7.0.6 and 6.4.0 through 6.4.7, FortiRecorder versions 7.0.0 and 6.4.0 through 6.4.4 allows attacker to execute unauthorized code or commands via the CLI.

## Sources

- [Fortinet advisory](https://fortiguard.fortinet.com/psirt/FG-IR-23-170)

---

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.
