CVE-2023-26478
JSON

6.6medium

org.xwiki.platform:xwiki-platform-store-filesystem-oldcore has Exposed Dangerous Method or Function

Severity
6.6medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.67% (higher than 53% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-8692-g6g9-gm5p

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

Product or packageVersionsReported by
xwiki xwiki-platform>= 14.3-rc-1, < 14.4.6, >= 14.5, < 14.9-rc-1CVE List
org.xwiki.platform:xwiki-platform-store-filesystem-oldcore (Maven)from 14.3-rc-1 before 14.4.6, from 14.5 before 14.9-rc-1GitHub Advisory Database
xwiki xwikifrom 14.3 before 14.4.6, from 14.5 before 14.9NVD

All scores

GitHub_M6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
GitHub6.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:L
NVD8.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N

Classification

CWE-749

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

GitHub Advisory Database
Impact

org.xwiki.store.script.TemporaryAttachmentsScriptService#uploadTemporaryAttachment is returning 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.

Patches

This has been patched in the version 14.9-rc-1 and 14.4.6.

Workarounds

There's no workaround for this issue.

References

https://jira.xwiki.org/browse/XWIKI-20180

For more information

If you have any questions or comments about this advisory:

References

Sources

SourceRecordLicence
CVE ListCVE-2023-26478 changed 2025-03-05CVE Terms of Use
GitHub Advisory DatabaseGHSA-8692-g6g9-gm5p changed 2023-11-08CC-BY-4.0
NVDCVE-2023-26478 changed 2026-06-17Public domain