SecurityContext

CVE-2025-27413: PwnDoc - Path Traversal & Remote Code Execution

  • Cve: CVE-2025-27413
  • Name: PwnDoc - Path Traversal & Remote Code Execution
  • Description: 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.
  • Impact: Attackers with administrator permissions can overwrite source code, leading to remote code execution and full system compromise.
  • Remediation: Update to version 1.2.0 or later.
  • Vulnerability type: path_traversal
  • Vulnerability impact: remote_code_execution
  • Requirement type: admin_privileges
  • Requirements: User must have backups:create, backups:update, and templates:update permissions
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 4.9
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
  • Epss score: 0.01179
  • Epss percentile: 0.68306
  • Assignee: [email protected]
  • Published at: 2025-02-28T21:15:27Z
  • Age in days: 634
  • Modified at: 2026-06-17T09:03:32Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 6
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-27413
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-22Improper Limitation of a Pathname to a Restricted Directory

Public exploits

UrlSourceAdded date
https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672nvd2025-02-28

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/pwndoc/pwndoc/commit/68aa1ea676a91e17bfb333a27571151bd07fb21dPatch
https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672Exploit, Vendor Advisory
https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/models/template.js#L170-L175Product
https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L826-L827Product
https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/template.js#L63-L66Product
https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0Release Notes

Products

ProductAffectedPlatform boundSourcesUrl
pwndoc_project:pwndoc< 1.2.0nonvd/v1/products/pwndoc_project/pwndoc

Projects

RepositoryLink kindsIndexedUrl
pwndoc/pwndoccommit, fix, releases, security_advisoryyes/v1/repositories/pwndoc/pwndoc

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-02-28
  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts