{"id":"CVE-2023-41046","published":"2023-09-01T19:59:23Z","modified":"2024-09-30T20:20:54Z","title":"Velocity execution without script rights in Xwiki platform","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. It is possible in XWiki to execute Velocity code without having script right by creating an XClass with a property of type \"TextArea\" and content type \"VelocityCode\" or \"VelocityWiki\". For the former, the syntax of the document needs to be set the `xwiki/1.0` (this syntax doesn't need to be installed). In both cases, when adding the property to an object, the Velocity code is executed regardless of the rights of the author of the property (edit right is still required, though). In both cases, the code is executed with the correct context author so no privileged APIs can be accessed. However, Velocity still grants access to otherwise inaccessible data and APIs that could allow further privilege escalation. At least for \"VelocityCode\", this behavior is most likely very old but only since XWiki 7.2, script right is a separate right, before that version all users were allowed to execute Velocity and thus this was expected and not a security issue. This has been patched in XWiki 14.10.10 and 15.4 RC1. Users are advised to upgrade. There are no known workarounds.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00842,"percentile":0.55255,"provenance":"source"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-m5m2-h6h9-p2c8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/edc52579eeaab1b4514785c134044671a1ecd839","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20847","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20848","tags":["x_refsource_MISC"]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.05},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 7.2, < 14.10.10",">= 15.0-rc-1, < 15.4-rc-1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-30T20:20:35.350214Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-oldcore","vulnerableRanges":[">=7.2, <14.10.10",">=15.0-rc-1, <15.4-rc-1"],"patched":["14.10.10","15.4-rc-1"],"from":["GHSA-m5m2-h6h9-p2c8"],"provenance":"source"}],"summary":{"text":"The flaw is a missing authorization check in XWiki Platform (xwiki-platform), where Velocity code embedded in XClass TextArea properties with the \"VelocityCode\" or \"VelocityWiki\" content type executes without the script right. An attacker with edit rights to an object's property and network access to the wiki can have Velocity code run regardless of their script right, which exposes otherwise inaccessible data and APIs, though code runs under the correct author context so privileged APIs remain out of reach, and no workarounds exist beyond upgrading.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:41:32Z"},"euvd":{"id":"EUVD-2023-2543","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-21648","published":"2024-01-08","fixed":"14.10.17","kev":false,"link":{"from":"CVE-2023-41046","to":"CVE-2024-21648","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"14.10.10","toFixed":"14.10.17","daysApart":129}]}},{"cve":"CVE-2023-46243","published":"2023-11-07","fixed":"15.2-rc-1","kev":false},{"cve":"CVE-2023-37911","published":"2023-10-25","fixed":"15.3-rc-1","kev":false},{"cve":"CVE-2023-40572","published":"2023-08-24","fixed":"15.4-rc-1","kev":false,"link":{"from":"CVE-2023-40572","to":"CVE-2023-41046","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"14.10.9","toFixed":"14.10.10","daysApart":8}]}},{"cve":"CVE-2023-41046","published":"2023-09-01","fixed":"15.4-rc-1","kev":false},{"cve":"CVE-2024-31464","published":"2024-04-10","fixed":"15.9-rc-1","kev":false,"link":{"from":"CVE-2023-41046","to":"CVE-2024-31464","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"15.4-rc-1","toFixed":"15.5.4","daysApart":222}]}},{"cve":"CVE-2024-31981","published":"2024-04-10","fixed":"15.10-rc-1","kev":false,"link":{"from":"CVE-2023-41046","to":"CVE-2024-31981","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"15.4-rc-1","toFixed":"15.5.4","daysApart":222}]}},{"cve":"CVE-2024-31987","published":"2024-04-10","fixed":"15.10-rc-1","kev":false,"link":{"from":"CVE-2023-41046","to":"CVE-2024-31987","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-oldcore","fromFixed":"15.4-rc-1","toFixed":"15.5.4","daysApart":222}]}}],"package":"Maven:org.xwiki.platform:xwiki-platform-oldcore"}}