Path Traversal in Pwndoc
CVE-2025-27410
PwnDoc is a penetration test reporting application. Prior to version 1.2.0, the backup restore functionality is vulnerable to path traversal in the TAR entry's name, allowing an attacker to overwrite any file on the system with their content. By overwriting an included `.js` file and restarting the container, this allows for Remote Code Execution as an administrator. The remote code execution occurs because any user with the `backups:create` and `backups:update` (only administrators by default) is able to overwrite any file on the system. Version 1.2.0 fixes the issue.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.5 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.021, 82.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Pwndoc — versions < 1.2.0
- Pwndoc Project
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- shreyas-malhotra/CVE-2025-27410 (last pushed 2025-03-18): Updated PoC for CVE-2025-27410, since the one publicly available in the security advisory is prone to failing.
Also mentioned in 2 other repositories (nomi-sec/PoC-in-GitHub, plzheheplztrying/cve_monitor). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/pwndoc/pwndoc/security/advisories/GHSA-mxw8-vgvx-89hx (Exploit, Vendor Advisory)
- https://github.com/pwndoc/pwndoc/commit/98f284291d73d3a0b11d3181d845845c192d1080 (Patch)
- https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L527 (Product)
- https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0 (Release Notes)
This CVE has public exploit evidence. See the latest CVEs with public exploits.