CVE-2026-34151
XWiki Platform Old Core: Resource path traversal via /skin/ action endpoint in Jetty 12+
Description
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
- Send an email to the Security Mailing List
Attribution
Lê Ngọc Khoa reported the vulnerability.
Affected Maven artifacts (1)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.xwiki.platform » xwiki-platform-oldcore | < 17.10.5>= 18.0.0-rc-1, < 18.2.0 | 17.10.5, 18.2.0 |
Blast radius
72% of the dependent artifacts (822) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 44,411 |
| 2 hops | 53,146 |
| 3 hops | 24,735 |
| 4 hops | 3,642 |
| 5 hops | 117 |
| 6 hops | 2 |
Most used dependents
- org.xwiki.platform » xwiki-platform-test-docker101 usages
- org.xwiki.platform » xwiki-platform-rest-server85 usages
- org.xwiki.platform » xwiki-platform-tool-packager-plugin77 usages
- org.xwiki.platform » xwiki-platform-administration-ui75 usages
- org.xwiki.platform » xwiki-platform-test-page72 usages
- org.xwiki.platform » xwiki-platform-test-oldcore71 usages
- org.xwiki.platform » xwiki-platform-panels-ui62 usages
- org.xwiki.platform » xwiki-platform-configuration-default57 usages
- org.phenotips » patient-data-api52 usages
- com.xwiki.licensing » application-licensing-licensor-api51 usages
- org.xwiki.platform » xwiki-platform-skin-skinx49 usages
- org.xwiki.platform » xwiki-platform-livetable-ui48 usages
- org.xwiki.platform » xwiki-platform-rendering-wikimacro-store47 usages
- org.xwiki.platform » xwiki-platform-uiextension-api47 usages
- org.phenotips » vocabularies-api46 usages
Computed from the dependency graph of build 20261127.1117 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
| Package | xwiki/xwiki-platform | github.com |
| Web | xwiki/xwiki-platform advisory GHSA-qj4x-9g63-25g6 | github.com |
| Web | xwiki/xwiki-commons pull request #1675 | github.com |
| Web | browse/XCOMMONS-3594 | jira.xwiki.org |
| Web | browse/XWIKI-24075 | jira.xwiki.org |
