Skip to main content

XWiki Platform CVE-2025-58049

HIGH
Improper Removal of Sensitive Information Before Storage or Transfer (CWE-212)
2025-08-28 security-advisories@github.com
7.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain XWiki data-directory backup
  2. Delivery
    Locate serialized PDF export job status
  3. Exploit
    Extract stored user cookies
  4. Execution
    Decrypt using co-located key
  5. Impact
    Recover plaintext user credentials

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Data Protection Data removal before release
Exploitation Conditions

Requires the server-side PDF export feature to have been used (a PDF export job must have run and serialized its status to the permanent directory), AND the attacker must obtain read access to that permanent data directory or a backup of it - e.g. filesystem access on the XWiki host, an accessible/unencrypted backup, or post-compromise access. Because the encryption key (default data/configuration.properties) is stored alongside the cookie data, no separate key is needed. LIMITING FACTORS: this is not remotely exploitable over the network despite the NVD AV:N label - it depends on out-of-band access to server storage; impact is confined to disclosure of the credentials of users who triggered PDF exports; unaffected if instances are patched to 16.4.8/16.10.7/17.4.0-rc-1 or if data-directory backups are encrypted and access-controlled.

Impact

This is a credential-disclosure flaw (CWE-212, improper removal of sensitive information) where XWiki's server-side PDF export job persists the triggering user's cookies - including the encrypted username/password - unencrypted in the serialized job status inside the permanent data directory; because the encryption key lives in the same directory (data/configuration.properties), possession of the data directory (or a backup of it) yields the effective plaintext credentials. The published NVD vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N (7.5) is materially overstated relative to the actual attack: exploitation does NOT occur over the network by an unauthenticated remote attacker - it requires access to the server's filesystem/permanent directory or a data-directory backup, which is a local or post-compromise/insider condition, so a more honest vector is AV:L with elevated privileges. EPSS is very low (0.05%, 17th percentile) and there is no CISA KEV listing, consistent with a low-velocity, non-wormable secondary-impact bug. Input marks POC as publicly available, but the cited 'exploit' reference is the vendor Jira ticket XWIKI-23151 rather than turnkey weaponized exploit code, so treat exploitability as demonstrated-in-concept, not mass-exploitable. Net: a real and worth-patching data-hygiene/credential-exposure issue that amplifies the blast radius of any data-directory or backup compromise, but NOT an internet-facing critical - priority is moderate and mainly matters where backups are broadly accessible or the data directory is exposed.

Exploit ScenarioDerived

An attacker who obtains a copy of the XWiki permanent data directory - for example an unencrypted or loosely-permissioned filesystem backup, a misconfigured share, or via a separate server compromise - reads the serialized PDF export job status files and extracts the stored user cookies. Because the encryption key resides in the same data directory, the attacker decrypts the embedded username/password cookie to recover the equivalent of the requesting user's plaintext credentials. The vendor Jira ticket (XWIKI-23151) publicly documents the issue, but the disclosure requires access to the data directory rather than a remote network request.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Sep 26, 2026

Server-side PDF export jobs in XWiki Platform persist the triggering user's cookies - including the encrypted username and password - unencrypted in the serialized job status that is written to the permanent data directory, so an attacker who can read that directory or a backup of it recovers effective plaintext credentials (CWE-212). The affected xwiki-platform-export-pdf-api package spans versions 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 independent assessment scores this 7.5 on a local vector (AV:L/PR:H), because exploitation depends on out-of-band storage access rather than remote network reachability. Publicly available exploit code exists and EPSS is low at 0.05% (17th percentile), with no KEV confirmation of active exploitation, and the vendor-released patches are 16.4.8, 16.10.7, and 17.4.0-rc-1.

Earlier versions of this analysis (1)
v1 Mar 28, 2026 - 19:09 CVSS 5.8

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated medium severity (CVSS 5.8), this vulnerability is remotely exploitable. Public exploit code available.

RemediationAI

Upgrade to the vendor-released fixed versions - XWiki 16.4.8 (16.4.x branch), 16.10.7 (16.10.x branch), or 17.4.0-rc-1 or later (17.x branch) - which contain the cleanup() fix from commit 60982ad0057b1701ed8297f28cad35d170686539 that strips request.session, request.headers, and request.cookies from the PDF export job context before the job status is persisted; details are in advisory GHSA-9m7c-m33f-3429. The vendor states it is not aware of any workaround other than upgrading, so operators who cannot patch immediately should treat the permanent data directory as a credential store: restrict filesystem permissions and backup access to data/ (including data/configuration.properties, which holds the cookie encryption key) and ensure backups are encrypted, since an attacker with any copy of the directory can decrypt the stored cookies without further effort. Additionally, purge or expire serialized PDF export job statuses from the permanent directory/job status store to eliminate already-leaked records, avoid triggering server-side PDF exports until patched, and rotate the credentials of users who previously ran PDF exports plus the cookie encryption key in data/configuration.properties - noting that rotating the key invalidates existing sessions and that deleting job statuses may break in-progress job monitoring, while access controls are only a compensating measure because the plaintext-equivalent secrets remain in storage until the code is fixed.

Affected Packages

maven org.xwiki.platform:xwiki-platform-export-pdf-api fix: 16.4.8, 16.10.7, 17.4.0-rc-1

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in maven

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

XWiki's PDF export runs as a background job whose request context is cloned from the initiating HTTP request so the export can be reproduced on a server-side thread; that context map includes the keys request.session, request.headers, and request.cookies. When a job finishes, XWiki serializes the job status - which embeds the job request - into the permanent data directory, so the request cookies are written to disk after the export completes, even though they are no longer needed. The stored cookies contain XWiki's encrypted username and password pair, but because the cookie encryption key is generated and kept by default in the same data directory (data/configuration.properties), possession of the directory removes the encryption barrier entirely. This is a textbook CWE-212 (Improper Removal of Sensitive Information Before Storage or Transfer) case: sensitive state is retained past its useful lifetime in a location where an attacker with read access can recover it. The upstream fix in commit 60982ad0057b1701ed8297f28cad35d170686539 wraps the export in a try/finally cleanup() that removes request.session, request.headers, and request.cookies from the request context once the export finishes (whether the PDF is generated client-side or server-side), with unit tests asserting those keys are absent while unrelated keys such as request.foo survive. The CPE cpe:2.3:a:xwiki:xwiki confirms the affected platform, distributed as the Maven artifact org.xwiki.platform:xwiki-platform-export-pdf-api.

Know when Xwiki gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 4.4 MEDIUM

Disclosure requires read access to the server's permanent data directory or its backup (local, privileged/insider access), so AV:L and PR:H; only credential confidentiality is impacted (C:H, I:N, A:N).

3.1 AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

6
Analysis Updated
Sep 26, 2026 - 00:32 vuln.today
v2 - CVSS changed
Severity Changed
Sep 26, 2026 - 00:22 NVD
MEDIUM HIGH
CVSS changed
Sep 26, 2026 - 00:22 NVD
5.8 (MEDIUM) 7.5 (HIGH)
Patch released
Mar 28, 2026 - 19:09 nvd
Patch available
PoC Detected
Sep 02, 2025 - 17:34 vuln.today
Public exploit code
CVE Published
Aug 28, 2025 - 18:15 nvd
MEDIUM 5.8

DescriptionNVD

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.

Executive ViewAI

Why It Matters

XWiki Platform's server-side PDF export feature writes the triggering user's encrypted credentials into an unencrypted serialized job-status file stored in the permanent data directory, meaning anyone who can read that directory or a retained backup can recover effective plaintext credentials. Because the exposure depends on local or storage-level access rather than remote reachability, the people most immediately at risk are administrators, hosting providers, and backup operators - but the credentials recovered could grant broad access to wiki content, configuration, and connected systems. Leadership should care because this is a credential-harvesting issue whose exposure silently persists in long-retained archives, and publicly available exploit code exists while the vendor has already released fixes.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 83% exploitable
Prevalence
Medium
open-source enterprise Java wiki, moderate real-world deployment, niche vs Confluence
Exploit
POC
Public exploit code exists
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Out-of-Cycle
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

58
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)NVD

cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*
cpe:2.3:a:xwiki:xwiki:*:*:*:*:*:*:*:*

More in Xwiki

View all
CVE-2025-24893 CRITICAL POC
9.8 Feb 20

XWiki Platform allows unauthenticated remote code execution through the SolrSearch endpoint, enabling guests to execute

CVE-2024-21650 CRITICAL POC
10.0 Jan 08

XWiki Platform prior to specific patched versions contains a CVSS 10.0 remote code execution vulnerability through the u

CVE-2023-29525 HIGH POC
8.8 Apr 19

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated high seve

CVE-2025-32969 CRITICAL POC
9.3 Apr 23

XWiki is a generic wiki platform. Rated critical severity (CVSS 9.3), this vulnerability is remotely exploitable, no aut

CVE-2025-55727 CRITICAL POC
9.8 Sep 09

Remote code execution in XWiki Pro Macros 1.0 through 1.26.4 allows authenticated users who can edit at least one page o

CVE-2023-27479 CRITICAL POC
9.9 Mar 07

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26055 CRITICAL POC
9.9 Mar 02

XWiki Commons are technical libraries common to several other top level XWiki projects. Rated critical severity (CVSS 9.

CVE-2024-31996 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2024-31982 CRITICAL POC
9.8 Apr 10

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2023-46731 CRITICAL POC
9.8 Nov 06

XWiki Platform is a generic wiki platform offering runtime services for applications built on top of it. Rated critical

CVE-2023-26477 CRITICAL POC
9.8 Mar 02

XWiki Platform is a generic wiki platform. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitabl

CVE-2025-52472 CRITICAL POC
9.3 Oct 06

Unauthenticated HQL injection in the XWiki Platform REST search API lets remote attackers inject arbitrary Hibernate Que

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy