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

Published Apr 12, 2023
·
Updated

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

https://jira.xwiki.org/browse/XWIKI-20380 https://github.com/xwiki/xwiki-platform/commit/905cdd7c421dbf8c565557cdc773ab1aa9028f83

For more information If you have any questions or comments about this advisory: Open an issue in Jira Email us at security ML

Other sources

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 Software

4 affected componentsFixes available
maven/org.xwiki.platform:xwiki-platform-oldcore>=14.4.1<14.4.7
14.4.7
maven/org.xwiki.platform:xwiki-platform-oldcore>=14.5<14.10
14.10
XWiki xwiki>=14.4.1<14.4.7
XWiki xwiki=14.10-rc1

Event History

Apr 12, 2023
Advisory Published
via GitHub·08:36 PM
Data Sourced
via GitHub·08:36 PM
DescriptionSeverityWeaknessAffected Software
Apr 16, 2023
CVE Published
via MITRE·06:52 AM
Data Sourced
via MITRE·06:52 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2023-29507?

CVE-2023-29507 has been classified as a moderate severity vulnerability due to its potential impact on document author integrity.

2

How do I fix CVE-2023-29507?

To fix CVE-2023-29507, upgrade to the latest version of the 'org.xwiki.platform:xwiki-platform-oldcore' package, specifically to version 14.4.7 or 14.10.

3

What does CVE-2023-29507 exploit?

CVE-2023-29507 exploits the Document script API's ability to alter document authors, which can result in unauthorized script execution.

4

Which versions are affected by CVE-2023-29507?

CVE-2023-29507 affects versions of the 'org.xwiki.platform:xwiki-platform-oldcore' package between 14.4.1 and 14.4.7, as well as versions from 14.5 to 14.10-rc1.

5

What are the consequences of not addressing CVE-2023-29507?

Failing to address CVE-2023-29507 can lead to unauthorized script executions which may compromise the security of document handling in XWiki.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203