CVE-2024-31996
XWiki Commons missing escaping of `{` in Velocity escapetool allows remote code execution
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
0Exploited in Wild
-Decision
Descriptions
XWiki Platform is a generic wiki platform. Starting in version 3.0.1 and prior to versions 4.10.19, 15.5.4, and 15.10-rc-1, the HTML escaping of escaping tool that is used in XWiki doesn't escape `{`, which, when used in certain places, allows XWiki syntax injection and thereby remote code execution. The vulnerability has been fixed in XWiki 14.10.19, 15.5.5, and 15.9 RC1. Apart from upgrading, there is no generic workaround. However, replacing `$escapetool.html` by `$escapetool.xml` in XWiki documents fixes the vulnerability. In a standard XWiki installation, the maintainers are only aware of the document `Panels.PanelLayoutUpdate` that exposes this vulnerability, patching this document is thus a workaround. Any extension could expose this vulnerability and might thus require patching, too.
XWiki Platform es una plataforma wiki genérica. A partir de la versión 3.0.1 y anteriores a las versiones 4.10.19, 15.5.4 y 15.10-rc-1, la herramienta de escape HTML que se usa en XWiki no escapa a `{`, que, cuando se usa en ciertos lugares, permite la inyección de sintaxis XWiki y, por lo tanto, la ejecución remota de código. La vulnerabilidad se solucionó en XWiki 14.10.19, 15.5.5 y 15.9 RC1. Aparte de la actualización, no existe una workaround genérica. Sin embargo, reemplazar `$escapetool.html` por `$escapetool.xml` en los documentos XWiki soluciona la vulnerabilidad. En una instalación estándar de XWiki, los mantenedores sólo conocen el documento `Panels.PanelLayoutUpdate` que expone esta vulnerabilidad, por lo que parchear este documento es una workaround. Cualquier extensión podría exponer esta vulnerabilidad y, por lo tanto, también podría requerir parches.
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2024-04-08 CVE Reserved
- 2024-04-10 CVE Published
- 2024-04-11 EPSS Updated
- 2024-08-02 CVE Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
- ---------- First Exploit
CWE
- CWE-95: Improper Neutralization of Directives in Dynamically Evaluated Code ('Eval Injection')
CAPEC
References (6)
URL | Tag | Source |
---|---|---|
https://github.com/xwiki/xwiki-commons/commit/b0805160ec7b01ee12417e79cb384e60ae4817aa | X_refsource_misc | |
https://github.com/xwiki/xwiki-commons/commit/b94142e2a66ec32e89eacab67c3da8d91f5ef93a | X_refsource_misc | |
https://github.com/xwiki/xwiki-commons/commit/ed7ff515a2436a1c6dcbd0c6ca0c41e434d58915 | X_refsource_misc | |
https://github.com/xwiki/xwiki-commons/security/advisories/GHSA-hf43-47q4-fhq5 | X_refsource_confirm | |
https://jira.xwiki.org/browse/XCOMMONS-2828 | X_refsource_misc | |
https://jira.xwiki.org/browse/XWIKI-21438 | X_refsource_misc |
URL | Date | SRC |
---|
URL | Date | SRC |
---|
URL | Date | SRC |
---|
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Xwiki Search vendor "Xwiki" | Xwiki-commons Search vendor "Xwiki" for product "Xwiki-commons" | >= 3.0.1 < 14.10.19 Search vendor "Xwiki" for product "Xwiki-commons" and version " >= 3.0.1 < 14.10.19" | en |
Affected
| ||||||
Xwiki Search vendor "Xwiki" | Xwiki-commons Search vendor "Xwiki" for product "Xwiki-commons" | >= 15.0.0 < 15.5.4 Search vendor "Xwiki" for product "Xwiki-commons" and version " >= 15.0.0 < 15.5.4" | en |
Affected
| ||||||
Xwiki Search vendor "Xwiki" | Xwiki-commons Search vendor "Xwiki" for product "Xwiki-commons" | >= 15.6 < 15.9 Search vendor "Xwiki" for product "Xwiki-commons" and version " >= 15.6 < 15.9" | en |
Affected
|