CVE-2024-21758 Memory corruption in FortiWeb
A privileged user can execute arbitrary code via crafted CLI commands due to a stack-based buffer overflow in FortiWeb.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2024-21758?
CVE-2024-21758 is a medium-severity memory corruption vulnerability in Fortinet Fortiweb, published on 14 Jan 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-121
Which versions are affected by CVE-2024-21758?
It affects 1 product.
Products include Fortinet Fortiweb.
How do I fix CVE-2024-21758?
No fix has been published for CVE-2024-21758 yet. Limit exposure of the affected software until one is available.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2024-21758 being exploited?
There is no known exploitation of CVE-2024-21758 in the wild and no public exploit code.
Other vulnerabilities in Fortinet Fortiweb
Sources
Also known as GHSA-5xxp-3j63-qv9w.