CVE-2025-64157 Code injection in FortiOS

Medium 6.7 Published Updated

An authenticated admin can execute unauthorized code via crafted configuration due to a format string vulnerability in FortiOS.

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-2025-64157?

CVE-2025-64157 is a medium-severity code injection vulnerability in Fortinet Fortios, published on 10 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A use of externally-controlled format string vulnerability in Fortinet FortiOS 7.6.0 through 7.6.4, FortiOS 7.4.0 through 7.4.9, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0 all versions allows an authenticated admin to execute unauthorized code or commands via specifically crafted configuration.

Weakness: CWE-134

Which versions are affected by CVE-2025-64157?

It affects 1 product.

Products include Fortinet Fortios.

How do I fix CVE-2025-64157?

No fix has been published for CVE-2025-64157 yet. Limit exposure of the affected software until one is available.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2025-64157 being exploited?

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

All Fortinet Fortios vulnerabilities

Sources

Also known as GHSA-gq6x-9gv4-v98h.

Is CVE-2025-64157 in your software?

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

Check your SBOMs for free