CVE-2026-86071: Junrar: LocalFolderExtractor mkdir escape allows directory creation outside extraction root

Published Sep 16, 2026
·
Updated

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.

Affected Software

1 affected component
junrar<7.6.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Junrar to a version that resolves this vulnerability.

    Fixed in 7.6.1

Event History

Sep 16, 2026
CVE Published
via MITRE·07:05 PM
Data Sourced
via MITRE·07:05 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to this issue?

Applications that use Junrar's LocalFolderExtractor to extract untrusted or attacker-crafted RAR archives are exposed. The vulnerable behavior is in versions before 7.6.1.

2

What does an attacker need to exploit it?

An attacker needs to supply a crafted archive entry that causes intermediate path segments to be created outside the extraction root while the final canonical path still validates inside the destination. No authentication or user interaction is required according to the supplied vector, but exploitation has high attack complexity.

3

What is the practical impact?

The demonstrated impact is creation of directories outside the intended extraction location, which can pollute the filesystem or reserve paths through file-versus-directory squatting. It is not demonstrated as an unconditional arbitrary file-content write.

4

What should be done if upgrading is not immediately possible?

Avoid extracting untrusted RAR archives with LocalFolderExtractor until Junrar can be updated to 7.6.1. Restrict the extractor's filesystem permissions so that unintended directory creation cannot affect security-sensitive locations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203