CVE-2025-49582
JSON

8.6high

XWiki's required right warnings for macros are incomplete

Severity
8.6high CVSS:4.0 by GitHub_M
Exploit likelihood
0.98% (higher than 63% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-c32m-27pj-4xcj

Description

XWiki is a generic wiki platform. When editing content that contains "dangerous" macros like malicious script macros that were authored by a user with fewer rights, XWiki warns about the execution of these macros since XWiki 15.9RC1. These required rights analyzers that trigger these warnings are incomplete, allowing an attacker to hide malicious content. For most macros, the existing analyzers don't consider non-lowercase parameters. Further, most macro parameters that can contain XWiki syntax like titles of information boxes weren't analyzed at all. Similarly, the "source" parameters of the content and context macro weren't anylzed even though they could contain arbitrary XWiki syntax. In the worst case, this could allow a malicious to add malicious script macros including Groovy or Python macros to a page that are then executed after another user with programming righs edits the page, thus allowing remote code execution. The required rights analyzers have been made more robust and extended to cover those cases in XWiki 16.4.7, 16.10.3 and 17.0.0.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 15.9-rc-1, < 16.4.7, >= 16.5.0-rc-1, < 16.10.3, >= 17.0.0-rc-1, < 17.0.0CVE List
org.xwiki.platform:xwiki-platform-rendering-xwiki (Maven)from 15.9-rc-1 before 16.4.7, from 16.5.0-rc-1 before 16.10.3, from 17.0.0-rc-1 before 17.0.0GitHub Advisory Database
org.xwiki.platform:xwiki-platform-rendering-macro-cache (Maven)from 15.9-rc-1 before 16.4.7, from 16.5.0-rc-1 before 16.10.3, from 17.0.0-rc-1 before 17.0.0GitHub Advisory Database
org.xwiki.platform:xwiki-platform-security-requiredrights-default (Maven)from 15.9-rc-1 before 16.4.7, from 16.5.0-rc-1 before 16.10.3, from 17.0.0-rc-1 before 17.0.0GitHub Advisory Database
org.xwiki.platform:xwiki-platform-rendering-macro-context (Maven)from 15.9-rc-1 before 16.4.7, from 16.5.0-rc-1 before 16.10.3, from 17.0.0-rc-1 before 17.0.0GitHub Advisory Database
xwiki xwikifrom 15.9 before 16.4.7, from 16.5.0 before 16.10.3, 17.0.0NVD

All scores

GitHub_M8.6high CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
NVD8.0high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-357

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

XWiki is a generic wiki platform. When editing content that contains "dangerous" macros like malicious script macros that were authored by a user with fewer rights, XWiki warns about the execution of these macros since XWiki 15.9RC1. These required rights analyzers that trigger these warnings are incomplete, allowing an attacker to hide malicious content. For most macros, the existing analyzers don't consider non-lowercase parameters. Further, most macro parameters that can contain XWiki syntax like titles of information boxes weren't analyzed at all. Similarly, the "source" parameters of the content and context macro weren't anylzed even though they could contain arbitrary XWiki syntax. In the worst case, this could allow a malicious to add malicious script macros including Groovy or Python macros to a page that are then executed after another user with programming righs edits the page, thus allowing remote code execution. The required rights analyzers have been made more robust and extended to cover those cases in XWiki 16.4.7, 16.10.3 and 17.0.0.

GitHub Advisory Database
Impact

When editing content that contains "dangerous" macros like malicious script macros that were authored by a user with fewer rights, XWiki warns about the execution of these macros since XWiki 15.9RC1. These required rights analyzers that trigger these warnings are incomplete, allowing an attacker to hide malicious content. For most macros, the existing analyzers don't consider non-lowercase parameters. Further, most macro parameters that can contain XWiki syntax like titles of information boxes weren't analyzed at all. Similarly, the "source" parameters of the content and context macro weren't anylzed even though they could contain arbitrary XWiki syntax. In the worst case, this could allow a malicious to add malicious script macros including Groovy or Python macros to a page that are then executed after another user with programming righs edits the page, thus allowing remote code execution.

Patches

The required rights analyzers have been made more robust and extended to cover those cases in XWiki 16.4.7, 16.10.3 and 17.0.0.

Workarounds

We're not aware of any workarounds except for being careful when editing content authored by untrusted users.

References
NVD (es)

XWiki es una plataforma wiki genérica. Al editar contenido que contiene macros "peligrosas", como macros de script maliciosas creadas por un usuario con menos permisos, XWiki advierte sobre su ejecución desde la versión 15.9RC1 de XWiki. Estos analizadores de permisos obligatorios que activan estas advertencias están incompletos, lo que permite a un atacante ocultar contenido malicioso. Para la mayoría de las macros, los analizadores existentes no consideran los parámetros que no están en minúsculas. Además, la mayoría de los parámetros de macro que pueden contener sintaxis de XWiki, como los títulos de los cuadros de información, no se analizaron en absoluto. De igual manera, los parámetros "fuente" de la macro de contenido y contexto no se analizaron, a pesar de que podrían contener sintaxis arbitraria de XWiki. En el peor de los casos, esto podría permitir que un usuario malicioso agregue macros de script maliciosas, como macros de Groovy o Python, a una página, que se ejecutan después de que otro usuario con conocimientos de programación edite la página, lo que permite la ejecución remota de código. Los analizadores de derechos necesarios se han hecho más robustos y ampliados para cubrir esos casos en XWiki 16.4.7, 16.10.3 y 17.0.0.

References

https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-c32m-27pj-4xcjvendor-advisory, web
https://github.com/xwiki/xwiki-platform/commit/0a705e8e253cb871b804e25c53b2bde879c886bdpatch, web
https://github.com/xwiki/xwiki-platform/commit/3d451e957fe2b14459e9ac64172b4a0e4c46971cpatch, web
https://github.com/xwiki/xwiki-platform/commit/abdcefc0db27035b67329add836fd683e0cf92b8patch, web
https://github.com/xwiki/xwiki-platform/commit/cc74dc802efe0e2d3fa2ba3355dbadc51c5fd8c7patch, web
https://jira.xwiki.org/browse/XWIKI-22758exploit, issue-tracking, vendor-advisory, web
https://jira.xwiki.org/browse/XWIKI-22759exploit, issue-tracking, vendor-advisory, web
https://jira.xwiki.org/browse/XWIKI-22763exploit, issue-tracking, vendor-advisory, web
https://jira.xwiki.org/browse/XWIKI-22799exploit, issue-tracking, vendor-advisory, web
https://nvd.nist.gov/vuln/detail/CVE-2025-49582advisory
https://github.com/xwiki/xwiki-platformpackage

Sources

SourceRecordLicence
CVE ListCVE-2025-49582 changed 2025-06-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-c32m-27pj-4xcj changed 2025-11-04CC-BY-4.0
NVDCVE-2025-49582 changed 2026-06-17Public domain