Cross-user script execution via misordered context setup
Published Mar 2, 2023 · Updated Mar 5, 2025
Affected XWiki Platform versions allow remote authenticated users to execute scripts with another user’s rights through the context macro. ContextMacro selects the transformation XDOM before pushDocumentInContext switches the document security context, causing macro content to inherit the referenced author’s script right. The attacker must be able to save macro content and reference an author with script right but without programming right, enabling unauthorized reads or changes within that author’s access.
Summary
What happened
Affected XWiki Platform versions allow remote authenticated users to execute scripts with another user’s rights through the context macro. ContextMacro selects the transformation XDOM before pushDocumentInContext switches the document security context, causing macro content to inherit the referenced author’s script right. The attacker must be able to save macro content and reference an author with script right but without programming right, enabling unauthorized reads or changes within that author’s access.
The record
- CVE
- CVE-2023-26056
- Published
- Mar 2, 2023
- Updated
- Mar 5, 2025
- Vendor
- CryptPad
- Product
- XWiki Platform
- Classifications
- CWE-863, T1059
- Attack vector
- network
- Privileges
- authenticated
Timeline
How it unfolded
- Mar 2, 2023CVE publishedPublication date reported by the CVE source.
- Mar 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=>= 14.0-rc-1, < 14.4.5
- Affected versionversion=>= 14.5, < 14.8-rc-1
- Affected versionversion=>= 3.0-milestone-1, < 13.10.10
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
- Upstream context-macro proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo