CVE-2025-27410 PwnDoc Arbitrary File Write to RCE using Path Traversal in backup restore as admin
MediumCVSS 6.5
EPSS 3.0%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
Description
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| pwndoc project pwndoc | < 1.2.0 | 1.2.0 | Fixed |
| pwndoc | = < 1.2.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pwndoc | = < 1.2.0 | No fix listed |
| pwndoc project pwndoc | < 1.2.0 | 1.2.0 |
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