{"cve":"CVE-2024-31996","nvd":{"published":"2024-04-10T21:15:07.510","modified":"2026-06-17T07:29:05.420","status":"Analyzed","description":"XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, the HTML escaping of escaping tool that is used in XWiki doesn't escape `{`, which, when used in certain places, allows XWiki syntax injection and thereby remote code execution. The vulnerability has been fixed in XWiki 14.10.19, 15.5.5, and 15.9 RC1. Apart from upgrading, there is no generic workaround. However, replacing `$escapetool.html` by `$escapetool.xml` in XWiki documents fixes the vulnerability. In a standard XWiki installation, the maintainers are only aware of the document `Panels.PanelLayoutUpdate` that exposes this vulnerability, patching this document is thus a workaround. Any extension could expose this vulnerability and might thus require patching, too.","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-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa","https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a","https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915","https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5","https://jira.xwiki.org/browse/XCOMMONS-2828"],"products":["xwiki:xwiki"],"source":"nvd","synced_at":"2026-10-19T21:48:32.179249784+00:00"},"epss":{"cve":"CVE-2024-31996","score":0.02104,"percentile":0.81736,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-hf43-47q4-fhq5","url":"https://osv.dev/vulnerability/GHSA-hf43-47q4-fhq5","summary":"XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution","modified":"2026-09-10T03:50:11.360258064Z","packages":[{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-velocity","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-velocity","ranges":[">=3.0.1 <14.10.19"],"fixed":["14.10.19"]},{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-velocity","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-velocity","ranges":[">=15.0-rc-1 <15.5.4"],"fixed":["15.5.4"]},{"ecosystem":"Maven","name":"org.xwiki.commons:xwiki-commons-velocity","purl":"pkg:maven/org.xwiki.commons/xwiki-commons-velocity","ranges":[">=15.6-rc-1 <15.9-rc-1"],"fixed":["15.9-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."]}