Medium severity · published Dec 11, 2024
CVE-2024-55652
PwnDoc Server-Side Template Injection vulnerability - Sandbox Escape to RCE using custom filters
6.5
CVSS
0.7%
EPSS
No
On KEV
Description
PenDoc is a penetration testing reporting application. Prior to commit 1d4219c596f4f518798492e48386a20c6e9a2fe6, an attacker can write a malicious docx template containing expressions that escape the JavaScript sandbox to execute arbitrary code on the system. An attacker who can control the contents of the template document is able to execute arbitrary code on the system. By default, only users with the `admin` role are able to create or update templates. Commit 1d4219c596f4f518798492e48386a20c6e9a2fe6 patches the issue.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
Attack vector
Network
Complexity
Low
Privileges
High
User interaction
None
Confidentiality
High
Integrity
High
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 52% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
PW
pwndoc · pwndoc
< 1d4219c596f4f518798492e48386a20c6e9a2fe6 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-55652
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-55652
github.com
https://github.com/pwndoc/pwndoc/blob/main/backend/src/lib/report-filters.js#L258-L260
github.com
https://github.com/pwndoc/pwndoc/commit/1d4219c596f4f518798492e48386a20c6e9a2fe6
github.com
https://github.com/pwndoc/pwndoc/security/advisories/GHSA-jw5r-6927-hwpc
More from pwndoc
8.5
CVE-2024-55602
PenDoc vulnerable to Arbitrary File Read on updating and downloading templates using Path Traversal
8.1
CVE-2025-23044
Cross-Site Request Forgery (CSRF) allows creating admin account with POST request
6.5
CVE-2025-27410
PwnDoc Arbitrary File Write to RCE using Path Traversal in backup restore as admin
6.5
CVE-2024-55653
pwndoc's UnhandledPromiseRejection on audits causes Denial of Service (DoS)
4.9
CVE-2025-27413
PwnDoc Arbitrary File Write to RCE using Path Traversal in template update from backup templates.json
