CVE-2024-55652
PwnDoc Server-Side Template Injection vulnerability - Sandbox Escape to RCE using custom filters
Mitigation
- Upgrade pwndoc to 1d4219c596f4f518798492e48386a20c6e9a2fe6 or later.
Who should check
- Anyone running pwndoc < 1d4219c596f4f518798492e48386a20c6e9a2fe6
Vulnerability facts
- Affected
- pwndoc < 1d4219c596f4f518798492e48386a20c6e9a2fe6
- Fixed in
- pwndoc 1d4219c596f4f518798492e48386a20c6e9a2fe6
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 6.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: High
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: None
- EPSS
- 1.05% chance of exploitation in 30 days (percentile 64, 2026-11-26)
- CWE
- CWE-1336
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| pwndoc | < 1d4219c596f4f518798492e48386a20c6e9a2fe6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-55652. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-55652.md Affected: pwndoc < 1d4219c596f4f518798492e48386a20c6e9a2fe6 Fixed in: pwndoc 1d4219c596f4f518798492e48386a20c6e9a2fe6 Steps: 1. Search this machine and project for pwndoc: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-55652 being exploited?
There is no confirmed exploitation: CVE-2024-55652 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 1.05% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-55652?
Medium: CVSS 6.5 (v3.1, scored by CNA). Remote, login needed.
Which versions are affected by CVE-2024-55652?
pwndoc < 1d4219c596f4f518798492e48386a20c6e9a2fe6.
Is there a fix for CVE-2024-55652?
Yes. Fixed in pwndoc 1d4219c596f4f518798492e48386a20c6e9a2fe6. Upgrade pwndoc to 1d4219c596f4f518798492e48386a20c6e9a2fe6 or later.
How do I check if I'm affected by CVE-2024-55652?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.