CVE-2022-36099: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki xwiki-platform
XWiki Platform Wiki UI Main Wiki is software for managing subwikis on XWiki Platform, a generic wiki platform. Starting with version 5.3-milestone-2 and prior to versions 13.10.6 and 14.4, it's possible to inject arbitrary wiki syntax including Groovy, Python and Velocity script macros via the request (URL parameter) using the `XWikiServerClassSheet` if the user has view access to this sheet and another page that has been saved with programming rights, a standard condition on a public read-only XWiki installation or a private XWiki installation where the user has an account. This allows arbitrary Groovy/Python/Velocity code execution which allows bypassing all rights checks and thus both modification and disclosure of all content stored in the XWiki installation. Also, this could be used to impact the availability of the wiki. This has been patched in versions 13.10.6 and 14.4. As a workaround, edit the affected document `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` and manually perform the changes from the patch fixing the issue. On XWiki versions 12.0 and later, it is also possible to import the document `XWiki.XWikiServerClassSheet` from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application as there have been no other changes to this document since XWiki 12.0.
AI Analysis
Technical Summary
CVE-2022-36099 is a vulnerability in the XWiki Platform, specifically affecting the Wiki UI Main Wiki component. XWiki is a generic wiki platform widely used for collaborative content management and documentation. The vulnerability arises from improper neutralization of directives in dynamically evaluated code, classified under CWE-95 (Eval Injection) and CWE-94 (Code Injection). It affects versions starting from 5.3-milestone-2 up to but not including 13.10.6, and versions from 14.0 up to but not including 14.4. The core issue is that an attacker with view access to the `XWikiServerClassSheet` and another page saved with programming rights can inject arbitrary wiki syntax, including Groovy, Python, and Velocity script macros, via URL parameters. This injection enables arbitrary code execution within the wiki environment, effectively bypassing all rights checks. Consequently, an attacker can modify or disclose all content stored in the XWiki installation and potentially disrupt the availability of the wiki service. The vulnerability is particularly critical because it leverages legitimate features (programming rights and view access) to escalate privileges and execute code remotely without authentication barriers beyond the initial access. The issue has been patched in versions 13.10.6 and 14.4. Workarounds include manually editing the affected `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` documents to apply the patch changes or importing the fixed document from version 14.4 for installations running version 12.0 or later. No known exploits are currently reported in the wild, but the potential impact remains significant due to the nature of the vulnerability and the widespread use of XWiki in enterprise environments.
Potential Impact
For European organizations, this vulnerability poses a substantial risk to confidentiality, integrity, and availability of information managed within XWiki installations. Many enterprises, government agencies, and research institutions in Europe rely on XWiki for internal documentation, knowledge sharing, and collaboration. Exploitation could lead to unauthorized disclosure of sensitive or proprietary information, unauthorized modification of critical documentation, and disruption of business operations due to service unavailability. The ability to execute arbitrary code also opens the door to further lateral movement within the network, potentially compromising other systems. Public-facing or read-only XWiki installations are particularly vulnerable since attackers only need view access and a page with programming rights to exploit the flaw. Given the collaborative nature of XWiki, the risk of insider threats or compromised user accounts amplifies the threat. The absence of known exploits in the wild suggests organizations still have an opportunity to patch and mitigate before widespread attacks occur. However, the medium severity rating should not downplay the potential for significant operational and reputational damage if left unaddressed.
Mitigation Recommendations
1. Immediate upgrade of all affected XWiki Platform instances to version 13.10.6 or 14.4 or later to apply the official patch. 2. If upgrading is not immediately feasible, manually edit the `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` documents to incorporate the patch changes as recommended by the vendor. 3. For versions 12.0 and later, use the import feature in the administration application to import the fixed `XWiki.XWikiServerClassSheet` document from version 14.4. 4. Review and restrict programming rights assignments to the minimum necessary users and pages, limiting the attack surface. 5. Audit and monitor access logs for unusual URL parameter usage or access patterns that may indicate exploitation attempts. 6. Implement network segmentation and access controls to limit exposure of XWiki installations, especially those accessible publicly or to large user bases. 7. Educate users about the risks of granting programming rights and enforce strict change management policies for pages with elevated privileges. 8. Regularly back up XWiki content and configurations to enable rapid recovery in case of compromise or data tampering. 9. Employ runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block suspicious script injection attempts targeting the vulnerable parameters.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Belgium, Italy, Spain, Poland, Finland
CVE-2022-36099: CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection') in xwiki xwiki-platform
Description
XWiki Platform Wiki UI Main Wiki is software for managing subwikis on XWiki Platform, a generic wiki platform. Starting with version 5.3-milestone-2 and prior to versions 13.10.6 and 14.4, it's possible to inject arbitrary wiki syntax including Groovy, Python and Velocity script macros via the request (URL parameter) using the `XWikiServerClassSheet` if the user has view access to this sheet and another page that has been saved with programming rights, a standard condition on a public read-only XWiki installation or a private XWiki installation where the user has an account. This allows arbitrary Groovy/Python/Velocity code execution which allows bypassing all rights checks and thus both modification and disclosure of all content stored in the XWiki installation. Also, this could be used to impact the availability of the wiki. This has been patched in versions 13.10.6 and 14.4. As a workaround, edit the affected document `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` and manually perform the changes from the patch fixing the issue. On XWiki versions 12.0 and later, it is also possible to import the document `XWiki.XWikiServerClassSheet` from the xwiki-platform-wiki-ui-mainwiki package version 14.4 using the import feature of the administration application as there have been no other changes to this document since XWiki 12.0.
AI-Powered Analysis
Technical Analysis
CVE-2022-36099 is a vulnerability in the XWiki Platform, specifically affecting the Wiki UI Main Wiki component. XWiki is a generic wiki platform widely used for collaborative content management and documentation. The vulnerability arises from improper neutralization of directives in dynamically evaluated code, classified under CWE-95 (Eval Injection) and CWE-94 (Code Injection). It affects versions starting from 5.3-milestone-2 up to but not including 13.10.6, and versions from 14.0 up to but not including 14.4. The core issue is that an attacker with view access to the `XWikiServerClassSheet` and another page saved with programming rights can inject arbitrary wiki syntax, including Groovy, Python, and Velocity script macros, via URL parameters. This injection enables arbitrary code execution within the wiki environment, effectively bypassing all rights checks. Consequently, an attacker can modify or disclose all content stored in the XWiki installation and potentially disrupt the availability of the wiki service. The vulnerability is particularly critical because it leverages legitimate features (programming rights and view access) to escalate privileges and execute code remotely without authentication barriers beyond the initial access. The issue has been patched in versions 13.10.6 and 14.4. Workarounds include manually editing the affected `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` documents to apply the patch changes or importing the fixed document from version 14.4 for installations running version 12.0 or later. No known exploits are currently reported in the wild, but the potential impact remains significant due to the nature of the vulnerability and the widespread use of XWiki in enterprise environments.
Potential Impact
For European organizations, this vulnerability poses a substantial risk to confidentiality, integrity, and availability of information managed within XWiki installations. Many enterprises, government agencies, and research institutions in Europe rely on XWiki for internal documentation, knowledge sharing, and collaboration. Exploitation could lead to unauthorized disclosure of sensitive or proprietary information, unauthorized modification of critical documentation, and disruption of business operations due to service unavailability. The ability to execute arbitrary code also opens the door to further lateral movement within the network, potentially compromising other systems. Public-facing or read-only XWiki installations are particularly vulnerable since attackers only need view access and a page with programming rights to exploit the flaw. Given the collaborative nature of XWiki, the risk of insider threats or compromised user accounts amplifies the threat. The absence of known exploits in the wild suggests organizations still have an opportunity to patch and mitigate before widespread attacks occur. However, the medium severity rating should not downplay the potential for significant operational and reputational damage if left unaddressed.
Mitigation Recommendations
1. Immediate upgrade of all affected XWiki Platform instances to version 13.10.6 or 14.4 or later to apply the official patch. 2. If upgrading is not immediately feasible, manually edit the `XWiki.XWikiServerClassSheet` or `WikiManager.XWikiServerClassSheet` documents to incorporate the patch changes as recommended by the vendor. 3. For versions 12.0 and later, use the import feature in the administration application to import the fixed `XWiki.XWikiServerClassSheet` document from version 14.4. 4. Review and restrict programming rights assignments to the minimum necessary users and pages, limiting the attack surface. 5. Audit and monitor access logs for unusual URL parameter usage or access patterns that may indicate exploitation attempts. 6. Implement network segmentation and access controls to limit exposure of XWiki installations, especially those accessible publicly or to large user bases. 7. Educate users about the risks of granting programming rights and enforce strict change management policies for pages with elevated privileges. 8. Regularly back up XWiki content and configurations to enable rapid recovery in case of compromise or data tampering. 9. Employ runtime application self-protection (RASP) or web application firewalls (WAF) with custom rules to detect and block suspicious script injection attempts targeting the vulnerable parameters.
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.1
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2022-07-15T00:00:00.000Z
- Cisa Enriched
- true
Threat ID: 682d9849c4522896dcbf694b
Added to database: 5/21/2025, 9:09:29 AM
Last enriched: 6/21/2025, 11:35:45 PM
Last updated: 8/11/2025, 6:12:46 PM
Views: 15
Related Threats
CVE-2025-51452: n/a
UnknownCVE-2025-50611: n/a
UnknownCVE-2025-50635: n/a
MediumCVE-2025-50251: n/a
HighCVE-2025-54809: CWE-295 Improper Certificate Validation in F5 F5 Access
HighActions
Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.
External Links
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.