Skip to content
Path traversal Advisory Intermediate CVE-2025-53609

Fortinet FortiWeb _cmf_get_config_file_path Directory Traversal Information Disclosure Vulnerability

A directory traversal flaw in the _cmf_get_config_file_path method of FortiWeb allows an authenticated attacker to read sensitive files as root. The vulnerability stems from missing validation of a user-supplied path before it is used in file operations.

Jason McFadyen Follow

Originally disclosed on Zero Day Initiative

Medium 4.9 View original

This vulnerability allows remote attackers to disclose sensitive information on affected installations of Fortinet FortiWeb. Authentication is required to exploit this vulnerability.

Jason McFadyen of Trend Research, on the Zero Day Initiative

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The _cmf_get_config_file_path method fails to validate a user-supplied path before using it in file operations, allowing path traversal.

Impact

An authenticated remote attacker could disclose sensitive information on the affected FortiWeb installation, potentially reading files with root privileges.

What the attacker needed

Authentication required; Network access to FortiWeb

The fix

Fortinet has issued an update to correct this vulnerability.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This is a directory traversal bug. When a program uses a file path supplied by a user without checking it, an attacker can use special sequences like '../' to escape the intended folder and read other files on the system. Here, an authenticated user could trick the appliance into revealing sensitive configuration or system files, potentially as the root user.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More by Jason McFadyen

View all

9 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.