CVE-2024-31984
Java vulnerability analysis and mitigation

Overview

CVE-2024-31984 affects XWiki Platform, a generic wiki platform. The vulnerability was discovered in versions starting from 7.2-rc-1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1. The issue allows any user with the ability to edit space titles (a default permission) to execute arbitrary Groovy code through the Solr-based search functionality (GitHub Advisory).

Technical details

The vulnerability is classified as a code injection vulnerability (CWE-94) and eval injection (CWE-95). It has received a CVSS v3.1 base score of 9.9 CRITICAL (Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H). The exploit involves creating a document with a specially crafted title containing malicious Groovy code that gets executed when the Solr space facet feature is used in the search interface (GitHub Advisory, NVD).

Impact

The vulnerability allows attackers to execute arbitrary Groovy code in the XWiki installation, compromising the confidentiality, integrity, and availability of the entire XWiki installation. This is particularly severe as it can be exploited by any user with default permissions, without requiring special privileges (GitHub Advisory).

Exploitability

The vulnerability can be exploited by creating a document with a title containing malicious code in the format '{{/html}}{{async}}{{groovy}}println("Hello from Groovy Title!"){{/groovy}}{{/async}}'. When the search UI is used and the Location facet is deployed, the code is executed with system privileges (GitHub Advisory, XWIKI Jira).

Mitigation and workarounds

The vulnerability has been patched in XWiki versions 14.10.20, 15.5.4, and 15.10 RC1. As a workaround for unpatched systems, administrators can manually modify the Main.SolrSpaceFacet page following the provided patch (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-76904CRITICAL9.8
  • Java logoJava
  • org.geotools.jdbc:gt-jdbc-postgis
NoYesAug 21, 2026
GHSA-mqjf-5f49-2fjhCRITICAL9.8
  • Java logoJava
  • org.geotools:gt-jdbc-postgis
NoYesAug 21, 2026
CVE-2026-54049HIGH8.7
  • Java logoJava
  • org.sakaiproject.conversations:sakai-conversations-impl
NoNoAug 24, 2026
CVE-2026-63202HIGH7.5
  • Java logoJava
  • io.netty.incubator:netty-incubator-codec-bhttp
NoYesAug 20, 2026
CVE-2026-54050MEDIUM6.5
  • Java logoJava
  • org.sakaiproject.profile2:profile2-api
NoYesAug 24, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management