Junglewise Threat Intelligence

CVE-2026-41245: Junrar path traversal in LocalFolderExtractor

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

Executive brief

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.

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

Timeline

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

References

Related threats