{"id":"CVE-2023-26475","summary":"XWiki Platform vulnerable to Remote Code Execution in Annotations","details":"XWiki Platform is a generic wiki platform. Starting in version 2.3-milestone-1, the 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. This has been patched in XWiki 13.10.11, 14.4.7 and 14.10. There is no easy workaround except to upgrade.","aliases":["GHSA-h6f5-8jj5-cxhr"],"modified":"2026-10-28T10:38:35.986713517Z","published":"2023-03-02T18:07:04.129Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-269","CWE-270"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26475.json"},"references":[{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20360"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-20384"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/26xxx/CVE-2023-26475.json"},{"type":"ADVISORY","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":"FIX","url":"https://github.com/xwiki/xwiki-platform/commit/d87d7bfd8db18c20d3264f98c6deefeae93b99f7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/xwiki/xwiki-commons","events":[{"introduced":"0"},{"fixed":"8d72461ba6976af6005e2df511bdeeeb17ef2d74"},{"introduced":"491547c4f74b9be58123ef22081ae7e6840a11c7"},{"fixed":"5d5ba1ade22d91d0fd6bf3dd20bb96fa64264a97"},{"introduced":"bae1e23e73cafc007e5f28b39a04bfa0acf0199c"},{"fixed":"719ede2f8510fa69498761659de8d65eec5817db"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"13.10.11"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"14.0"},{"fixed":"14.4.7"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"},{"range":[{"introduced":"14.5"},{"fixed":"14.10"}],"source":"CPE_RANGE","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*"}]}},{"type":"GIT","repo":"https://github.com/xwiki/xwiki-platform","events":[{"introduced":"4d44915241413fd4f1eca6d19df3d695ba2b7bdd"},{"fixed":"08e0887f0362b21614e6bfcb5be7e1f568659c41"},{"introduced":"198ef99386911c0f7af11a0957092d349961e3a6"},{"fixed":"962ee4ac0352ab1a89cc779c29e81b0674d0203e"},{"introduced":"ab4dfeaeef13360eebcaa507bc652073aa89a427"},{"fixed":"c524887d154ff8f6df9651e36b904e234bf5a6ef"},{"fixed":"d87d7bfd8db18c20d3264f98c6deefeae93b99f7"}],"database_specific":{"extracted_events":[{"source":"AFFECTED_FIELD","strategy":"StringRangeExpression","range":[{"introduced":"2.3-milestone-1"},{"fixed":"13.10.11"}]},{"range":[{"introduced":"14.0-rc-1"},{"fixed":"14.4.7"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"introduced":"14.5"},{"fixed":"14.10"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d87d7bfd8db18c20d3264f98c6deefeae93b99f7"}]}]}}],"versions":["2.3-milestone1","xwiki-commons-13.10.10","xwiki-commons-14.4.6","xwiki-commons-14.4.5","xwiki-commons-14.4.4","xwiki-commons-13.10.9","xwiki-commons-14.4.3","xwiki-commons-13.10.8","xwiki-commons-14.4.2","xwiki-commons-13.10.7","xwiki-commons-14.4.1","xwiki-commons-13.10.6","xwiki-commons-14.4","xwiki-commons-14.4-rc-1","xwiki-commons-13.10.5","xwiki-commons-13.10.4","xwiki-commons-13.10.3","xwiki-commons-13.10.2","xwiki-commons-13.10.1","xwiki-commons-13.10","xwiki-commons-13.10-rc-1","xwiki-commons-8.3-milestone-2","xwiki-commons-8.3-milestone-1","xwiki-commons-8.2-milestone-2","xwiki-commons-8.2-milestone-1","xwiki-commons-8.1-milestone-2","xwiki-commons-8.1-milestone-1","xwiki-commons-8.0-milestone-2","xwiki-commons-8.0-milestone-1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-26475.json","vanir_signatures":[{"deprecated":false,"digest":{"line_hashes":["285296424547583777226917884155526099993","312545047070604324818801527925236788835","172224469010375989546485546614920626137","2763878448666103614938382864509993657"],"threshold":0.9},"id":"CVE-2023-26475-19c6adb3","signature_type":"Line","signature_version":"v1","source":"https://github.com/xwiki/xwiki-platform/commit/d87d7bfd8db18c20d3264f98c6deefeae93b99f7","target":{"file":"xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/mandatory/XWikiCommentsDocumentInitializer.java"}},{"digest":{"function_hash":"111025794934607162321120671317497078571","length":347},"id":"CVE-2023-26475-d970a8cb","signature_type":"Function","signature_version":"v1","source":"https://github.com/xwiki/xwiki-platform/commit/d87d7bfd8db18c20d3264f98c6deefeae93b99f7","target":{"file":"xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/internal/mandatory/XWikiCommentsDocumentInitializer.java","function":"createClass"},"deprecated":false}],"vanir_signatures_modified":"2026-10-28T10:38:35Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H"}]}