CVE-2026-41245: Junrar path traversal in LocalFolderExtractor

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). 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
    # 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

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.