CVE-2024-40588 Path traversal in FortiCamera

Medium 4.2 Published Updated

Privileged attackers can read arbitrary files from the underlying filesystem via crafted CLI requests in multiple Fortinet network appliances.

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-40588?

CVE-2024-40588 is a medium-severity path traversal vulnerability in Fortinet FortiCamera, published on 12 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Multiple relative path traversal vulnerabilities [CWE-23] vulnerability in Fortinet FortiCamera 2.1 all versions, FortiCamera 2.0.0, FortiCamera 1.1 all versions, FortiCamera 1.0 all versions, FortiMail 7.6.0 through 7.6.1, FortiMail 7.4.0 through 7.4.3, FortiMail 7.2 all versions, FortiMail 7.0 all versions, FortiMail 6.4 all versions, FortiNDR 7.6.0 through 7.6.1, FortiNDR 7.4.0 through 7.4.6, FortiNDR 7.2 all versions, FortiNDR 7.1 all versions, FortiNDR 7.0 all versions, FortiRecorder 7.2.0 through 7.2.1, FortiRecorder 7.0.0 through 7.0.4, FortiRecorder 6.4 all versions, FortiVoice 7.0.0 through 7.0.3, FortiVoice 6.4.0 through 6.4.9, FortiVoice 6.0 all versions may allow a privileged attacker to read files from the underlying filesystem via crafted CLI requests.

Weakness: CWE-23

Which versions are affected by CVE-2024-40588?

It affects 5 products.

Products include Fortinet Forticamera Firmware, Fortinet Fortimail, Fortinet Fortindr, Fortinet Fortirecorder, Fortinet Fortivoice.

How do I fix CVE-2024-40588?

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

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2024-40588 being exploited?

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

Sources

Also known as GHSA-hxwc-32r9-7287.

Is CVE-2024-40588 in your software?

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

Check your SBOMs for free