# CVE-2024-21758: Stack-based buffer overflow in FortiWeb

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

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| FortiWeb 7.4.0 to 7.4.1 | 7.4.2 or later |
| FortiWeb 7.2.0 to 7.2.7 | 7.2.8 or later |

## The vendor's description

A stack-based buffer overflow in Fortinet FortiWeb versions 7.2.0 through 7.2.7, and 7.4.0 through 7.4.1 may allow a privileged user to execute arbitrary code via specially crafted CLI commands, provided the user is able to evade FortiWeb stack protections.

## Sources

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

---

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.
