Vulnerability · Published Mar 2, 2023 · Assigned by GitHub_M
CVE-2023-26478org.xwiki.platform:xwiki-platform-store-filesystem-oldcore has Exposed Dangerous Method or Function
Medium 6.6
In plain English
A medium-severity security flaw in xwiki-platform from xwiki. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.7% (higher than 52% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
XWiki Platform is a generic wiki platform. Starting in version 14.3-rc-1, `org.xwiki.store.script.TemporaryAttachmentsScriptService#uploadTemporaryAttachment` returns an instance of `com.xpn.xwiki.doc.XWikiAttachment`. This class is not supported to be exposed to users without the `programing` right. `com.xpn.xwiki.api.Attachment` should be used instead and takes case of checking the user's rights before performing dangerous operations. This has been patched in versions 14.9-rc-1 and 14.4.6. There are no known workarounds for this issue.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.xwiki.platform:xwiki-platform-store-filesystem-oldcore | 14.4.6 | GHSA-8692-g6g9-gm5p |
| Maven | org.xwiki.platform:xwiki-platform-store-filesystem-oldcore | 14.9-rc-1 | GHSA-8692-g6g9-gm5p |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| xwiki | xwiki-platform | >= 14.3-rc-1, < 14.4.6>= 14.5, < 14.9-rc-1 |
Weakness: CWE-749 · Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
References
- https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-8692-g6g9-gm5p x_refsource_CONFIRM
- https://github.com/xwiki/xwiki-platform/commit/3c73c59e39b6436b1074d8834cf276916010014d x_refsource_MISC
- https://jira.xwiki.org/browse/XWIKI-20180 x_refsource_MISC