CVE-2023-36471
Description
Xwiki commons is the common modules used by other XWiki top level projects. The HTML sanitizer that is included in XWiki since version 14.6RC1 allowed form and input HTML tags. In the context of XWiki, this allows an attacker without script right to either create forms that can be used for phishing attacks or also in the context of a sheet, the attacker could add an input like `{{html}}<input type="hidden" name="content" value="{{groovy}}println("Hello from Groovy!")" />{{/html}}` that would allow remote code execution when it is submitted by an admin (the sheet is rendered as part of the edit form). The attacker would need to ensure that the edit form looks plausible, though, which can be non-trivial as without script right the attacker cannot display the regular content of the document. This has been patched in XWiki 14.10.6 and 15.2RC1 by removing the central form-related tags from the list of allowed tags. Users are advised to upgrade. As a workaround an admin can manually disallow the tags by adding `form, input, select, textarea, button` to the configuration option `xml.htmlElementSanitizer.forbidTags` in the `xwiki.properties` configuration file.
Weakness
- CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component
CISA SSVC decision points
| Exploitation | poc |
|---|---|
| Automatable | no |
| Technical impact | total |
| Scored | 2024-11-26 |
Timeline
- 2023-06-29Published by the CNA19:44 UTC
- 2023-06-30GitHub advisory published (GHSA-6pqf-c99p-758v)1 day after publication
- 2024-11-26CISA SSVC decision recorded516 days after publication
Exploit and advisory records
GitHub advisory GHSA-6pqf-c99p-758v, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.xwiki.commons:xwiki-commons-xml | from 14.6-rc-1 before 14.10.6 | 14.10.6 |
| Maven org.xwiki.commons:xwiki-commons-xml | from 15.0-rc-1 before 15.2-rc-1 | 15.2-rc-1 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| xwiki commons | from 14.6 before 14.10.6fixed in 14.10.615.0no fix listed15.1no fix listed | 14.10.6not listednot listed |
References
- https://github.com/xwiki/xwiki-commons/commit/99484d48e899a68a1b6e33d457825b776c6fe8c3
- https://jira.xwiki.org/browse/XCOMMONS-2634
- https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-6pqf-c99p-758v
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2023-36471'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2023-36471'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2023-36471'curl 'https://api.contrastcyber.com/cve_products/CVE-2023-36471'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).