---
id: CVE-2026-86071
title: Junrar is an open source Java RAR archive library
summary: >-
  Junrar is an open source Java RAR archive library. Prior to version 7.6.1,
  LocalFolderExtractor in
  src/main/java/com/github/junrar/LocalFolderExtractor.java can create
  directories outside the intended extraction root when processing a cr…
severity: low
cvss: 3.7
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N'
cwe:
  - CWE-22
vendor: junrar
product: junrar
affected:
  - junrar < 7.6.1
patched:
  - 'com.github.junrar:junrar 7.6.1'
published: '2026-09-16'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T21:25:27.050'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86071'
references:
  - url: >-
      https://github.com/junrar/junrar/commit/e6e333b195a1e3ad271a18fd79d8ac1eb5289343
    label: security-advisories@github.com
  - url: 'https://github.com/junrar/junrar/releases/tag/v7.6.1'
    label: security-advisories@github.com
  - url: 'https://github.com/junrar/junrar/security/advisories/GHSA-89m4-43j5-vhhx'
    label: security-advisories@github.com
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-86071'
  - url: 'https://github.com/advisories/GHSA-89m4-43j5-vhhx'
tags:
  - nvd
  - cve.org
  - ghsa
  - maven
epss: 0.00362
epssPercentile: 0.27311
aliases:
  - GHSA-89m4-43j5-vhhx
ecosystem: maven
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-17T17:10:36.345345Z'
ingestedAt: '2026-09-16T20:03:30.757Z'
---

## Overview

Junrar is an open source Java RAR archive library. Prior to version 7.6.1, LocalFolderExtractor in src/main/java/com/github/junrar/LocalFolderExtractor.java can create directories outside the intended extraction root when processing a crafted archive entry. LocalFolderExtractor.createFile() validates only the final canonical file path, while LocalFolderExtractor.makeFile() creates intermediate path segments with unchecked mkdir() calls. An entry can therefore make the final path resolve inside the destination while causing intermediate directory creation outside it, enabling filesystem pollution or file-versus-directory squatting that can make later security-sensitive writes fail. The demonstrated impact is directory creation, not unconditional arbitrary file-content write. This issue is fixed in version 7.6.1.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-86071)

Affected packages:

- `com.github.junrar:junrar <= 7.6.0`

Patched in:

- `com.github.junrar:junrar 7.6.1`

Source: https://github.com/advisories/GHSA-89m4-43j5-vhhx
