ZeroHour

CVE-2026-34151

moderate

Unauthenticated Path Traversal File Read in XWiki Platform /skin/ Action

CVSS 4.0
8.2 high
EPSS
Published
()
Modified
AI analysis

XWiki Platform contains a path traversal flaw (CWE-24) in the /skin/ action handled by com.xpn.xwiki.web.SkinAction, fixed only in versions 17.10.5 and 18.2.0. When the wiki is deployed on Jetty 12 or later, double-encoded parent-directory segments in the request path are decoded by Jetty after XWiki's own check, letting the path escape the intended skin/webapp resource prefix. An unauthenticated remote attacker can exploit this with a simple crafted HTTP request to read arbitrary files readable by the Jetty process, including WEB-INF/xwiki.cfg (which holds database and other sensitive configuration) and, depending on deployment depth and OS permissions, host files. Only deployments running on Jetty 12+ are affected; Tomcat and Jetty versions before 12 do not appear vulnerable, and there is no known public PoC or in-the-wild exploitation. CVSS 4.0 is 8.2 (high) due to the network-exploitable, unauthenticated, high-impact read primitive.

What to do: Upgrade to XWiki Platform 17.10.5 or 18.2.0 immediately. If upgrading is not immediately possible, verify your servlet container: deployments on Tomcat or Jetty versions before 12 are not affected, and you can also block or normalize double-encoded traversal sequences (%252e%252e%252f-style) targeting the /skin/ endpoint at a reverse proxy or WAF. Review access logs for /skin/ requests containing encoded dot-dot segments and rotate any credentials or secrets found in xwiki.cfg if the instance was exposed.

Affected
XWiki PlatformAll versions prior to 17.10.5 and prior to 18.2.0, when deployed on Jetty 12 or later (fixed in 17.10.5 and 18.2.0; Tomcat and Jetty before 12 not affected)
Estimated exposure
moderate≈ low thousands of internet-exposed XWiki instances, with only the Jetty 12+ subset (recent standalone distributions) actually vulnerable — Public internet scans typically enumerate on the order of a few thousand internet-facing XWiki deployments, and only those running the bundled Jetty 12+ packaging of recent releases are exposed to this specific flaw.

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

XWiki Platform is a generic wiki platform. Prior to 17.10.5 and 18.2.0, the /skin/ action in com.xpn.xwiki.web.SkinAction can resolve double-encoded parent-directory segments outside the intended skin or web-application resource prefix when Jetty 12 or later decodes the request path. The affected lookup is replaced with Environment.getResourceAsStream(String, String), which constrains a resource to its expected prefix. An unauthenticated remote attacker can use the vulnerable behavior to read arbitrary resources permitted to the Jetty process, including WEB-INF/xwiki.cfg and, depending on deployment depth and operating-system permissions, host files. Tomcat and Jetty versions before 12 do not appear affected. This issue is fixed in versions 17.10.5 and 18.2.0.

Weakness
CWE-24
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.