{"id":"CVE-2023-50732","aliases":["CVE-2023-50732","GHSA-p5f8-qf24-24cj"],"related":[],"kind":"vulnerability","state":"published","title":"Velocity execution without script right through tree macro","summary":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to execute a Velocity script without script right through the document tree. This has been patched in XWiki 14.10.7 and 15.2RC1.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It's possible to execute a Velocity script without script right through the document tree. This has been patched in XWiki 14.10.7 and 15.2RC1.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nIt's possible to execute a Velocity script without script right through the document tree.\n\nTo reproduce:\n\n* As a user without script right, create a document, e.g., named Nasty Title\n* Set the document's title to `$request.requestURI`\n* Click \"Save & View\"\n* Reload the page in the browser\n\nThe navigation panel displays a document named with the current URL, showing that the Velocity code has been executed even though the user doesn't have script right.\n\n### Patches\n\nThis has been patched in XWiki 14.10.7 and 15.2RC1.\n\n### Workarounds\n\nA possible workaround is to:\n* modify the page XWiki.DocumentTreeMacros\n* search for the code `#set ($discard = $translatedDocument.setTitle($translatedDocument.title))`\n* modify it into `#set ($discard = $translatedDocument.setcomment(''))`\n\n### References\n\n* https://jira.xwiki.org/browse/XWIKI-20625\n* https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Email us at [Security Mailing List](mailto:security@xwiki.org)","format":"markdown","source":"ghsa"},{"lang":"es","text":"XWiki Platform es una plataforma wiki genérica que ofrece servicios de ejecución para aplicaciones creadas sobre ella. Es posible ejecutar un script de Velocity sin script directamente a través del árbol de documentos. Esto ha sido parcheado en XWiki 14.10.7 y 15.2RC1.","source":"nvd"}],"published":"2023-12-19T21:39:31.000Z","modified":"2026-09-10T03:49:59.716Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:L","score":8.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"rating":"MEDIUM"}],"cwes":["CWE-863"],"affected":[{"ranges":[{"version":">= 8.3-rc-1, < 14.10.7","status":"affected"},{"version":">= 15.0-rc-1, < 15.2-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"8.3-rc-1","status":"affected","fixed":"14.10.7"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-index-tree-macro","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"15.0-rc-1","status":"affected","fixed":"15.2-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-index-tree-macro","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-index-tree-macro","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.3","fixed":"14.10.7"},{"status":"affected","introduced":"15.0","fixed":"15.2"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-p5f8-qf24-24cj","tags":["exploit","mitigation","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/41d7dca2d30084966ca6a7ee537f39ee8354a7e3","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20625","tags":["exploit","issue-tracking","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50732","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-50732","url":"https://www.cve.org/CVERecord?id=CVE-2023-50732","licence":"CVE Terms of Use","modified":"2024-08-02T22:16:47.254Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p5f8-qf24-24cj","url":"https://github.com/advisories/GHSA-p5f8-qf24-24cj","licence":"CC-BY-4.0","modified":"2026-09-10T03:49:59.716Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-50732","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-50732","licence":"Public domain","modified":"2026-06-17T06:39:52.770Z"}],"updatedAt":"2026-11-25T22:58:31.603Z","epss":{"score":0.00486,"percentile":0.435,"date":"2026-12-01T12:00:22.000Z"}}