CVE-2022-31167
JSON

7.1high

XWiki Platform Security Parent POM vulnerable to overwriting of security rules of a page with a final page having the same reference

Severity
7.1high CVSS:3.1 by GitHub_M
Exploit likelihood
0.86% (higher than 59% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-gg53-wf5x-r3r6

Description

XWiki Platform Security Parent POM contains the security APIs for XWiki Platform, a generic wiki platform. Starting with version 5.0 and prior to 12.10.11, 13.10.1, and 13.4.6, a bug in the security cache stores rules associated to document Page1.Page2 and space Page1.Page2 in the same cache entry. That means that it's possible to overwrite the rights of a space or a document by creating the page of the space with the same name and checking the right of the new one first so that they end up in the security cache and are used for the other too. The problem has been patched in XWiki 12.10.11, 13.10.1, and 13.4.6. There are no known workarounds.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 5.0, < 12.10.11, >= 13.0, < 13.4.6, >= 13.10, < 13.10.1CVE List
org.xwiki.platform:xwiki-platform-security (Maven)from 5.0 before 12.10.11, from 13.0 before 13.4.6, from 13.10 before 13.10.1GitHub Advisory Database
xwiki xwikifrom 5.0 before 12.10.11, from 13.0 before 13.4.6, from 13.5 before 13.10.1NVD

All scores

GitHub_M7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
GitHub7.1high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N
NVD6.5medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Classification

CWE-285CWE-862

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

What each source says

CVE List

XWiki Platform Security Parent POM contains the security APIs for XWiki Platform, a generic wiki platform. Starting with version 5.0 and prior to 12.10.11, 13.10.1, and 13.4.6, a bug in the security cache stores rules associated to document Page1.Page2 and space Page1.Page2 in the same cache entry. That means that it's possible to overwrite the rights of a space or a document by creating the page of the space with the same name and checking the right of the new one first so that they end up in the security cache and are used for the other too. The problem has been patched in XWiki 12.10.11, 13.10.1, and 13.4.6. There are no known workarounds.

GitHub Advisory Database
Impact

A bug in the security cache is storing rules associated to document Page1.Page2 and space Page1.Page2 in the same cache entry.

That means that it's possible to overwrite the rights of a space or a document by creating the page of the space with the same name and checking the right of the new one first so that they end up in the security cache and are used for the other too.

Patches

The problem has been patched in XWiki 12.10.11, 13.10.1, 13.4.6.

Workarounds

No workaround other than patching.

References

https://jira.xwiki.org/browse/XWIKI-14075 https://jira.xwiki.org/browse/XWIKI-18983

For more information

If you have any questions or comments about this advisory:

NVD (es)

XWiki Platform Security Parent POM contiene las APIs de seguridad para la plataforma XWiki, una plataforma wiki genérica. A partir de la versión 5.0 y anteriores a 12.10.11, 13.10.1 y 13.4.6, un error en la caché de seguridad almacena las reglas asociadas al documento Página1.Página2 y al espacio Página1.Página2 en la misma entrada de la caché. Eso significa que es posible sobrescribir los derechos de un espacio o un documento creando la página del espacio con el mismo nombre y comprobando primero el derecho del nuevo para que acaben en la caché de seguridad y sean usados también para el otro. El problema ha sido parcheado en XWiki versiones 12.10.11, 13.10.1 y 13.4.6. No se presentan mitigaciones conocidas

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31167 changed 2025-04-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-gg53-wf5x-r3r6 changed 2023-11-08CC-BY-4.0
NVDCVE-2022-31167 changed 2026-06-17Public domain