MODERATE 5.9

CVE-2026-41245

Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix

Description

Summary

A path traversal vulnerability in LocalFolderExtractor allows an attacker to write arbitrary files with attacker-controlled content into sibling directories when a crafted RAR archive is extracted.

Example

Given an extraction directory set to /tmp/extract, a crafted archive with an entry with the filename as ../extract_evil/file.txt would be actually extracted to /tmp/extract_evil/file.txt.

Details

The createDirectory() and createFile() methods inLocalFolderExtractor validate extraction paths using a string prefix.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
com.github.junrar » junrar
< 7.5.10
7.5.10

Blast radius

1affected artifacts
46affected versions
2,674dependent artifacts (est.)
151,495dependent versions

70% of the dependent artifacts (1,882) still pull an affected version in their latest release.

DepthDependent versions
Direct
1,080
2 hops
11,069
3 hops
18,577
4 hops
28,775
5 hops
50,545
6 hops
41,449

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.