Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix
GHSA-hf5p-q87m-crj7 · CVE-2026-41245
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
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.
References
- WEB https://github.com/junrar/junrar/security/advisories/GHSA-hf5p-q87m-crj7
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-41245
- WEB https://github.com/junrar/junrar/commit/d77e9a83eb721cd51f9c23d7869d0e6ad7f952d7
- PACKAGE https://github.com/junrar/junrar
- WEB https://github.com/junrar/junrar/releases/tag/v7.5.10
Ready to move
Start Securing
Free, no credit card | First findings in minutes