CVE-2025-58049
JSON

5.8medium

XWiki PDF export jobs store sensitive cookies unencrypted in job statuses

Severity
5.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.44% (higher than 39% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-9m7c-m33f-3429

Description

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions from 14.4.2 to before 16.4.8, 16.5.0-rc-1 to before 16.10.7, and 17.0.0-rc-1 to before 17.4.0-rc-1, the PDF export jobs store sensitive cookies unencrypted in job statuses. XWiki shouldn't store passwords in plain text, and it shouldn't be possible to gain access to plain text passwords by gaining access to, e.g., a backup of the data directory. This vulnerability has been patched in XWiki 16.4.8, 16.10.7, and 17.4.0-rc-1.

Affected

Product or packageVersionsReported by
xwiki xwiki-platform>= 14.4.2, < 16.4.8, >= 16.5.0-rc-1, < 16.10.7, >= 17.0.0-rc-1, < 17.4.0-rc-1CVE List
org.xwiki.platform:xwiki-platform-export-pdf-api (Maven)from 14.4.2 before 16.4.8, from 16.5.0-rc-1 before 16.10.7, from 17.0.0-rc-1 before 17.4.0-rc-1GitHub Advisory Database
xwiki xwikifrom 14.4.2 before 16.4.8, from 16.5.0 before 16.10.7, from 17.0.0 up to 17.3.0NVD

All scores

GitHub_M5.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
GitHub5.8medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:N/A:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-212CWE-257

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

What each source says

CVE List

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. In versions from 14.4.2 to before 16.4.8, 16.5.0-rc-1 to before 16.10.7, and 17.0.0-rc-1 to before 17.4.0-rc-1, the PDF export jobs store sensitive cookies unencrypted in job statuses. XWiki shouldn't store passwords in plain text, and it shouldn't be possible to gain access to plain text passwords by gaining access to, e.g., a backup of the data directory. This vulnerability has been patched in XWiki 16.4.8, 16.10.7, and 17.4.0-rc-1.

GitHub Advisory Database
Impact

The PDF export uses a background job that runs on the server-side. Jobs like this have a status that is serialized in the permanent directory when the job is finished. The job status includes the job request. The PDF export job request is initialized, before the job starts, with some context information that is needed to replicate the HTTP request (used to trigger the export) in the background thread used to run the export job. This context information includes the cookies from the HTTP request that triggered the export. As a result, the user cookies (including the encrypted username and password) are stored in the permanent directory after the PDF export is finished. As the encryption key is stored in the same data directory (by default it is generated in data/configuration.properties), this means that this job status contains the equivalent of the plain text password of the user who requested the PDF export.

XWiki shouldn't store passwords in plain text, and it shouldn't be possible to gain access to plain text passwords by gaining access to, e.g., a backup of the data directory.

Patches

This vulnerability has been patched in XWiki 16.4.8, 16.10.7 and 17.4.0RC1.

Workarounds

We're not aware of any workarounds except for upgrading.

NVD (es)

XWiki Platform es una plataforma wiki genérica que ofrece servicios en tiempo de ejecución para aplicaciones construidas sobre ella. En versiones desde la 14.4.2 hasta la 16.4.8, desde la 16.5.0-rc-1 hasta la 16.10.7, y desde la 17.0.0-rc-1 hasta la 17.4.0-rc-1, los trabajos de exportación de PDF almacenan cookies sensibles sin cifrar en los estados de los trabajos. XWiki no debería almacenar contraseñas en texto plano, y no debería ser posible obtener acceso a contraseñas en texto plano al obtener acceso a, por ejemplo, una copia de seguridad del directorio de datos. Esta vulnerabilidad ha sido parcheada en XWiki 16.4.8, 16.10.7 y 17.4.0-rc-1.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-58049 changed 2025-08-28CVE Terms of Use
GitHub Advisory DatabaseGHSA-9m7c-m33f-3429 changed 2025-08-28CC-BY-4.0
NVDCVE-2025-58049 changed 2026-09-26Public domain