CVE-2025-27413CWE-22

PwnDoc Arbitrary File Write to RCE using Path Traversal in template update from backup templates.json

Medium · published February 28, 2025

CVSS v3.1
6.5
EPSS
1%
Percentile
67.5
In the wild
Unconfirmed
What it is

PwnDoc is a penetration test reporting application. Prior to version 1.2.0, the backup restore functionality allows an administrator to import raw data into the database, including Path Traversal (`../`) sequences. This is problematic for the template update functionality as it uses the path from the database to write arbitrary content to, potentially overwriting source code to achieve Remote Code Execution. Any user with the `backups:create`, `backups:update` and `templates:update` permissions (only administrators by default) can write arbitrary content to anywhere on the filesystem. By overwriting source code, it is possible to achieve Remote Code Execution. Version 1.2.0 fixes the issue.

The record
Technical detail
CVSS v3.1
6.5 · MEDIUM
Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.01179 · 67.5th percentile
Weakness
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Published
2025-02-28T21:02Z
EPSS history
Timeline
  • 28 FEB 21:02Z
    PwnDoc Arbitrary File Write to RCE using Path Traversal in template update from backup templates.json
    cvelistv5