CVE-2025-58413 Memory corruption in FortiOS

Medium 6.9 Published Updated

Attackers can execute unauthorized code via crafted packets due to a stack-based buffer overflow in FortiOS and FortiSASE.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-58413?

CVE-2025-58413 is a medium-severity memory corruption vulnerability in Fortinet Fortios, published on 18 Nov 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 vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2 all versions, FortiOS 7.0 all versions, FortiOS 6.4 all versions, FortiOS 6.2 all versions, FortiOS 6.0 all versions, FortiSASE 25.3.b allows attacker to execute unauthorized code or commands via specially crafted packets

Weakness: CWE-787, CWE-121

Which versions are affected by CVE-2025-58413?

It affects 2 products.

Products include Fortinet Fortios, Fortinet Fortisase.

How do I fix CVE-2025-58413?

No fix has been published for CVE-2025-58413 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-2025-58413 being exploited?

There is no known exploitation of CVE-2025-58413 in the wild and no public exploit code.

All Fortinet Fortios vulnerabilities

Sources

Also known as GHSA-fr69-2jfx-9jwf.

Is CVE-2025-58413 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free