NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

mediumCVSS 3.1 5.9GHSA-hf5p-q87m-crj7

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 ../extractevil/file.txt would be actually extracted to /tmp/extractevil/file.txt.

Published Apr 16, 2026 · Updated Apr 24, 2026

Affected packages

com.github.junrar:junrar

Ecosystem
Maven
Affected
< 7.5.10
Fixed in
7.5.10
Check
mvn dependency:tree -Dincludes=com.github.junrar:junrar

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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.

Credited to subbudvk.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries