CVE-2024-31996

Vulnérabilité critique dans xwiki-commons (xwiki)

CVSS 10.0 · Critique
EPSS 2.1%
xwiki•xwiki-commons•Versions : >= 3.0.1, < 14.10.19, >= 15.6-rc-1, < 15.9-rc-1, >= 15.0-rc-1, < 15.5.4

Description

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.

Gravité et risque d'exploitation

CVE-2024-31996 obtient un score CVSS de 10.0/10, soit une gravité critique. Selon le modèle EPSS, la probabilité qu'elle soit exploitée dans les 30 prochains jours est de 2.10 %, ce qui la place devant 81.5 % des CVE référencées.

Que faire ?

  • Vérifiez si xwiki-commons (versions >= 3.0.1, < 14.10.19, >= 15.6-rc-1, < 15.9-rc-1, >= 15.0-rc-1, < 15.5.4) est présent sur votre parc.
  • Appliquez le correctif ou la version corrigée indiqués dans les références de l'éditeur.
  • À défaut de correctif, limitez l'exposition (filtrage réseau, désactivation du composant).
  • Automatisez la détection : les agents CVE Heimdall (gratuits, open source) corrèlent l'inventaire de vos serveurs avec la base CVE.

Références