{"cve":"CVE-2024-31982","nvd":{"published":"2024-04-10T20:15:08.463","modified":"2026-06-17T07:29:03.547","status":"Modified","description":"XWiki Platform is a generic wiki platform. Starting in version 2.4-milestone-1 and prior to versions 4.10.20, 15.5.4, and 15.10-rc-1, XWiki's database search allows remote code execution through the search text. This allows remote code execution for any visitor of a public wiki or user of a closed wiki as the database search is by default accessible for all users. This impacts the confidentiality, integrity and availability of the whole XWiki installation. This vulnerability has been patched in XWiki 14.10.20, 15.5.4 and 15.10RC1. As a workaround, one may manually apply the patch to the page `Main.DatabaseSearch`. Alternatively, unless database search is explicitly used by users, this page can be deleted as this is not the default search interface of XWiki.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-94","CWE-95"],"references":["https://github.com/xwiki/xwiki-platform/commit/3c9e4bb04286de94ad24854026a09fa967538e31","https://github.com/xwiki/xwiki-platform/commit/459e968be8740c8abc2a168196ce21e5ba93cfb8","https://github.com/xwiki/xwiki-platform/commit/95bdd6cc6298acdf7f8f21298d40eeb8390a8565","https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-2858-8cfx-69m9","https://jira.xwiki.org/browse/XWIKI-21472"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-31982","score":0.3452,"percentile":0.98416,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-2858-8cfx-69m9","url":"https://osv.dev/vulnerability/GHSA-2858-8cfx-69m9","summary":"XWiki Platform: Remote code execution as guest via DatabaseSearch","modified":"2026-09-10T03:50:11.272250595Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-search-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-search-ui","ranges":[">=2.4-milestone-1 <14.10.20"],"fixed":["14.10.20"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-search-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-search-ui","ranges":[">=15.0-rc-1 <15.5.4"],"fixed":["15.5.4"]},{"ecosystem":"Maven","name":"org.xwiki.platform:xwiki-platform-search-ui","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-search-ui","ranges":[">=15.6-rc-1 <15.10-rc-1"],"fixed":["15.10-rc-1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}