Skip to content
OpenAdvisories
High · 7.5 CVE-2026-97370 EUVD-2026-102251GHSA-h9h9-2rmf-rvhp

Junrar: RarVM VM_JMP maxOpCount bypass causes infinite CPU loop during RAR4 extraction

Published Oct 15, 2026 · Updated Oct 16, 2026 · Assigned by GitHub_M

Description

Junrar is an open source Java RAR archive library. Prior to 7.6.1, RarVM.ExecuteCode in src/main/java/com/github/junrar/unpack/vm/RarVM.java can repeatedly execute a VM_JMP instruction whose target is greater than or equal to the prepared program's codeSize. The setIP() function returns success without changing the instruction pointer or decrementing maxOpCount, and the jump handler continues before loop-end accounting, leaving both values unchanged. A crafted RAR4 archive can therefore keep an extraction thread in an infinite CPU loop and exhaust archive-processing worker capacity. The RAR virtual machine does not expose native process execution, so the supported impact is availability loss rather than code execution. This issue is fixed in version 7.6.1.

Affected products

VendorProductAffectedFixed
junrar junrar < 7.6.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven com.github.junrar:junrar < 7.6.1 7.6.1 GHSA-h9h9-2rmf-rvhp

References