SecurityContext

CVE-2025-49581: XWiki - Code Execution

  • Cve: CVE-2025-49581
  • Name: XWiki - Code Execution
  • Description: 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.
  • Impact: Users with edit rights can execute arbitrary code with programming rights, leading to full system compromise.
  • Remediation: Update to versions 16.4.7, 16.10.3, 17.0.0 or later.
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs edit rights on a page
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.00633
  • Epss percentile: 0.51301
  • Assignee: [email protected]
  • Published at: 2025-06-13T16:15:27Z
  • Age in days: 529
  • Modified at: 2026-06-17T09:31:31Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-49581
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: vulnerability type, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://jira.xwiki.org/browse/XWIKI-22760nvd2025-06-13

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/xwiki/xwiki-platform/commit/c99d501ed41cbee6a3c02ff927714531570789dePatch
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-9875-cw22-f7cxVendor Advisory
https://jira.xwiki.org/browse/XWIKI-22760Exploit, Issue Tracking, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
xwiki:xwiki= 17.0.0 rc1; >= 16.5.0, < 16.10.3; >= 12.8, < 16.4.7; >= 12.6.3, < 12.7; >= 11.10.11, < 12.0nonvd/v1/products/xwiki/xwiki

Projects

RepositoryLink kindsIndexedUrl
xwiki/xwiki-platformcommit, fix, package, security_advisoryyes/v1/repositories/xwiki/xwiki-platform

Index

  • Repositories: 3
  • Repositories high signal: 3
  • Checked, none or zero: packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-06-13
  • Remote: yes
  • Authentication required: yes
  • Exposed hosts: 142594
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports