CVE-2024-55662
JSON

10.0critical

XWiki allows remote code execution through the extension sheet

Severity
10.0critical CVSS:3.1 by GitHub_M
Exploit likelihood
0.79% (higher than 57% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-j2pq-22jj-4pm5

Description

XWiki Platform is a generic wiki platform. Starting in version 3.3-milestone-1 and prior to versions 15.10.9 and 16.3.0, on instances where `Extension Repository Application` is installed, any user can execute any code requiring `programming` rights on the server. This vulnerability has been fixed in XWiki 15.10.9 and 16.3.0. Since `Extension Repository Application` is not mandatory, it can be safely disabled on instances that do not use it as a workaround. It is also possible to manually apply the patches from commit 8659f17d500522bf33595e402391592a35a162e8 to the page `ExtensionCode.ExtensionSheet` and to the page `ExtensionCode.ExtensionAuthorsDisplayer`.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 3.3-milestone-1, < 15.10.9, >= 16.0.0-rc-1, < 16.3.0CVE List
org.xwiki.platform:xwiki-platform-repository-server-ui (Maven)from 3.3-milestone-1 before 15.10.9, from 16.0.0-rc-1 before 16.3.0GitHub Advisory Database
xwiki xwikifrom 3.3 before 15.10.9, from 16.0.0 before 16.3.0NVD

All scores

GitHub_M10.0critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
GitHub9.9critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
NVD8.8high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-94CWE-96CWE-863

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

XWiki Platform is a generic wiki platform. Starting in version 3.3-milestone-1 and prior to versions 15.10.9 and 16.3.0, on instances where `Extension Repository Application` is installed, any user can execute any code requiring `programming` rights on the server. This vulnerability has been fixed in XWiki 15.10.9 and 16.3.0. Since `Extension Repository Application` is not mandatory, it can be safely disabled on instances that do not use it as a workaround. It is also possible to manually apply the patches from commit 8659f17d500522bf33595e402391592a35a162e8 to the page `ExtensionCode.ExtensionSheet` and to the page `ExtensionCode.ExtensionAuthorsDisplayer`.

GitHub Advisory Database
Impact

On instances where Extension Repository Application is installed, any user can execute any code requiring programming rights on the server. In order to reproduce on an instance, as a normal user without script nor programming rights, go to your profile and add an object of type ExtensionCode.ExtensionClass. Set the description to {{async}}{{groovy}}println("Hello from Description"){{/groovy}}{{/async}} and press Save and View. If the description displays as Hello from Description without any error, then the instance is vulnerable.

Patches

This vulnerability has been fixed in XWiki 15.10.9 and 16.3.0.

Workarounds

Since Extension Repository Application is not mandatory, it can be safely disabled on instances that do not use it. It is also possible to manually apply this patch to the page ExtensionCode.ExtensionSheet, as well as this patch to the page ExtensionCode.ExtensionAuthorsDisplayer.

References
For more information

If you have any questions or comments about this advisory:

NVD (es)

XWiki Platform es una plataforma wiki genérica. A partir de la versión 3.3-milestone-1 y antes de las versiones 15.10.9 y 16.3.0, en las instancias donde está instalada `Extension Repository Application`, cualquier usuario puede ejecutar cualquier código que requiera derechos de `programación` en el servidor. Esta vulnerabilidad ha sido corregida en XWiki 15.10.9 y 16.3.0. Dado que `Extension Repository Application` no es obligatoria, se puede deshabilitar de forma segura en las instancias que no la utilicen como workaround. También es posible aplicar manualmente los parches del commit 8659f17d500522bf33595e402391592a35a162e8 a la página `ExtensionCode.ExtensionSheet` y a la página `ExtensionCode.ExtensionAuthorsDisplayer`.

References

Sources

SourceRecordLicence
CVE ListCVE-2024-55662 changed 2024-12-13CVE Terms of Use
GitHub Advisory DatabaseGHSA-j2pq-22jj-4pm5 changed 2024-12-12CC-BY-4.0
NVDCVE-2024-55662 changed 2026-06-17Public domain