CVE-2022-29253: Path Traversal in XWiki Platform
2.7
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.19957%
CWE
Published
6/1/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.xwiki.platform:xwiki-platform-oldcore | maven | >= 8.3-rc-1, < 13.10.3 | 13.10.3 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from improper path sanitization in the classloader template resolution logic. The commit patching the issue adds critical path normalization and a directory traversal check to 'getClassloaderTemplate' in InternalTemplateManager.java, specifically verifying that the normalized path starts with the expected 'prefixPath'. This directly addresses the path traversal vulnerability described in the advisory. The function's pre-patch behavior of blindly concatenating user-controlled 'templateName' with 'suffixPath' (later renamed to 'prefixPath') without validation is the root cause.