CVE-2026-34151: XWiki Platform Old Core Remote Code Execution Vulnerability

HIGH
Advisory Identifier: GHSA-qj4x-9g63-25g6
CWE-24
Published
Advisory Summary

CVE-2026-34151 is a HIGH remote code execution vulnerability (CWE-24: Path Traversal: '../filedir') affecting XWiki Platform Old Core libraries in the Maven ecosystem. The issue involves resource path traversal via /skin/ action endpoint in jetty 12+. Remediation is available by upgrading affected packages to version 17.10.5, 18.2.0.

CVE-2026-34151 at a Glance

CVE Identifier CVE-2026-34151
GHSA Identifier GHSA-qj4x-9g63-25g6
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-24: Path Traversal: '../filedir'
Affected Product XWiki Platform Old Core
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2026-34151

To remediate this vulnerability, upgrade all affected XWiki Platform Old Core dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.xwiki.platform:xwiki-platform-oldcore fixed: 17.10.5
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-oldcore</artifactId>
    <version>17.10.5</version>
</dependency>
org.xwiki.platform:xwiki-platform-oldcore fixed: 18.2.0
<dependency>
    <groupId>org.xwiki.platform</groupId>
    <artifactId>xwiki-platform-oldcore</artifactId>
    <version>18.2.0</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.xwiki.platform

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-34151, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.xwiki.platform

Analyze the terminal output to locate any version of XWiki Platform Old Core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 17.10.5), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.xwiki.platform command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-24: Path Traversal: '../filedir', where the product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory. In XWiki Platform Old Core, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Impact With Jetty 12+ a user can craft a URL to access any resource the Jetty instance is allowed to access. For example `http://[host]/xwiki/bin/skin/..%252f/..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc/passwd` allows downloading the content of the /etc/passwd file, provided Jetty is allowed to read it, and if your XWiki webapp is located exactly 5 levels below `/` (like `/var/lib/jetty/webapps/xwiki`, which is the case in the docker image, for example). Another example which does not go out of the XWiki webapp, but it's still a vulnerability (since users should not be allowed to access Hibernate or XWiki configuration files) is `http://[host]/xwiki/bin/skin/..%252f/..%252fWEB-INF/xwiki.cfg`. ### Patches This vulnerability has been patched in XWiki 17.10.5 and 18.2.0. ### Workarounds A possible workaround is to use a different application server, like Jetty < 12 (in the case of XWiki < 17) or Tomcat, which don't seem to be impacted. ### Resources * https://jira.xwiki.org/browse/XWIKI-24075 * https://jira.xwiki.org/browse/XCOMMONS-3594 ### For more information If there are any questions or comments about this advisory: * Open an issue in [Jira XWiki.org](https://jira.xwiki.org/) * Send an email to the [Security Mailing List](mailto:security@xwiki.org) ### Attribution Lê Ngọc Khoa reported the vulnerability.

CVE-2026-34151 Affected XWiki Platform Old Core Versions

2 component(s)
Fixed Versions:
17.10.518.2.0
Product / Package Ecosystem Affected Versions Fixed Version
org.xwiki.platform:xwiki-platform-oldcore
Maven
< 17.10.5
17.10.5
org.xwiki.platform:xwiki-platform-oldcore
Maven
≥ 18.0.0-rc-1
< 18.2.0
18.2.0

References

Frequently Asked Questions

What is CVE-2026-34151?
CVE-2026-34151 is a security vulnerability in XWiki Platform Old Core involving Resource path traversal via /skin/ action endpoint in Jetty 12+ under CWE-24: Path Traversal: '../filedir'.
Which XWiki Platform Old Core versions are affected?
Affected versions include releases prior to 17.10.5, 18.2.0 across affected packages: org.xwiki.platform:xwiki-platform-oldcore.
What version fixes CVE-2026-34151?
Upgrading to 17.10.5, 18.2.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is xwiki-platform-oldcore affected?
Yes, org.xwiki.platform:xwiki-platform-oldcore is affected in releases prior to 17.10.5, 18.2.0. Upgrade your dependency to 17.10.5, 18.2.0 or later.
What CWE is associated with CVE-2026-34151?
CVE-2026-34151 is classified under CWE-24: Path Traversal: '../filedir' (The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize "../" sequences that can resolve to a location that is outside of that directory.).
How can I check Maven dependencies for CVE-2026-34151?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.xwiki.platform'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-qj4x-9g63-25g6",
  "modified" : "2026-07-07T13:01:22Z",
  "published" : "2026-07-07T13:01:21Z",
  "aliases" : [ "CVE-2026-34151" ],
  "summary" : "XWiki Platform Old Core: Resource path traversal via /skin/ action endpoint in Jetty 12+",
  "details" : "### Impact\n\nWith Jetty 12+ a user can craft a URL to access any resource the Jetty instance is allowed to access.\n\nFor example `http://[host]/xwiki/bin/skin/..%252f/..%252f..%252f..%252f..%252f..%252f..%252f..%252fetc/passwd` allows downloading the content of the /etc/passwd file, provided Jetty is allowed to read it, and if your XWiki webapp is located exactly 5 levels below `/` (like `/var/lib/jetty/webapps/xwiki`, which is the case in the docker image, for example).\n\nAnother example which does not go out of the XWiki webapp, but it's still a vulnerability (since users should not be allowed to access Hibernate or XWiki configuration files) is `http://[host]/xwiki/bin/skin/..%252f/..%252fWEB-INF/xwiki.cfg`.\n\n### Patches\n\nThis vulnerability has been patched in XWiki 17.10.5 and 18.2.0.\n\n### Workarounds\n\nA possible workaround is to use a different application server, like Jetty < 12 (in the case of XWiki < 17) or Tomcat, which don't seem to be impacted.\n\n### Resources\n\n* https://jira.xwiki.org/browse/XWIKI-24075\n* https://jira.xwiki.org/browse/XCOMMONS-3594\n\n### For more information\n\nIf there are any questions or comments about this advisory:\n* Open an issue in [Jira XWiki.org](https://jira.xwiki.org/)\n* Send an email to the [Security Mailing List](mailto:security@xwiki.org)\n\n### Attribution\n\n Lê Ngọc Khoa reported the vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "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"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-oldcore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "17.10.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.xwiki.platform:xwiki-platform-oldcore"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "18.0.0-rc-1"
      }, {
        "fixed" : "18.2.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-platform/security/advisories/GHSA-qj4x-9g63-25g6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/xwiki/xwiki-commons/pull/1675"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/xwiki/xwiki-platform"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XCOMMONS-3594"
  }, {
    "type" : "WEB",
    "url" : "https://jira.xwiki.org/browse/XWIKI-24075"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-24" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-07-07T13:01:21Z",
    "nvd_published_at" : null
  }
}