CVE-2025-13698 Deciso OPNsense diag_backup.php filename Directory Traversal Arbitrary File Creation Vulnerability

Medium 4.5 Published Updated

Authenticated network-adjacent attackers can create arbitrary files as root via path traversal in the backup configuration handler.

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-2025-13698?

CVE-2025-13698 is a medium-severity path traversal vulnerability in Deciso OPNsense, published on 23 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Deciso OPNsense diag_backup.php filename Directory Traversal Arbitrary File Creation Vulnerability. This vulnerability allows network-adjacent attackers to create arbitrary files on affected installations of Deciso OPNsense. Authentication is required to exploit this vulnerability.

The specific flaw exists within the handling of backup configuration files. The issue results from the lack of proper validation of a user-supplied path prior to using it in file operations. An attacker can leverage this vulnerability to create files in the context of root. Was ZDI-CAN-28133.

Weakness: CWE-22

Which versions are affected by CVE-2025-13698?

How do I fix CVE-2025-13698?

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

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

Sources

Also known as GHSA-78fv-p8mj-wxvm.

Is CVE-2025-13698 in your software?

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

Check your SBOMs for free