CVE-2026-28208

Junrar has arbitrary file write due to backslash path traversal bypass in LocalFolderExtractor on Linux/Unix

Published Feb 26, 2026 CVSS 3.1 · 5.9 Medium EPSS 14.7% KEV · Not listed
Description
Junrar is an open source java RAR archive library. Prior to version 7.5.8, a backslash path traversal vulnerability in `LocalFolderExtractor` allows an attacker to write arbitrary files with attacker-controlled content anywhere on the filesystem when a crafted RAR archive is extracted on Linux/Unix. This can often lead to remote code execution (e.g., overwriting shell profiles, source code, cron jobs, etc). Version 7.5.8 has a fix for the issue.

Analysis

AI-generated

Technical impact

Junrar, the open‑source Java RAR extraction library, contains a backslash path‑traversal flaw in its LocalFolderExtractor component. The flaw bypasses backslash handling on Linux/Unix, permitting an attacker to instruct the library to write any file with attacker‑controlled content to any arbitrary location on the filesystem when a crafted RAR archive is extracted. Because the library writes files without validating the target path, the vulnerability is an arbitrary file write (CWE‑22). If the crafted archive contains malicious scripts or binaries, overwriting configuration, shell profiles, source files, or cron jobs can lead to remote code execution.

Affected Systems

The issue affects all versions of the open‑source Junrar library before the 7.5.8 release. Junrar version 7.5.8 and later contain the fix. Any Java application that uses Junrar for archive extraction on a Linux or Unix system is susceptible if it is using an older version.

Risk and Exploitability

The vulnerability scores 5.9 on the CVSS scale and carries an EPSS rating of 14.74%, indicating a low risk of exploitation. It is not listed in CISA’s KEV catalog, suggesting no known large‑scale exploit activity. Exploitation requires an attacker to supply a malicious RAR archive to a process that performs extraction, which is more likely in environments where users or services routinely handle untrusted archives.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Junrar to version 7.5.8 or later to apply the vendor patch that fixes the backslash path traversal bug.
  • If upgrading is not immediately possible, configure the application to reject RAR archives that contain backslashes in paths or block extraction of untrusted archives until the patch is deployed.
  • Run the extraction process in a restricted environment such as a chroot jail, container, or sandbox with minimal permissions to limit where files can be written, mitigating the impact of a potential arbitrary file write.

Generated by OpenCVE AI on October 25, 2026 at 22:10 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j273-m5qq-6825 Junrar has an arbitrary file write due to backslash Path Traversal bypass in LocalFolderExtractor on Linux/Unix
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Junrar Project
Junrar Project junrar
CPEs cpe:2.3:a:junrar_project:junrar:*:*:*:*:*:*:*:*
Vendors & Products Junrar Project
Junrar Project junrar
Type Values Removed Values Added
First Time appeared Junrar
Junrar junrar
Vendors & Products Junrar
Junrar junrar
Type Values Removed Values Added
Description Junrar is an open source java RAR archive library. Prior to version 7.5.8, a backslash path traversal vulnerability in `LocalFolderExtractor` allows an attacker to write arbitrary files with attacker-controlled content anywhere on the filesystem when a crafted RAR archive is extracted on Linux/Unix. This can often lead to remote code execution (e.g., overwriting shell profiles, source code, cron jobs, etc). Version 7.5.8 has a fix for the issue.
Title Junrar has arbitrary file write due to backslash path traversal bypass in LocalFolderExtractor on Linux/Unix
Weaknesses CWE-22
References
Metrics cvssV3_1

{'score': 5.9, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N'}

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Mar 2, 2026, 8:47 PM
Reserved
Feb 25, 2026, 3:28 PM
Status
Modified
Published
Feb 26, 2026, 11:16 PM
Modified
Jun 17, 2026, 10:28 AM
Severity
Moderate
Public date
Feb 26, 2026, 10:20 PM