CVE-2025-49581: Remote Code Execution Vulnerability in XWiki Macro Parameters

Summary

13/06/2025
Yes i
High
8.7

CVE-2025-49581: XWiki allows remote code execution through default value of wiki macro wiki-type parameters. Affects org.xwiki.platform:xwiki-platform-rendering-wikimacro-store across 5 version ranges.

>= 11.10.11 >= 12.6.3 >= 12.8-rc-1, < 16.4.7 >= 16.5.0-rc-1, < 16.10.3 >= 17.0.0-rc-1, < 17.0.0

Fixed in 16.4.7, 16.10.3 or 17.0.0, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

XWiki is a powerful open-source platform designed for collaborative documentation and knowledge management. It allows users to create, edit, and manage content in a wiki-style format. The platform supports various programming languages and provides a rich set of features, including macros that enhance the functionality of wiki pages. However, a critical vulnerability has been identified in the handling of default values for wiki macro parameters, which can lead to severe security risks.

Vulnerability Detail

The vulnerability arises from the way XWiki processes default values for wiki macro parameters. Any user with edit rights on a page can exploit this flaw by defining a wiki macro that executes code (Groovy, Python, Velocity) with the permissions of the document's author. This can lead to unauthorized access and manipulation of the entire XWiki installation, compromising its confidentiality, integrity, and availability. The issue is particularly concerning when a macro parameter allows wiki syntax, as the default value is executed without proper restrictions.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 12.8-rc-1, < 16.4.7 16.4.7
  • >= 16.5.0-rc-1, < 16.10.3 16.10.3
  • >= 17.0.0-rc-1, < 17.0.0 17.0.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

Currently, there are no known workarounds for this vulnerability other than upgrading to the patched versions mentioned above.

Conclusion

The CVE-2025-49581 vulnerability in XWiki poses a significant risk due to its potential for remote code execution. Users are strongly advised to upgrade to the patched versions to mitigate this threat. Regular monitoring and updates are essential to maintain the security of the XWiki platform.

See every vulnerability recorded for org.xwiki.platform:xwiki-platform-rendering-wikimacro-store →

Share this vulnerability

FAQ

CVE-2025-49581 is a vulnerability in XWiki that allows remote code execution through improperly handled default values of wiki macro parameters.

Any user with edit rights on a page in XWiki can potentially exploit this vulnerability, affecting the entire XWiki installation.

Exploitation of this vulnerability can lead to unauthorized access, data manipulation, and complete compromise of the XWiki system.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit Vulert Scanner to check your application without needing to sign up.

The CVSS score of this vulnerability is 8.7, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for org.xwiki.platform:xwiki-platform-rendering-wikimacro-store.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 12.8-rc-1, < 16.4.7 16.4.7
  • >= 16.5.0-rc-1, < 16.10.3 16.10.3
  • >= 17.0.0-rc-1, < 17.0.0 17.0.0

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback