GHSA-hf5p-q87m-crj7
Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix
Packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| Maven | com.github.junrar:junrar | < 7.5.10 | 7.5.10 |
Details
As written in the advisory (Markdown source, shown as plain text).
### Summary
A path traversal vulnerability in `LocalFolderExtractor` allows an attacker to write arbitrary files with attacker-controlled content into sibling directories when a crafted RAR archive is extracted.
### Example
Given an extraction directory set to `/tmp/extract`, a crafted archive with an entry with the filename as `../extract_evil/file.txt` would be actually extracted to `/tmp/extract_evil/file.txt`.
### Details
The `createDirectory()` and `createFile()` methods in`LocalFolderExtractor` validate extraction paths using a string prefix.
References
External links from the advisory. They lead to third-party sites.