CVE-2022-23082: Path traversal in CureKit
7.5
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.5731%
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:N/UI:N/S:U/C:H/I:N/A:N
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| io.whitesource:curekit | maven | >= 1.0.1, < 1.1.4 | 1.1.4 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description explicitly names isFileOutsideDir as the failing function. The commit diff shows this function was modified to replace a string-based startsWith check with a Path-based comparison, confirming the original implementation was insufficient. The added test case demonstrates a scenario where the old logic would fail (checking '/usr/foo/../foo-bar/bar' against '/usr/foo'). The string-based comparison in the original code couldn't distinguish between directory hierarchy and string prefixes, making it vulnerable to path traversal.