{"id":"CVE-2023-40177","published":"2023-08-23T20:11:45Z","modified":"2024-10-03T13:41:37Z","title":"XWiki Platform privilege escalation (PR) from account through AWM content fields","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. Any registered user can use the content field of their user profile page to execute arbitrary scripts with programming rights, thus effectively performing rights escalation. This issue is present since version 4.3M2 when AppWithinMinutes Application added support for the Content field, allowing any wiki page (including the user profile page) to use its content as an AWM Content field, which has a custom displayer that executes the content with the rights of the ``AppWithinMinutes.Content`` author, rather than the rights of the content author. The vulnerability has been fixed in XWiki 14.10.5 and 15.1RC1. The fix is in the content of the AppWithinMinutes.Content page that defines the custom displayer. By using the ``display`` script service to render the content we make sure that the proper author is used for access rights checks.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.9,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01058,"percentile":0.65302,"provenance":"source"},"cwes":[{"id":"CWE-95","name":"Improper Neutralization of Directives in Dynamically Evaluated Code"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-5mf8-v43w-mfxp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/dfb1cde173e363ca5c12eb3654869f9719820262","tags":["x_refsource_MISC"]},{"url":"https://jira.xwiki.org/browse/XWIKI-7369","tags":["x_refsource_MISC"]}],"priority":{"score":20.0,"factors":[{"name":"EPSS percentile","points":13.06},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 4.3-milestone-2, < 14.10.5"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2024-10-03T13:41:24.610232Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-appwithinminutes-ui","vulnerableRanges":[">=4.3-milestone-2, <14.10.5"],"patched":["14.10.5"],"from":["GHSA-5mf8-v43w-mfxp"],"provenance":"source"}],"summary":{"text":"The flaw is in the XWiki Platform (xwiki-platform) product, specifically in the AppWithinMinutes application's Content field support, which renders profile page content with the rights of the AppWithinMinutes.Content page's author rather than the content author. An attacker with a regular registered user account (low privileges, no user interaction required, and reachable over the network) can place scripts in the content field of their own user profile page and have them executed with programming rights, effectively escalating privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:00Z"},"euvd":{"id":"EUVD-2023-2215","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-29515","published":"2023-04-18","fixed":"14.10.1","kev":false},{"cve":"CVE-2023-29527","published":"2023-04-18","fixed":"14.10.3","kev":false},{"cve":"CVE-2023-40177","published":"2023-08-23","fixed":"14.10.5","kev":false},{"cve":"CVE-2023-35153","published":"2023-06-23","fixed":"15.0","kev":false,"link":{"from":"CVE-2023-35153","to":"CVE-2023-40177","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-appwithinminutes-ui","fromFixed":"14.10.4","toFixed":"14.10.5","daysApart":61}]}},{"cve":"CVE-2023-35161","published":"2023-06-23","fixed":"15.1-rc-1","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-appwithinminutes-ui"}}