# CVE-2024-55652: PwnDoc Server-Side Template Injection vulnerability - Sandbox Escape to RCE using custom filters

- Severity: Medium 6.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 57% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-12-11T22:41:16.664Z
- Modified: 2026-06-17T08:11:20.950Z
- Weaknesses: CWE-1336
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- pwndoc pwndoc: < 1d4219c596f4f518798492e48386a20c6e9a2fe6

## References

- <https://github.com/pwndoc/pwndoc/security/advisories/GHSA-jw5r-6927-hwpc> (exploit)
- <https://github.com/pwndoc/pwndoc/commit/1d4219c596f4f518798492e48386a20c6e9a2fe6>
- <https://github.com/pwndoc/pwndoc/blob/main/backend/src/lib/report-filters.js#L258-L260>

## Sources

- CVE List: [CVE-2024-55652](https://www.cve.org/CVERecord?id=CVE-2024-55652), CVE Terms of Use, modified 2024-12-12
- NVD: [CVE-2024-55652](https://nvd.nist.gov/vuln/detail/CVE-2024-55652), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-55652 · Whole record: https://cve.day/CVE-2024-55652.json · Rebuilt by cve.day 2026-11-25T22:58:50.023Z
