cve.bz

CVE-2025-49581 xwiki xwiki: Code Injection

8.7 highExploit referenceEPSS 0.6%Fix available

High (8.7) in xwiki xwiki. EPSS 0.6% estimated probability of exploitation activity in the next 30 days. Fixed in org.xwiki.platform:xwiki-platform-rendering-wikimacro-store 16.10.3, 16.4.7, 17.0.0.

On this page
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.

Severity

CVSS 4.0

8.7 high
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

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
0.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 51st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2025-06-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-94 Improper Control of Generation of Code (Code Injection)
CWE-250 Execution with Unnecessary Privileges
CWE-270 Privilege Context Switching Error
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-49581 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-49581?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-49581?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-49581 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
xwiki:xwikifrom 11.10.11 before 12.0
xwiki:xwikifrom 12.6.3 before 12.7
xwiki:xwikifrom 12.8 before 16.4.7
xwiki:xwikifrom 16.5.0 before 16.10.3
xwiki:xwiki17.0.0:rc1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9875-cw22-f7cxMavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=11.10.11no fix published
GHSA-9875-cw22-f7cxMavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=12.6.3no fix published
GHSA-9875-cw22-f7cxMavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=12.8-rc-1 <16.4.716.4.7
GHSA-9875-cw22-f7cxMavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=16.5.0-rc-1 <16.10.316.10.3
GHSA-9875-cw22-f7cxMavenorg.xwiki.platform:xwiki-platform-rendering-wikimacro-store>=17.0.0-rc-1 <17.0.017.0.0

Attack patterns (CAPEC)

  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-77 Manipulating User-Controlled Variables Likelihood: High · Severity: Very High
  • CAPEC-242 Code Injection Likelihood: High · Severity: High
  • CAPEC-69 Target Programs with Elevated Privileges Likelihood: High · Severity: Very High
  • CAPEC-104 Cross Zone Scripting Likelihood: Medium · Severity: High
  • CAPEC-470 Expanding Control over the Operating System from the Database Severity: Very High
  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-30 Hijacking a Privileged Thread of Execution Likelihood: Low · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON