CVE-2026-41245: Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix
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 ../extractevil/file.txt would be actually extracted to /tmp/extractevil/file.txt.
Published Apr 16, 2026 · Updated Apr 24, 2026
Affected packages
com.github.junrar:junrar
- Ecosystem
- Maven
- Affected
- < 7.5.10
- Fixed in
- 7.5.10
- Check
mvn dependency:tree -Dincludes=com.github.junrar:junrar
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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 inLocalFolderExtractor validate extraction paths using a string prefix.
Credited to subbudvk.
References
- https://github.com/junrar/junrar/security/advisories/GHSA-hf5p-q87m-crj7
- https://nvd.nist.gov/vuln/detail/CVE-2026-41245
- https://github.com/junrar/junrar/commit/d77e9a83eb721cd51f9c23d7869d0e6ad7f952d7
- https://github.com/junrar/junrar/releases/tag/v7.5.10
- https://github.com/advisories/GHSA-hf5p-q87m-crj7
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-97370
Junrar: RarVM VM_JMP maxOpCount bypass causes infinite CPU loop during RAR4 extraction
high7.5Oct 15, 2026CVE-2026-86071
Junrar: LocalFolderExtractor mkdir escape allows directory creation outside extraction root
low3.7Sep 17, 2026CVE-2026-28208
Junrar has an arbitrary file write due to backslash Path Traversal bypass in LocalFolderExtractor on Linux/Unix
medium5.9Feb 27, 2026
