{"id":"GHSA-h6f5-8jj5-cxhr","summary":"xwiki-platform vulnerable to Remote Code Execution in Annotations","details":"### Impact\n\nThe annotation displayer does not execute the content in a restricted context. This allows executing anything with the right of the author of any document by annotating the document.\n\nTo reproduce: add an annotation with the content `{{groovy}}print \"hello\"{{/groovy}}` and click the yellow scare to get a display of the annotation inline.\n\nThe result is \"hello\" but it should be an error suggesting that it's not allowed to use the groovy macro.\n\n### Patches\nThis has been patched in XWiki 13.10.11, 14.4.7 and 14.10.\n\n### Workarounds\nThere is no easy workaround except to upgrade.\n\n### References\nhttps://jira.xwiki.org/browse/XWIKI-20360\n\nhttps://jira.xwiki.org/browse/XWIKI-20384\n\n### For more information\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)\n\n### Attribution\n\nThis vulnerability has been reported by René de Sain @renniepak.","aliases":["CVE-2023-26475"],"modified":"2023-11-08T04:12:01.595608Z","published":"2023-03-02T15:16:43Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2023-03-02T15:16:43Z","nvd_published_at":"2023-03-02T19:15:00Z","cwe_ids":["CWE-269","CWE-270"],"severity":"CRITICAL"},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-h6f5-8jj5-cxhr"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-26475"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/d87d7bfd8db18c20d3264f98c6deefeae93b99f7"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20360"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20384"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-annotation-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-annotation-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.3-milestone-1"},{"fixed":"13.10.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-h6f5-8jj5-cxhr/GHSA-h6f5-8jj5-cxhr.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-annotation-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-annotation-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.0-rc-1"},{"fixed":"14.4.7"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-h6f5-8jj5-cxhr/GHSA-h6f5-8jj5-cxhr.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-annotation-ui","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-annotation-ui"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"14.5"},{"fixed":"14.10"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2023/03/GHSA-h6f5-8jj5-cxhr/GHSA-h6f5-8jj5-cxhr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}