Path traversal in junrar - CVE-2026-41245

 

Path traversal in junrar - CVE-2026-41245

Published: April 27, 2026


Vulnerability identifier: #VU128167
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-41245
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: junrar
Affected software:
junrar

Detailed vulnerability description

The vulnerability allows a remote attacker to write arbitrary files with attacker-controlled content into sibling directories.

The vulnerability exists due to path traversal in LocalFolderExtractor when extracting a crafted RAR archive. A remote attacker can supply a specially crafted archive entry path to write arbitrary files with attacker-controlled content into sibling directories.

The issue stems from createDirectory() and createFile() validating extraction paths using a string prefix.


How to mitigate CVE-2026-41245

Install security update from vendor's website.

Sources