CVE-2025-31365 Code injection in FortiClientMac

Medium 5.5 Published Updated

An unauthenticated attacker can execute arbitrary code on a victim's Mac by tricking them into visiting a malicious website.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
None listed

What is CVE-2025-31365?

CVE-2025-31365 is a medium-severity code injection vulnerability in Fortinet Forticlient, published on 14 Oct 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

An Improper Control of Generation of Code ('Code Injection') vulnerability [CWE-94] in FortiClientMac 7.4.0 through 7.4.3, 7.2.1 through 7.2.8 may allow an unauthenticated attacker to execute arbitrary code on the victim's host via tricking the user into visiting a malicious website.

Weakness: CWE-94

Which versions are affected by CVE-2025-31365?

It affects 1 product.

Products include Fortinet Forticlient.

How do I fix CVE-2025-31365?

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

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

All Fortinet Forticlient vulnerabilities

Sources

Also known as GHSA-9h7f-3j8v-pcfj.

Is CVE-2025-31365 in your software?

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

Check your SBOMs for free