{"id":"CVE-2023-27480","aliases":["CVE-2023-27480","GHSA-gx4f-976g-7g6v"],"related":[],"kind":"vulnerability","state":"published","title":"Data leak through a XAR import XXE attack in xwiki-platform-xar-model","summary":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions any user with edit rights on a document can trigger an XAR import on a forged XAR file, leading to the ability to display the content of any file on the XWiki server host. This vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10-rc-1. Users are advised to upgrade. Users unable to upgrade may apply the patch `e3527b98fd` manually.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In affected versions any user with edit rights on a document can trigger an XAR import on a forged XAR file, leading to the ability to display the content of any file on the XWiki server host. This vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10-rc-1. Users are advised to upgrade. Users unable to upgrade may apply the patch `e3527b98fd` manually.","source":"cvelist"},{"lang":"en","text":"### Impact\nAny user with edit rights on a document can trigger a XAR import on a forged XAR file, leading to the ability to display the content of any file on the XWiki server host.\n\nExample to reproduce:\n* Create a forget XAR file and inside it, have the following `package.xml` content:\n  ```xml\n  <?xml version=\"1.0\" encoding=\"UTF-8\"?>\n  <!DOCTYPE foo [ <!ENTITY xxe SYSTEM \"file:///etc/passwd\"> ]>\n\n  <package>\n  <infos>\n  <name>&xxe;</name>\n  <description> &xxe; Helper pages for creating and listing Class/Template/Sheets</description>\n  <licence></licence>\n  <author>XWiki.Admin</author>\n  ...\n  ```\n* Upload it onto a wiki page (e.g. `XXE`) as an attachment (e.g. `test.xar`).\n* Call the page using `http://localhost:8080/xwiki/bin/view/Main/XXE?sheet=XWiki.AdminImportSheet&file=test.xar`\n\nYou'll then notice that the displayed UI contains the content of the `/etc/passwd` file.\n\n### Patches\nThe vulnerability has been patched in XWiki 13.10.11, 14.4.7 and 14.10-rc-1.\n\n### Workarounds\nYou'd need to get XWiki Platform sources and apply the changes from https://github.com/xwiki/xwiki-platform/commit/e3527b98fdd8dc8179c24dc55e662b2c55199434 to the `XarPackage` java class and then copy the modified version to your `WEB-INF/classes` directory (or rebuild the `xwiki-platform-xar-model` maven module and replace the one found in `WEB-INF/lib/`).\n\n### References\n* https://github.com/xwiki/xwiki-platform/commit/e3527b98fdd8dc8179c24dc55e662b2c55199434\n* https://jira.xwiki.org/browse/XWIKI-20320\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)","format":"markdown","source":"ghsa"}],"published":"2023-03-07T18:13:39.799Z","modified":"2026-06-17T05:45:17.893Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N","score":7.7,"rating":"HIGH"}],"cwes":["CWE-611"],"affected":[{"ranges":[{"version":">= 1.1-milestone-3, < 13.10.11","status":"affected"},{"version":">= 14.0.0, < 14.4.7","status":"affected"},{"version":">= 14.5.0, < 14.10.0-rc-1","status":"affected"}],"vendor":"xwiki","product":"xwiki-platform","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"1.1-milestone-3","status":"affected","fixed":"13.10.11"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-xar-model","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-xar-model","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.0","status":"affected","fixed":"14.4.7"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-xar-model","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-xar-model","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"14.5","status":"affected","fixed":"14.10-rc-1"}],"ecosystem":"Maven","package":"org.xwiki.platform:xwiki-platform-xar-model","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-xar-model","source":"ghsa"},{"ranges":[{"status":"affected","introduced":">1.1","fixed":"13.10.11"},{"status":"affected","introduced":"14.0","fixed":"14.4.7"},{"status":"affected","introduced":"14.5","fixed":"14.10"},{"status":"affected","version":"1.1"},{"status":"affected","version":"1.1"}],"vendor":"xwiki","product":"xwiki","cpe":"cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-gx4f-976g-7g6v","tags":["exploit","patch","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/xwiki/xwiki-platform/commit/e3527b98fdd8dc8179c24dc55e662b2c55199434","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://jira.xwiki.org/browse/XWIKI-20320","tags":["exploit","issue-tracking","patch","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27480","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/xwiki/xwiki-platform","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-02-25T14:30:13.422Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-27480","url":"https://www.cve.org/CVERecord?id=CVE-2023-27480","licence":"CVE Terms of Use","modified":"2025-02-25T15:00:30.911Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-gx4f-976g-7g6v","url":"https://github.com/advisories/GHSA-gx4f-976g-7g6v","licence":"CC-BY-4.0","modified":"2023-11-08T04:12:04.667Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-27480","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-27480","licence":"Public domain","modified":"2026-06-17T05:45:17.893Z"}],"updatedAt":"2026-11-25T22:58:22.307Z","epss":{"score":0.00746,"percentile":0.56023,"date":"2026-12-01T12:00:22.000Z"}}