{"id":"GHSA-r5cr-xm48-97xp","summary":"XWiki missing authorization when accessing the wiki level attachments list and metadata via REST API","details":"### Impact\n\nAnyone can access the metadata of any attachment in the wiki using the wiki attachment REST endpoint. It's not filtering the result depending on current user rights, a not authenticated user could exploit this even in a totally private wiki.\n\nTo reproduce:\n\n* remove view from guest on the whole wiki\n* logout\n* access http://127.0.0.1:8080/xwiki/rest/wikis/xwiki/spaces/Sandbox/pages/WebHome/attachments\n\nYou get a list of attachments, while the expected result should be an empty list.\n\n### Patches\n\nThis vulnerability has been fixed in XWiki 14.10.22, 15.10.12, 16.7.0-rc-1 and 16.4.3.\n\n### Workarounds\n\nWe're not aware of any workaround except upgrading.\n\n### References\n* https://jira.xwiki.org/browse/XWIKI-22424\n* https://jira.xwiki.org/browse/XWIKI-22427\n* https://github.com/xwiki/xwiki-platform/commit/a43e933ddeda17dad1772396e1757998260e9342#diff-0\n\n### For more information\n\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\nIssue reported by [Lukas Monert](https://github.com/LMonert).","aliases":["CVE-2025-46554"],"modified":"2025-05-05T17:50:17Z","published":"2025-04-30T16:49:47Z","database_specific":{"github_reviewed_at":"2025-04-30T16:49:47Z","nvd_published_at":"2025-04-30T19:15:55Z","cwe_ids":["CWE-862"],"severity":"MODERATE","github_reviewed":true},"references":[{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-r5cr-xm48-97xp"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-46554"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/37ecea84fdd053c33733c2ae9a0778bf98eae608"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/a43e933ddeda17dad1772396e1757998260e9342"},{"type":"WEB","url":"https://github.com/xwiki/xwiki-platform/commit/c02ce7843a39851865b9d7b6132e32fdd21e3856"},{"type":"PACKAGE","url":"https://github.com/xwiki/xwiki-platform"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-22424"},{"type":"WEB","url":"https://jira.xwiki.org/browse/XWIKI-22427"}],"affected":[{"package":{"name":"org.xwiki.platform:xwiki-platform-rest-server","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.8.1"},{"fixed":"14.10.22"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-r5cr-xm48-97xp/GHSA-r5cr-xm48-97xp.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-rest-server","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"15.0-rc-1"},{"fixed":"15.10.12"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-r5cr-xm48-97xp/GHSA-r5cr-xm48-97xp.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-rest-server","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.0.0-rc-1"},{"fixed":"16.4.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-r5cr-xm48-97xp/GHSA-r5cr-xm48-97xp.json"}},{"package":{"name":"org.xwiki.platform:xwiki-platform-rest-server","ecosystem":"Maven","purl":"pkg:maven/org.xwiki.platform/xwiki-platform-rest-server"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"16.5.0-rc-1"},{"fixed":"16.7.0"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-r5cr-xm48-97xp/GHSA-r5cr-xm48-97xp.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"}]}