SecurityContext

CVE-2024-37899: XWiki Platform - Remote Code Execution

  • Cve: CVE-2024-37899
  • Name: XWiki Platform - Remote Code Execution
  • Description: XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. When an admin disables a user account, the user's profile is executed with the admin's rights. This allows a user to place malicious code in the user profile before getting an admin to disable the user account. To reproduce, as a user without script nor programming rights, edit the about section of your user profile and add `{{groovy}}services.logging.getLogger("attacker").error("Hello from Groovy!"){{/groovy}}`. As an admin, go to the user profile and click the "Disable this account" button. Then, reload the page. If the logs show `attacker - Hello from Groovy!` then the instance is vulnerable. This has been patched in XWiki 14.10.21, 15.5.5, 15.10.6 and 16.0.0. Users are advised to upgrade. There are no known workarounds for this vulnerability. ### Workarounds We're not aware of any workaround except upgrading. ### References * https://jira.xwiki.org/browse/XWIKI-21611 * https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5a
  • Impact: Attackers can execute arbitrary code with admin rights by injecting malicious code into user profiles during account disable process.
  • Remediation: Upgrade to version 14.10.21, 15.5.5, 15.10.6, or 16.0.0.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker must add malicious code to user profile and admin must disable the account.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Epss score: 0.00694
  • Epss percentile: 0.53896
  • Assignee: [email protected]
  • Published at: 2024-06-20T23:15:52Z
  • Age in days: 887
  • Modified at: 2026-06-17T07:39:00Z
  • 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-2024-37899
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

Public exploits

UrlSourceAdded date
https://jira.xwiki.org/browse/XWIKI-21611nvd2024-06-20

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/xwiki/xwiki-platform/commit/f89c8f47fad6e5cc7e68c69a7e0acde07f5eed5aPatch
https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-j584-j2vj-3f93Vendor Advisory
https://jira.xwiki.org/browse/XWIKI-21611Exploit, Vendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
xwiki:xwiki= 16.0.0 rc1; >= 15.6, < 15.10.6; >= 15.0, < 15.5.5; >= 13.10.3, < 14.10.21; = 13.5 rc1; = 13.4.7nonvd/v1/products/xwiki/xwiki

Projects

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

Index

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

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2024-06-20
  • 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