Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
Maven
Not in CISA KEV
LOW severity

GHSA-89m4-43j5-vhhx junrar

LOWFix: junrar/junrar@e6e333b

GHSA-89m4-43j5-vhhx is a low-severity (CVSS 3.7) Path Traversal vulnerability in com.github.junrar:junrar. A fix is available for com.github.junrar:junrar — see the affected versions and patch details below.

Junrar: LocalFolderExtractor mkdir escape allows directory creation outside extraction root

Also known asCVE-2026-86071
Published
Sep 17, 2026
Updated
Sep 17, 2026
Affected
1 pkg
Patched
1 / 1
Exploits
None indexed
Exploitation data as of Sep 17, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

No confirmed exploitation observed yet

  • CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.

Exploitation and automatability from CISA’s SSVC triage for GHSA-89m4-43j5-vhhx.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs23th percentile — riskier than 23% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

GHSA-89m4-43j5-vhhx plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 374,847 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Real-World Exposure

1 pkg affected
com.github.junrar:junrar

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.

Description

Summary

LocalFolderExtractor validates only the final canonical file path before extraction. However, makeFile() creates intermediate directories one path segment at a time without checking whether each created directory remains inside the destination folder.

A malicious RAR entry can make the final file path resolve inside the extraction destination, while causing intermediate mkdir() calls to create attacker-chosen directories outside the extraction root.

This is an extraction root escape via unchecked intermediate directory creation. The default impact is directory creation outside the intended destination, not unconditional arbitrary file content write.

Affected Code

  • src/main/java/com/github/junrar/LocalFolderExtractor.java
    • createFile() checks only the final canonical path.
    • makeFile() calls dir.mkdir() for each intermediate segment without containment checks.

Relevant code flow:

private File createFile(final FileHeader fh, final File destination) throws IOException {
    String name = invariantSeparatorsPathString(fh.getFileName());
    File f = new File(destination, name);
    String dirCanonPath = f.getCanonicalPath();
    if (!dirCanonPath.startsWith(destination.getCanonicalPath() + File.separator)) {
        throw new IllegalStateException(...);
    }
    if (!f.exists()) {
        f = makeFile(destination, name);
    }
    return f;
}

private File makeFile(final File destination, final String name) throws IOException {
    final String[] dirs = name.split("/");
    String path = "";
    for (int i = 0; i < dirs.length - 1; i++) {
        path = path + File.separator + dirs[i];
        File dir = new File(destination, path);
        dir.mkdir();
    }
    path = path + File.separator + dirs[dirs.length - 1];
    final File f = new File(destination, path);
    f.createNewFile();
    return f;
}

Impact

An attacker who can supply a malicious RAR archive can create directories outside the intended extraction directory.

This violates the expected extraction boundary and can be used for filesystem pollution or file-vs-directory squatting. For example, an attacker can create a directory at a path where a later security-sensitive file is expected, causing future writes to that path to fail.

Affected Packages

1 total 1 fixed
EcosystemPackageVulnerable rangeFix
Mavencom.github.junrar:junrarall versions7.6.1com.github.junrar:junrar:7.6.1

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for com.github.junrar:junrar, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Fix

    Update com.github.junrar:junrar to 7.6.1 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-89m4-43j5-vhhx is resolved across your whole dependency graph.

  3. Workarounds

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-89m4-43j5-vhhx can be triaged on real exposure rather than presence alone.

Tailored to GHSA-89m4-43j5-vhhx. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

## Summary `LocalFolderExtractor` validates only the final canonical file path before extraction. However, `makeFile()` creates intermediate directories one path segment at a time without checking whether each created directory remains inside the destination folder. A malicious RAR entry can make the final file path resolve inside the extraction destination, while causing intermediate `mkdir()` calls to create attacker-chosen directories outside the extraction root. This is an extraction root escape via unchecked intermediate directory creation. The default impact is directory creation outs
O3 Security · Impact-Aware SCA

Is GHSA-89m4-43j5-vhhx in your dependencies?

O3 Security finds GHSA-89m4-43j5-vhhx across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

GHSA-89m4-43j5-vhhx: junrar (Low 3.7) | O3 Security