# CVE-2026-41245: Junrar path traversal in LocalFolderExtractor

Source: https://junglewise.ai/threats/cve-2026-41245-junrar-path-traversal-in-localfolderextractor  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-04-20. Updated: 2026-06-30  
License: CC BY 4.0 with a link back

CVE-2026-41245 · Severity: medium · CVSS 5.9 · Published 2026-04-20

Junrar is an open-source Java library used to extract RAR archives. A security flaw allows a malicious actor to create a specially crafted RAR file that, when opened by an application using this library, can write files to unauthorized locations on the system. This could lead to the corruption of system files or the placement of malicious scripts in sensitive directories.

Technologies: [com.github.junrar:junrar (Maven)](https://junglewise.ai/threats/technologies/com-github-junrar-junrar). Vendors: [Maven](https://junglewise.ai/threats/vendors/maven).

## Quick answers

**Is CVE-2026-41245 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-41245 being exploited in the wild.

**How severe is CVE-2026-41245?** Medium severity, with a CVSS score of 5.9, published 20 April 2026.

**Which products and versions are affected?** Junrar Project Junrar < 7.5.10; com.github.junrar:junrar (Maven) < 7.5.10, ECOSYSTEM:introduced=0,fixed=7.5.10.

**Is there a fix for CVE-2026-41245?** Yes. com.github.junrar:junrar (Maven): upgrade to 7.5.10 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-41245 attacked?** It is attacked over the network, in a software library.

**Am I affected by CVE-2026-41245?** Check whether you run Junrar Project Junrar or com.github.junrar:junrar (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- com.github.junrar:junrar (Maven): upgrade to 7.5.10 or later

  ```sh
  # set com.github.junrar:junrar to 7.5.10 in your pom.xml or build.gradle
  ```


## Technical details

A path traversal vulnerability (Zip-Slip variant) exists in Junrar's LocalFolderExtractor component. The createDirectory() and createFile() methods validate extraction paths using a string prefix check that is insufficient to prevent traversal into sibling directories. An attacker can exploit this by crafting a RAR archive containing filenames with '..' sequences (e.g., '../sibling_dir/file.txt'). When the library extracts such an archive, it may write files outside the intended destination directory. The vulnerability is fixed in version 7.5.10 by improving path validation logic.

## Affected products

- Junrar Project Junrar < 7.5.10
- Red Hat Red Hat Fuse 7 7

## Identifiers

- CVE-2026-41245
- GHSA-hf5p-q87m-crj7

## Timeline

- 2026-04-15: patched: Version 7.5.10 released
- 2026-04-20: disclosed: Initial advisory published

## References

- [https://github.com/junrar/junrar/commit/d77e9a83eb721cd51f9c23d7869d0e6ad7f952d7](https://github.com/junrar/junrar/commit/d77e9a83eb721cd51f9c23d7869d0e6ad7f952d7)
- [https://github.com/junrar/junrar/releases/tag/v7.5.10](https://github.com/junrar/junrar/releases/tag/v7.5.10)
- [https://github.com/junrar/junrar/security/advisories/GHSA-hf5p-q87m-crj7](https://github.com/junrar/junrar/security/advisories/GHSA-hf5p-q87m-crj7)
- [https://access.redhat.com/security/cve/CVE-2026-41245](https://access.redhat.com/security/cve/CVE-2026-41245)
- [https://bugzilla.redhat.com/show_bug.cgi?id=2459769](https://bugzilla.redhat.com/show_bug.cgi?id=2459769)
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41245.json](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-41245.json)

## Related threats

- [Junrar RarVM infinite loop in RAR4 extraction](https://junglewise.ai/threats/cve-2026-97370-junrar-rarvm-vm-jmp-maxopcount-bypass-causes-infinite-cpu-loop)
- [Junrar LocalFolderExtractor path traversal via intermediate directory creation](https://junglewise.ai/threats/cve-2026-86071-junrar-localfolderextractor-path-traversal-via-intermediate)
- [Junrar has an arbitrary file write due to backslash Path Traversal bypass in LocalFolderExtractor on Linux/Unix](https://junglewise.ai/threats/cve-2026-28208-junrar-has-an-arbitrary-file-write-due-to-backslash-path)
- [Junrar vulnerable to infinite loop via extracting carefully crafted RAR archive](https://junglewise.ai/threats/cve-2022-23596-junrar-vulnerable-to-infinite-loop-via-extracting-carefully)
- [Junrar vulnerable to Infinite Loop](https://junglewise.ai/threats/cve-2018-12418-junrar-vulnerable-to-infinite-loop)
