CVE-2026-41245: Junrar Path Traversal Vulnerability

MODERATE
Advisory Identifier: GHSA-hf5p-q87m-crj7
CVSS 5.9
CWE-22
Published
Advisory Summary

CVE-2026-41245 is a MODERATE (CVSS 5.9) path traversal vulnerability (CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')) affecting Junrar libraries in the Maven ecosystem. The issue involves path traversal (zip-slip) via sibling directory name prefix. Remediation is available by upgrading affected packages to version 7.5.10.

CVE-2026-41245 at a Glance

CVE Identifier CVE-2026-41245
GHSA Identifier GHSA-hf5p-q87m-crj7
Severity MODERATE
CVSS v3.1 Base Score 5.9
CWE Classification CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
Affected Product Junrar
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 5.9

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2026-41245

To remediate this vulnerability, upgrade all affected Junrar dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

com.github.junrar:junrar fixed: 7.5.10
<dependency>
    <groupId>com.github.junrar</groupId>
    <artifactId>junrar</artifactId>
    <version>7.5.10</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=com.github.junrar

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2026-41245, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=com.github.junrar

Analyze the terminal output to locate any version of Junrar in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.5.10), your application is affected.

Note: The mvn dependency:tree -Dincludes=com.github.junrar command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'), where the product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. In Junrar, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.

CVE-2026-41245 Affected Junrar Versions

1 component(s)
Fixed Versions:
7.5.10
Product / Package Ecosystem Affected Versions Fixed Version
com.github.junrar:junrar
Maven
< 7.5.10
7.5.10

References

Frequently Asked Questions

What is CVE-2026-41245?
CVE-2026-41245 is a security vulnerability in Junrar involving Path Traversal (Zip-Slip) via Sibling Directory Name Prefix under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal').
Which Junrar versions are affected?
Affected versions include releases prior to 7.5.10 across affected packages: com.github.junrar:junrar.
What version fixes CVE-2026-41245?
Upgrading to 7.5.10 (or the latest patched release for your respective branch) resolves the vulnerability.
Is junrar affected?
Yes, com.github.junrar:junrar is affected in releases prior to 7.5.10. Upgrade your dependency to 7.5.10 or later.
What is the CVSS score of CVE-2026-41245?
CVE-2026-41245 has a CVSS v3.1 base score of 5.9 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2026-41245?
CVE-2026-41245 is classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') (The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.).
How can I check Maven dependencies for CVE-2026-41245?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=com.github.junrar'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-hf5p-q87m-crj7",
  "modified" : "2026-04-24T20:56:02Z",
  "published" : "2026-04-16T21:14:33Z",
  "aliases" : [ "CVE-2026-41245" ],
  "summary" : "Junrar: Path Traversal (Zip-Slip) via Sibling Directory Name Prefix",
  "details" : "### Summary\n\nA 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.\n\n### Example\n\nGiven 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`.\n\n### Details\n\nThe `createDirectory()` and `createFile()` methods in`LocalFolderExtractor` validate extraction paths using a string prefix.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "com.github.junrar:junrar"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "7.5.10"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/junrar/junrar/security/advisories/GHSA-hf5p-q87m-crj7"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2026-41245"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/junrar/junrar/commit/d77e9a83eb721cd51f9c23d7869d0e6ad7f952d7"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/junrar/junrar"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/junrar/junrar/releases/tag/v7.5.10"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-22" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-04-16T21:14:33Z",
    "nvd_published_at" : "2026-04-20T16:16:49Z"
  }
}