GitHub Advisoryadvisory · Maven

GHSA-hf5p-q87m-crj7 Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix

MEDIUM Published 2026-04-16 Modified 2026-04-24 Official page ↗
Aliases
CVE-2026-41245
Ecosystem
Maven
Packages
com.github.junrar:junrar
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Weaknesses
CWE-22
Reviewed
2026-04-16

Affected packages

• Maven com.github.junrar:junrar: < 7.5.10 → fixed in 7.5.10

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 in`LocalFolderExtractor` validate extraction paths using a string prefix.

Related

Alias · CVE (1)

  • CVE-2026-41245 Junrar is an open source java RAR archive library. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References