6.5
MEDIUM CVSS 3.1
CVE-2025-27413
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.

INFO

Published Date :

Feb. 28, 2025, 9:15 p.m.

Last Modified :

April 15, 2025, 8:27 p.m.

Remotely Exploit :

Yes !
Affected Products

The following products are affected by CVE-2025-27413 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Pwndoc_project pwndoc
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2025-27413 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2025-27413 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2025-27413 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Apr. 15, 2025

    Action Type Old Value New Value
    Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
    Added CPE Configuration OR *cpe:2.3:a:pwndoc_project:pwndoc:*:*:*:*:*:*:*:* versions up to (excluding) 1.2.0
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/models/template.js#L170-L175 Types: Product
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L826-L827 Types: Product
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/template.js#L63-L66 Types: Product
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/commit/68aa1ea676a91e17bfb333a27571151bd07fb21d Types: Patch
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0 Types: Release Notes
    Added Reference Type CISA-ADP: https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672 Types: Exploit, Vendor Advisory
    Added Reference Type GitHub, Inc.: https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672 Types: Exploit, Vendor Advisory
  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Mar. 04, 2025

    Action Type Old Value New Value
    Added Reference https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672
  • New CVE Received by [email protected]

    Feb. 28, 2025

    Action Type Old Value New Value
    Added 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.
    Added CVSS V3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
    Added CWE CWE-22
    Added Reference https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/models/template.js#L170-L175
    Added Reference https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/backup.js#L826-L827
    Added Reference https://github.com/pwndoc/pwndoc/blob/14acb704891245bf1703ce6296d62112e85aa995/backend/src/routes/template.js#L63-L66
    Added Reference https://github.com/pwndoc/pwndoc/commit/68aa1ea676a91e17bfb333a27571151bd07fb21d
    Added Reference https://github.com/pwndoc/pwndoc/releases/tag/v1.2.0
    Added Reference https://github.com/pwndoc/pwndoc/security/advisories/GHSA-r3vj-47cf-4672
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
Vulnerability Scoring Details
Base CVSS Score: 6.5
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact