CVE-2022-23082 CureKit - Path Traversal in isFileOutsideDir
Attackers can exploit a path traversal vulnerability in CureKit to read arbitrary files from the server filesystem.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-23082?
CVE-2022-23082 is a high-severity path traversal vulnerability in WhiteSource CureKit, published on 31 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In CureKit versions v1.0.1 through v1.1.3 are vulnerable to path traversal as the function isFileOutsideDir fails to sanitize the user input which may lead to path traversal.
Weakness: CWE-22
Which versions are affected by CVE-2022-23082?
2 open source packages ship an affected version, including io.whitesource:curekit. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
io.whitesource:curekit Maven | From 1.0.1 | 1.1.4 |
io.whitesource:curekit Maven | From 1.0.1 | 1.1.4 |
Products include Mend Curekit.
How do I fix CVE-2022-23082?
Upgrade io.whitesource:curekit to 1.1.4 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2022-23082 being exploited?
There is no known exploitation of CVE-2022-23082 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-m9vj-44f3-78xw.