CVE-2025-49582

CVE-2025-49582 is a high-severity security vulnerability in org.xwiki.platform:xwiki-platform-rendering-xwiki (maven), affecting versions >= 15.9-rc-1, < 16.4.7. It is fixed in 16.4.7, 16.10.3, 17.0.0.

Summary

Workarounds

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

References

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.

Affected versions

org.xwiki.platform:xwiki-platform-rendering-xwiki (>= 15.9-rc-1, < 16.4.7) org.xwiki.platform:xwiki-platform-rendering-xwiki (>= 16.5.0-rc-1, < 16.10.3) org.xwiki.platform:xwiki-platform-rendering-xwiki (>= 17.0.0-rc-1, < 17.0.0) org.xwiki.platform:xwiki-platform-rendering-macro-cache (>= 15.9-rc-1, < 16.4.7) org.xwiki.platform:xwiki-platform-rendering-macro-cache (>= 16.5.0-rc-1, < 16.10.3) org.xwiki.platform:xwiki-platform-rendering-macro-cache (>= 17.0.0-rc-1, < 17.0.0) org.xwiki.platform:xwiki-platform-security-requiredrights-default (>= 15.9-rc-1, < 16.4.7) org.xwiki.platform:xwiki-platform-security-requiredrights-default (>= 16.5.0-rc-1, < 16.10.3) org.xwiki.platform:xwiki-platform-security-requiredrights-default (>= 17.0.0-rc-1, < 17.0.0) org.xwiki.platform:xwiki-platform-rendering-macro-context (>= 15.9-rc-1, < 16.4.7) org.xwiki.platform:xwiki-platform-rendering-macro-context (>= 16.5.0-rc-1, < 16.10.3) org.xwiki.platform:xwiki-platform-rendering-macro-context (>= 17.0.0-rc-1, < 17.0.0)

Security releases

org.xwiki.platform:xwiki-platform-rendering-xwiki → 16.4.7 (maven) org.xwiki.platform:xwiki-platform-rendering-xwiki → 16.10.3 (maven) org.xwiki.platform:xwiki-platform-rendering-xwiki → 17.0.0 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-cache → 16.4.7 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-cache → 16.10.3 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-cache → 17.0.0 (maven) org.xwiki.platform:xwiki-platform-security-requiredrights-default → 16.4.7 (maven) org.xwiki.platform:xwiki-platform-security-requiredrights-default → 16.10.3 (maven) org.xwiki.platform:xwiki-platform-security-requiredrights-default → 17.0.0 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-context → 16.4.7 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-context → 16.10.3 (maven) org.xwiki.platform:xwiki-platform-rendering-macro-context → 17.0.0 (maven)

Kodem intelligence

Severity tells you how bad this could be in the worst case. It does not tell you whether you are exposed. Exploitability and impact are functions of runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A vulnerable package can sit in your dependency tree and never run.

Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter. Kodem's runtime-powered SCA identifies whether this CVE is reachable in your applications.

See it in your environment

Remediation advice

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.

Frequently Asked Questions

  1. What is CVE-2025-49582? CVE-2025-49582 is a high-severity security vulnerability in org.xwiki.platform:xwiki-platform-rendering-xwiki (maven), affecting versions >= 15.9-rc-1, < 16.4.7. It is fixed in 16.4.7, 16.10.3, 17.0.0.
  2. Which packages are affected by CVE-2025-49582?
    • org.xwiki.platform:xwiki-platform-rendering-xwiki (maven) (versions >= 15.9-rc-1, < 16.4.7)
    • org.xwiki.platform:xwiki-platform-rendering-macro-cache (maven) (versions >= 15.9-rc-1, < 16.4.7)
    • org.xwiki.platform:xwiki-platform-security-requiredrights-default (maven) (versions >= 15.9-rc-1, < 16.4.7)
    • org.xwiki.platform:xwiki-platform-rendering-macro-context (maven) (versions >= 15.9-rc-1, < 16.4.7)
  3. Is there a fix for CVE-2025-49582? Yes. CVE-2025-49582 is fixed in 16.4.7, 16.10.3, 17.0.0. Upgrade to this version or later.
  4. Is CVE-2025-49582 exploitable, and should I be worried? Whether CVE-2025-49582 is exploitable in your environment depends on whether the vulnerable code is present and reachable. A CVSS score is a worst-case rating; it does not account for your specific deployment, configuration, or usage patterns. Kodem, an Intelligent Application Security platform, uses runtime intelligence to show which vulnerabilities actually execute in production, so you can focus on the ones that represent real risk. Get a demo
  5. What actually determines whether CVE-2025-49582 is exploitable, and how bad it is? Exploitability and impact are not fixed properties of a CVE. They depend on runtime truth: whether the vulnerable code is present, reachable, and actually executes in your application. A high CVSS score on a dependency that never runs is not the same as real risk. Kodem, an Intelligent Application Security platform, uses runtime intelligence to reveal which vulnerabilities actually execute in production, so teams prioritize the ones that genuinely matter.
  6. How do I fix CVE-2025-49582?
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-xwiki to 16.4.7 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-xwiki to 16.10.3 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-xwiki to 17.0.0 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-cache to 16.4.7 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-cache to 16.10.3 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-cache to 17.0.0 or later
    • Upgrade org.xwiki.platform:xwiki-platform-security-requiredrights-default to 16.4.7 or later
    • Upgrade org.xwiki.platform:xwiki-platform-security-requiredrights-default to 16.10.3 or later
    • Upgrade org.xwiki.platform:xwiki-platform-security-requiredrights-default to 17.0.0 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-context to 16.4.7 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-context to 16.10.3 or later
    • Upgrade org.xwiki.platform:xwiki-platform-rendering-macro-context to 17.0.0 or later

Other vulnerabilities in org.xwiki.platform:xwiki-platform-rendering-xwiki

CVE-2023-29205

Stop the waste.
Protect your environment with Kodem.