CVE-2025-31365 Code injection in FortiClientMac
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.
Other vulnerabilities in Fortinet Forticlient
- CVE-2019-17658 Privilege escalation in Fortinet FortiClientWindows
- CVE-2023-45590 Code injection in FortiClientLinux
- CVE-2017-14184 Information disclosure in FortiClient SSLVPN Client for Linux
- CVE-2016-8493 Privilege escalation in Fortinet FortiClient
- CVE-2020-15934 Privilege escalation in FortiClientLinux
Sources
Also known as GHSA-9h7f-3j8v-pcfj.