Improper Control of Generation of Code ('Code Injection') Affecting org.xwiki.platform:xwiki-platform-search-ui package, versions [5.2-milestone-2,14.10.20)[15.0-rc-1,15.5.4)[15.6-rc-1,15.10-rc-1)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Improper Control of Generation of Code ('Code Injection') vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGXWIKIPLATFORM-6595944
  • published11 Apr 2024
  • disclosed10 Apr 2024
  • creditUnknown

Introduced: 10 Apr 2024

CVE-2024-31465  (opens in a new tab)
CWE-95  (opens in a new tab)

How to fix?

Upgrade org.xwiki.platform:xwiki-platform-search-ui to version 14.10.20, 15.5.4, 15.10-rc-1 or higher.

Overview

org.xwiki.platform:xwiki-platform-search-ui is a Platform Search UI which allows searching on the full wiki using wildcards, searching by space, getting search result RSS feeds and more. By default provides a Database-backed search but allows pluging other engines (such as Lucene, Solr and more)

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') due to the improper handling of user input in the SearchSuggestSourceSheet. An attacker can execute arbitrary code on the server by adding a specially crafted object of type XWiki.SearchSuggestSourceClass to a user profile or any other editable page. This is only exploitable if the attacker has edit rights on any page.

CVSS Scores

version 3.1