Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2025-53837 — PoC, exploit, and Podman lab for CVE-2025-53837, an XWiki Rendering HTML macro eval injection that closes the macro and executes Groovy with programming rights. | Kitploit
Tools/GitHubGitHub/googlesky/cve-2025-53837
ExploitationWeb Application ExploitationSecurity VirtualizationWeb SecurityPayload DevelopmentLabs & Practice
GitHubgooglesky/cve-2025-53837

CVE-2025-53837

PoC, exploit, and Podman lab for CVE-2025-53837, an XWiki Rendering HTML macro eval injection that closes the macro and executes Groovy with programming rights.

View Repository
Dec 2, 2026Not yet reviewed

Related Tools

  • metasploit-framework

    Open-source exploitation framework with modular payload, encoder, and auxiliary system for penetration testing, vulnerability validation, and security research across networks and applications.

  • sqlmap

    Automatic SQL injection and database takeover tool

  • beef

    The Browser Exploitation Framework Project

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    750
  • 2

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    739
  • 3

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    585
  • 4

    opencti

    opencti-platform/opencti

    Open Cyber Threat Intelligence Platform

    550
  • 5

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    414
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    409

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-53837 — XWiki HTML macro eval injection to remote code execution

CVECVE-2025-53837 (GHSA-26vp-8gxg-v4pg)
ComponentXWiki Rendering — XHTMLWikiPrinter.printRaw() in xwiki-rendering-xml
AffectedXWiki Rendering < 14.10.2 / 15.0 RC1 (XWiki syntax 2.0)
Fixed incommit 92bc8095
CWECWE-94 improper control of code generation (eval injection)
ImpactArbitrary Groovy/Python macro execution with programming rights
VectorAny user who can edit their profile or a document with a UI extension
TriggerTilde-escaped {{/html}} in rendered output inside an {{html wiki="true"}} macro
CreditReporter via GitHub advisory / XWiki security team

Rendering output was included as content of HTML macros without escaping. A user able to edit a document could place tilde-escaped macro markers in that output; once rendered, the text contained a literal {{/html}} that closed the surrounding HTML macro and exposed an injected {{cache}}{{groovy}}... block. The macros run with programming rights, giving remote code execution and unrestricted access to all wiki content.

1. Root cause

Vulnerable printRaw(raw) forwarded the string unchanged. Fixed (commit 92bc8095):

String escapedRaw = raw.replace("{{/html}}", "&#123;&#123;/html}}");
StringBuilder prefix = new StringBuilder();
for (Character nextChar : List.of('{', '/', 'h', 't', 'm', 'l', '}', '}')) {
    prefix.append(nextChar);
    if (escapedRaw.endsWith(prefix.toString())) {
        escapedRaw = escapedRaw.substring(0, escapedRaw.length() - prefix.length())
                   + "&#123;" + prefix.substring(1);
        break;
    }
}
super.printRaw(escapedRaw);

The trailing-prefix escape prevents raw content and following plain text from combining into a closing marker. The harness uses the advisory's UI-extension payload, which renders to exactly:

{{/html}} {{cache}}{{groovy}}println(1){{/groovy}}{{/cache}}

On the vulnerable build the macro closes early and the Groovy macro is executable; on the fixed build the marker is entity-escaped and stays inside the HTML macro. Exact patch in evidence/.

2. Reproduction environment

One Podman image cve-2025-53837:vuln, version selected by XWIKI_VER (vuln / fixed). A faithful Python service models tilde unescaping, printRaw, and macro assembly. Bounded 2 CPU / 4 GB on cve53837lab.

3. Running the environment

podman build -t cve-2025-53837:vuln lab
podman build -t cve-2025-53837-poc:local -f poc/Dockerfile poc
podman network create cve53837lab
# run one container per XWIKI_VER, then use poc/ or exploit/

4. The PoC

poc/poc.py and standalone exploit/exploit.py are stdlib-only, take the target via argument, and report the rendered raw output, early macro close, and whether the Groovy macro is executable. Exit 1 on injection, 0 on escaping, 2 unreachable.

5. Expected results

buildresult
vulnPRINTED_RAW={{/html}} {{cache}}{{groovy}}..., GROOVY_EXECUTABLE=true
fixedPRINTED_RAW=&#123;&#123;/html}} {{cache}}{{groovy}}..., GROOVY_EXECUTABLE=false

6. Environment preconditions

The lab models the rendering pipeline rather than deploying XWiki. A real exploit requires the ability to edit a document or profile whose rendering output reaches an HTML macro, and syntax 2.0.

7. Additional findings

The fix covers JSON and HTML-comment outputs as well, and upstream added both a macrohtml20.test fixture and a unit test for printRaw. evidence/0day-sweep.txt.

8. Repository layout

README.md, LICENSE, CITATION.cff, SECURITY.md, .gitignore, Makefile, poc/, exploit/, lab/, evidence/.

9. References

  • https://www.cve.org/CVERecord?id=CVE-2025-53837
  • https://github.com/xwiki/xwiki-rendering/security/advisories/GHSA-26vp-8gxg-v4pg
  • https://github.com/xwiki/xwiki-rendering/commit/92bc8095
Download Tool