{"id":"CVE-2022-41931","published":"2022-11-23T00:00:00Z","modified":"2025-04-22T16:01:00Z","title":"Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki-platform-icon-ui","vendor":"xwiki","product":"xwiki-platform","tier":"tail","description":{"text":"xwiki-platform-icon-ui is vulnerable to Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection'). Any user with view rights on commonly accessible documents including the icon picker macro can execute arbitrary Groovy, Python or Velocity code in XWiki due to improper neutralization of the macro parameters of the icon picker macro. The problem has been patched in XWiki 13.10.7, 14.5 and 14.4.2. Workarounds: The [patch](https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01) can be manually applied by editing `IconThemesCode.IconPickerMacro` in the object editor. The whole document can also be replaced by the current version by importing the document from the XAR archive of a fixed version as the only changes to the document have been security fixes and small formatting changes.","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:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02141,"percentile":0.82705,"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-5j7g-cf6r-g2h7","tags":[]},{"url":"https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01","tags":[]},{"url":"https://jira.xwiki.org/browse/XWIKI-19805","tags":[]}],"priority":{"score":23.5,"factors":[{"name":"EPSS percentile","points":16.54},{"name":"CVSS severity","points":6.93}]},"vendorSlug":"xwiki","affectedVersions":[{"vendor":"xwiki","product":"xwiki-platform","versions":[">= 6.4-milestone-2, < 13.10.7",">= 14.0.0, < 14.4.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-22T15:40:22.189142Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-icon-ui","vulnerableRanges":[">=6.4-milestone-2, <13.10.7",">=14.0.0, <14.4.2"],"patched":["13.10.7","14.4.2"],"from":["GHSA-5j7g-cf6r-g2h7"],"provenance":"source"}],"summary":{"text":"The xwiki-platform-icon-ui component of XWiki (vendor xwiki, product xwiki-platform) contains an eval injection flaw: the macro parameters of the icon picker macro are not properly neutralized before dynamic evaluation. An attacker with only low-privilege, network-reachable access, meaning view rights on commonly accessible documents including the icon picker macro, can execute arbitrary Groovy, Python or Velocity code in XWiki, with no user interaction needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:01:29Z"},"euvd":{"id":"EUVD-2022-7241","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-xwiki-platform-cve-2022-41931","children":[{"from":"CVE-2022-41931","to":"CVE-2023-36470","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["xwiki-platform-core/xwiki-platform-icon/xwiki-platform-icon-ui/src/main/resources/IconThemesCode/IconPickerMacro.xml"],"commits":["https://github.com/xwiki/xwiki-platform/commit/47eb8a5fba550f477944eb6da8ca91b87eaf1d01","https://github.com/xwiki/xwiki-platform/commit/46b542854978e9caa687a5c2b8817b8b17877d94","https://github.com/xwiki/xwiki-platform/commit/79418dd92ca11941b46987ef881bf50424898ff4"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2022-41931","published":"2022-11-23","fixed":"14.4.2","kev":false},{"cve":"CVE-2023-26472","published":"2023-03-02","fixed":"14.9","kev":false,"link":{"from":"CVE-2022-41931","to":"CVE-2023-26472","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-icon-ui","fromFixed":"13.10.7","toFixed":"13.10.10","daysApart":99},{"kind":"version-step","provenance":"source","package":"Maven:org.xwiki.platform:xwiki-platform-icon-ui","fromFixed":"14.4.2","toFixed":"14.4.6","daysApart":99}]}},{"cve":"CVE-2023-36470","published":"2023-06-29","fixed":"15.2-rc-1","kev":false}],"package":"Maven:org.xwiki.platform:xwiki-platform-icon-ui"}}