Skip to content
Path traversal Advisory Advanced CVE-2025-13698

Deciso OPNsense diag_backup.php filename Directory Traversal Remote Code Execution Vulnerability

The backup configuration handling in OPNsense failed to properly validate a user-supplied path before using it in file operations, allowing a directory traversal. An authenticated attacker could use this to execute arbitrary code as root on the affected installation.

Alex Williams Follow

Originally disclosed on Zero Day Initiative

Medium 6.8 View original

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Deciso OPNsense. Authentication is required to exploit this vulnerability.

Alex Williams from Pellera Technologies, 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

Likely the backup file handling passed a user-controlled path into file operations without validating or restricting it, enabling directory traversal.

Impact

An authenticated, network-adjacent attacker could execute code with root privileges; the vendor has since corrected the flaw.

What the attacker needed

Valid credentials on the device; network access to the device

The fix

The vulnerability was fixed by the vendor in an update.

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.

OPNsense is a firewall and router product. A part of it that handles backup files trusted a path supplied by the user without checking it, so someone could point it outside the intended folder. Because that part runs with the highest privileges, an attacker who is already logged in could run their own commands on the device.

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 Alex Williams

View all

5 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.