Junrar: LocalFolderExtractor mkdir escape allows directory creation outside extraction root
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
Junrar is an open source Java RAR archive library. Prior to version 7.6.1, LocalFolderExtractor in src/main/java/com/github/junrar/LocalFolderExtractor.java can create directories outside the intended extraction root when processing a crafted archive entry. LocalFolderExtractor.createFile() validates only the final canonical file path, while LocalFolderExtractor.makeFile() creates intermediate path segments with unchecked mkdir() calls. An entry can therefore make the final path resolve inside the destination while causing intermediate directory creation outside it, enabling filesystem pollution or file-versus-directory squatting that can make later security-sensitive writes fail. The demonstrated impact is directory creation, not unconditional arbitrary file-content write. This issue is fixed in version 7.6.1.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| junrar | junrar | before 7.6.1 | 7.6.1 | Patch available | CNA |
| — | com.github.junrar:junrar (Maven) | before 7.6.1 | 7.6.1 | Patch available | GHSA-89m4-43j5-vhhx |
- junrar Vendorjunrar Affected before 7.6.1 Fixed in 7.6.1 Patch available CNA
- com.github.junrar:junrar (Maven) Vendor— Affected before 7.6.1 Fixed in 7.6.1 Patch available GHSA-89m4-43j5-vhhx
Remediation
- Fix · CNA junrar (junrar) Fixed in 7.6.1
- Fix · GHSA-89m4-43j5-vhhx com.github.junrar:junrar (Maven) Fixed in 7.6.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-86071
- 2026-10-03 Alias added: GHSA-89m4-43j5-vhhx
References
More junrar vulnerabilities
- TI-2026-74659 Infinite CPU loop in Junrar RAR4 extraction through RarVM jumps CVSS 3.1HIGH 7.5
Sources
- CVE-2026-86071 · CVE Program
- CVE-2026-86071 · NVD
- FIRST EPSS
- GHSA-89m4-43j5-vhhx · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences