Skip to main content

Xwiki CVE-2025-49581

| EUVDEUVD-2025-18284 HIGH
Code Injection (CWE-94)
2025-06-13 security-advisories@github.com
8.8
CVSS 3.1 · GitHub Advisory
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents exceptionally high real-world risk across multiple dimensions: (1) CVSS 8.8 with AV:N (network-accessible), AC:L (low complexity), PR:L (low privilege requirement—only edit rights needed), indicates broad attack surface; (2) the privilege requirement is particularly dangerous because edit rights are commonly delegated to users in collaborative wiki environments; (3) the impact is complete—confidentiality, integrity, and availability all rated High (C:H/I:H/A:H), enabling full system compromise including data exfiltration, malware installation, and denial of service; (4) no user interaction required (UI:N) means automated exploitation is feasible; (5) CWE-94 (code generation) is a fundamental class frequently exploited in real-world attacks; (6) the vulnerability affects multiple active release branches (16.4.x, 16.10.x, 17.0.x), indicating broad deployment exposure; (7) patches are available but require immediate deployment given the low barrier to exploitation (any page editor can trigger). EPSS probability would likely exceed 85-90% given the low attack complexity and privilege requirements. This is not a theoretical high-CVSS issue—it is a genuine, immediately exploitable privilege escalation affecting widely deployed collaborative platforms.

Exploit ScenarioDerived

A semi-trusted user (e.g., project team member with page edit rights) creates a custom wiki macro named 'GetAdminStatus' with a parameter 'query' that accepts wiki syntax. The attacker sets the parameter's default value to contain a Groovy script: {{groovy}}java.lang.Runtime.getRuntime().exec('whoami'){{/groovy}}. The attacker then edits a high-privilege system page (e.g., XWiki.ChildrenMacro or another page in the XWiki namespace with programming rights) to reference this macro using its default parameter. When the page is viewed or rendered by an administrator or during system processing, the macro is invoked, the default parameter containing the Groovy script is evaluated with the page's programming rights, and the attacker's arbitrary code executes in the XWiki Java VM context. This grants the attacker full access to the database, file system, and XWiki configuration. No user interaction or special conditions are required beyond the attacker having basic edit rights. Attack complexity is low; exploitation is deterministic and automatable. Proof-of-concept code would involve: (1) REST API call to create a malicious macro page, (2) REST API call to modify a high-privilege system page to invoke it, (3) trigger page rendering to execute the payload.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 1.6% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 14, 2026

Critical privilege escalation vulnerability in XWiki that allows any user with page edit rights to execute arbitrary code (Groovy, Python, Velocity) with programming-level privileges by creating malicious wiki macros. An attacker can exploit wiki macro parameter defaults to inject code into high-privilege pages like XWiki.ChildrenMacro, achieving full XWiki installation compromise. The vulnerability affects XWiki versions prior to 16.4.7, 16.10.3, and 17.0.0; patch availability is confirmed across multiple release branches.

RemediationAI

Immediate patching is required: upgrade to XWiki 16.4.7 or later (for 16.4.x branch), 16.10.3 or later (for 16.10.x branch), or 17.0.0 or later (for 17.x branch). The patch changes macro parameter evaluation logic to execute wiki syntax default values with the wiki macro author's rights (not the invoking document author's rights), eliminating the privilege escalation. For organizations unable to patch immediately: (1) restrict edit page rights to highly trusted users only; (2) audit existing custom wiki macros for suspicious definitions; (3) monitor wiki modification logs for users creating new macros; (4) disable user self-service page editing if feasible; (5) implement network segmentation to limit XWiki installation exposure. Vendor advisory and patches are available through XWiki's official release channels (xwiki.org/download). No known workaround exists that fully protects unpatched systems while maintaining wiki functionality.

Affected VersionsENISA

xwiki-platform 12.8-rc-1, < 16.4.7
xwiki-platform 17.0.0-rc-1, < 17.0.0
xwiki-platform 12.6.3, < 12.7
xwiki-platform 11.10.11, < 12.0
xwiki-platform 16.5.0-rc-1, < 16.10.3

Affected Packages

maven org.xwiki.platform:xwiki-platform-rendering-wikimacro-store fix: 16.4.7, 16.10.3, 17.0.0
euvd xwiki_platform_11_10_11 fix: 12.0
euvd xwiki_platform_12_6_3 fix: 12.7
euvd xwiki_platform_12_8_rc_1 fix: 16.4.7
euvd xwiki_platform_16_5_0_rc_1 fix: 16.10.3
euvd xwiki_platform_17_0_0_rc_1 fix: 17.0.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 6 packages in maven, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

XWiki is a Java-based wiki platform that supports extensible macro scripting through multiple languages (Groovy, Python, Velocity). The vulnerability stems from CWE-94 (Improper Control of Generation of Code), specifically in how wiki macro parameters with wiki syntax support are evaluated. When a macro parameter's default value contains wiki syntax, it is executed with the document author's rights rather than the macro definition author's rights. This creates a privilege escalation chain: (1) an attacker with edit rights defines a custom wiki macro with a parameter allowing wiki syntax, (2) the attacker sets a malicious default value, (3) when this macro is invoked in a high-privilege document (e.g., XWiki.ChildrenMacro in the XWiki namespace which has programming rights), the default parameter value executes with those elevated rights. The affected product range includes XWiki Community and Enterprise editions across multiple major versions (14.x, 15.x, 16.x, 17.x branches).

Know when Xwiki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Primary rating from GitHub Advisory · only source for this CVE.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

3
Patch released
Mar 14, 2026 - 21:34 nvd
Patch available
PoC Detected
Sep 03, 2025 - 17:51 vuln.today
Public exploit code
CVE Published
Jun 13, 2025 - 16:15 nvd
HIGH 8.8

DescriptionGitHub Advisory

XWiki is a generic wiki platform. Any user with edit right on a page (could be the user's profile) can execute code (Groovy, Python, Velocity) with programming right by defining a wiki macro. This allows full access to the whole XWiki installation. The main problem is that if a wiki macro parameter allows wiki syntax, its default value is executed with the rights of the author of the document where it is used. This can be exploited by overriding a macro like the children macro that is used in a page that has programming right like the page XWiki.ChildrenMacro and thus allows arbitrary script macros. This vulnerability has been patched in XWiki 16.4.7, 16.10.3 and 17.0.0 by executing wiki parameters with the rights of the wiki macro's author when the parameter's value is the default value.

Executive ViewAI

Why It Matters

XWiki installations are vulnerable to arbitrary code execution through wiki macro manipulation, allowing attackers with basic edit permissions to gain full system access. Organizations running affected XWiki versions face immediate risk of complete infrastructure compromise, data theft, and operational disruption.

Business Impact: High
Compensating Controls

Apply vendor patch. If patching is delayed: (1) Restrict edit permissions on all pages to trusted administrators only; (2) Disable custom wiki macro creation at the platform level; (3) Implement network segmentation to limit XWiki instance access; (4) Enable and monitor all audit logs for document edits and macro activity; (5) Review and remove non-essential edit permissions on user profiles and system pages.

Threat Intelligence Overview

EPSS Score
1.6%
Top 18% exploitable
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 1.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

66
Low Medium High Critical
KEV: 0
EPSS: +2
CVSS: +44
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Xwiki

View all
CVE-2025-24893 CRITICAL POC
9.8 Feb 20

XWiki Platform allows unauthenticated remote code execution through the SolrSearch endpoint, enabling guests to execute

CVE-2024-21650 CRITICAL POC
10.0 Jan 08

XWiki Platform prior to specific patched versions contains a CVSS 10.0 remote code execution vulnerability through the u

CVE-2023-29525 HIGH POC
8.8 Apr 19

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated high seve

CVE-2025-32969 CRITICAL POC
9.3 Apr 23

XWiki is a generic wiki platform. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no aut

CVE-2025-55727 CRITICAL POC
9.8 Sep 09

Remote code execution in XWiki Pro Macros 1.0 through 1.26.4 allows authenticated users who can edit at least one page o

CVE-2023-27479 CRITICAL POC
9.9 Mar 07

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26055 CRITICAL POC
9.9 Mar 02

XWiki Commons are technical libraries common to several other top level XWiki projects. Rated critical severity (CVSS 9.

CVE-2024-31996 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2024-31982 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2023-46731 CRITICAL POC
9.8 Nov 06

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26477 CRITICAL POC
9.8 Mar 02

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2025-52472 CRITICAL POC
9.3 Oct 06

Unauthenticated HQL injection in the XWiki Platform REST search API lets remote attackers inject arbitrary Hibernate Que

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy