GHSA-pwfv-3cvg-9m4c

    Dashboard / Vulnerabilities / GHSA-pwfv-3cvg-9m4c

    GHSA-pwfv-3cvg-9m4c

    Published: 12 Apr 2023Last Modified: 10 Sept 2026

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

    Details: ### 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](https://jira.xwiki.org) * Email us at [security ML](mailto:[email protected])

    Affected packages

    Package

    Name: org.xwiki.platform:xwiki-platform-oldcore

    Purl: pkg:maven/org.xwiki.platform/xwiki-platform-oldcore

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 14.5
    Fixed -14.10

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-pwfv-3cvg-9m4c | CVE-DB