CVE-2025-49581: Xwiki platform rendering wikimacro store Remote Code Execution Vulnerability
HIGHCVE-2025-49581 is a HIGH remote code execution vulnerability (CWE-94: Improper Control of Generation of Code ('Code Injection')) affecting Xwiki platform rendering wikimacro store libraries in the Maven ecosystem. The issue involves xwiki allows remote code execution through default value of wiki macro wiki-type parameters. Remediation is available by upgrading affected packages to version 16.4.7, 16.10.3, 17.0.0.
CVE-2025-49581 at a Glance
How to Fix CVE-2025-49581
To remediate this vulnerability, upgrade all affected Xwiki platform rendering wikimacro store dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rendering-wikimacro-store</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rendering-wikimacro-store</artifactId>
<version>Latest secure release</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rendering-wikimacro-store</artifactId>
<version>16.4.7</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rendering-wikimacro-store</artifactId>
<version>16.10.3</version>
</dependency>
<dependency>
<groupId>org.xwiki.platform</groupId>
<artifactId>xwiki-platform-rendering-wikimacro-store</artifactId>
<version>17.0.0</version>
</dependency>
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
mvn dependency:tree -Dincludes=org.xwiki.platform
How to Check if You Are Affected
To determine whether your Java application is affected by CVE-2025-49581, inspect your build dependencies using the Maven Dependency Plugin:
mvn dependency:tree -Dincludes=org.xwiki.platform
Analyze the terminal output to locate any version of Xwiki platform rendering wikimacro store in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 16.4.7), your application is affected.
Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-94: Improper Control of Generation of Code ('Code Injection'), where the product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment. In Xwiki platform rendering wikimacro store, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-49581 Affected Xwiki platform rendering wikimacro store Versions
5 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store
|
Maven |
≥ 11.10.11
|
|
|
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store
|
Maven |
≥ 12.6.3
|
|
|
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store
|
Maven |
≥ 12.8-rc-1
< 16.4.7
|
16.4.7
|
|
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store
|
Maven |
≥ 16.5.0-rc-1
< 16.10.3
|
16.10.3
|
|
org.xwiki.platform:xwiki-platform-rendering-wikimacro-store
|
Maven |
≥ 17.0.0-rc-1
< 17.0.0
|
17.0.0
|
References
Frequently Asked Questions
What is CVE-2025-49581?
Which Xwiki platform rendering wikimacro store versions are affected?
What version fixes CVE-2025-49581?
Is xwiki-platform-rendering-wikimacro-store affected?
What CWE is associated with CVE-2025-49581?
How can I check Maven dependencies for CVE-2025-49581?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-9875-cw22-f7cx",
"modified" : "2025-06-13T20:40:19Z",
"published" : "2025-06-13T20:40:19Z",
"aliases" : [ "CVE-2025-49581" ],
"summary" : "XWiki allows remote code execution through default value of wiki macro wiki-type parameters",
"details" : "### Impact\nAny 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 and thus impacts its confidentiality, integrity and availability. 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. The full reproduction steps can be found in the [original issue](https://jira.xwiki.org/browse/XWIKI-22760).\n\n### Patches\nThis 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.\n\n### Workarounds\nWe're not aware of any workarounds except for upgrading.",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "11.10.11"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 12.0"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.6.3"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 12.7"
}
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "12.8-rc-1"
}, {
"fixed" : "16.4.7"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "16.5.0-rc-1"
}, {
"fixed" : "16.10.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Maven",
"name" : "org.xwiki.platform:xwiki-platform-rendering-wikimacro-store"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "17.0.0-rc-1"
}, {
"fixed" : "17.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cx"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-49581"
}, {
"type" : "WEB",
"url" : "https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789de"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/xwiki/xwiki-platform"
}, {
"type" : "WEB",
"url" : "https://jira.xwiki.org/browse/XWIKI-22760"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-94" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-06-13T20:40:19Z",
"nvd_published_at" : "2025-06-13T16:15:27Z"
}
}