Skip to main content

Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in com.github.junrar:junrar

CVE-2026-86071

  • com.github.junrar:junrar
Severity Low
Score 3.7/10

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.

  • HIGH
  • NETWORK
  • LOW
  • UNCHANGED
  • NONE
  • NONE
  • NONE
  • NONE

CWE-22 - Path Traversal

Path traversal (or directory traversal), is a vulnerability that allows malicious users to traverse the server's root directory, gaining access to arbitrary files and folders such as application code & data, back-end credentials, and sensitive operating system files. In the worst-case scenario, an attacker could potentially execute arbitrary files on the server, resulting in a denial of service attack. Such an exploit may severely impact the integrity, confidentiality, and availability of an application.

Advisory Timeline

  • Published