CVE-2023-29507
JSON

9.1critical

org.xwiki.platform:xwiki-platform-oldcore makes Incorrect Use of Privileged APIs with DocumentAuthors

Severity
9.1critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.90% (higher than 60% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-pwfv-3cvg-9m4c

Description

XWiki Commons are technical libraries common to several other top level XWiki projects. The Document script API returns directly a DocumentAuthors allowing to set any authors to the document, which in consequence can allow subsequent executions of scripts since this author is used for checking rights. The problem has been patched in XWiki 14.10 and 14.4.7 by returning a safe script API.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 14.5, < 14.10, >= 14.4.1, < 14.4.7CVE List
org.xwiki.platform:xwiki-platform-oldcore (Maven)from 14.5 before 14.10, from 14.4.1 before 14.4.7GitHub Advisory Database
xwiki xwikifrom 14.4.1 before 14.4.7, 14.10NVD

All scores

GitHub_M9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-648

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

XWiki Commons are technical libraries common to several other top level XWiki projects. The Document script API returns directly a DocumentAuthors allowing to set any authors to the document, which in consequence can allow subsequent executions of scripts since this author is used for checking rights. The problem has been patched in XWiki 14.10 and 14.4.7 by returning a safe script API.

GitHub Advisory Database
Impact

The Document script API returns directly a DocumentAuthors allowing to set any authors to the document, which in consequence can allow subsequent executions of scripts since this author is used for checking rights. Example of such attack:

{{velocity}}
$doc.setContent('{{velocity}}$xcontext.context.authorReference{{/velocity}}')
$doc.authors.setContentAuthor('xwiki:XWiki.superadmin')
$doc.getRenderedContent()
{{/velocity}}
Patches

The problem has been patched in XWiki 14.10 and 14.4.7 by returning a safe script API.

Workarounds

There no easy workaround apart of upgrading.

References
For more information

If you have any questions or comments about this advisory:

References

Sources

SourceRecordLicence
CVE ListCVE-2023-29507 changed 2025-02-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-pwfv-3cvg-9m4c changed 2026-09-10CC-BY-4.0
NVDCVE-2023-29507 changed 2026-06-17Public domain