Skip to main content
Vulnerability Database/CVE-2026-112046

CVE-2026-112046: OW2 ASM DOS Vulnerability

CVE-2026-112046 is a denial of service vulnerability in OW2 ASM 9.11 that triggers infinite loops when processing large class files. This article covers the technical details, affected versions, security impact, and mitigation strategies.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-112046 Overview

CVE-2026-112046 is an infinite loop vulnerability [CWE-835] in the OW2 ASM Java bytecode manipulation library, affecting version 9.11 before 9.11.1. The flaw resides in the Label.resolve() method and stems from 16-bit forward-reference offsets truncating when rewritten methods exceed 64 KB. Attackers can supply crafted class files whose transformed code grows past 65535 bytes, causing ClassReader.accept() to hang. The impact affects any tool that consumes untrusted class files, including build systems, instrumenters, Java agents, and static analyzers.

Critical Impact

A crafted class file can hang ClassReader.accept() indefinitely, denying service to build pipelines, bytecode instrumenters, Java agents, and static analysis tools that rely on OW2 ASM.

Affected Products

  • OW2 ASM 9.11
  • Build tools, instrumenters, agents, and analyzers embedding ASM 9.11
  • Fixed in OW2 ASM 9.11.1

Discovery Timeline

  • 2026-10-18 - CVE-2026-112046 published to NVD
  • 2026-10-19 - Last updated in NVD database

Technical Details for CVE-2026-112046

Vulnerability Analysis

OW2 ASM is a widely used Java bytecode framework for reading, writing, and transforming .class files. It is embedded in build tools, Java agents, and runtime instrumentation frameworks. The vulnerable code path lives in Label.resolve() within asm/src/main/java/org/objectweb/asm/Label.java.

JVM short-form branch instructions encode jump offsets as signed 16-bit values. When ASM rewrites a method and the transformed code exceeds 65535 bytes, forward-reference offsets wrap during truncation. The resolution loop then fails to terminate, consuming CPU without returning control to the caller.

Because the parsing routine ClassReader.accept() triggers label resolution, a single crafted class file is sufficient to stall the hosting process. The condition is deterministic and does not require memory corruption or privileged access.

Root Cause

The root cause is a numeric truncation error in the handling of 16-bit forward-reference branch offsets. When rewritten method bodies grow beyond the 64 KB short-branch limit, the offset arithmetic in Label.resolve() produces values that re-enter the resolution loop instead of converging. The result is an unbounded loop classified under [CWE-835]. The upstream fix is tracked in OW2 ASM merge request 480 and commit 4bb1a4701e7b61c2163525b987a96a8db815cb68.

Attack Vector

The attack vector is local and requires user interaction, typically by processing an attacker-supplied class file. Common exposure points include build pipelines that compile or scan third-party JARs, Java agents that instrument loaded classes, continuous integration runners that execute untrusted code, and static analyzers that parse class files. Successful exploitation hangs the process and denies service to downstream workloads.

No verified public exploit code is available at this time. See the VulnCheck Advisory on OW2 ASM and the OW2 ASM Source Code File for technical details.

Detection Methods for CVE-2026-112046

Indicators of Compromise

  • Build or instrumentation processes hanging indefinitely with a single thread pinned at 100% CPU inside org.objectweb.asm.Label.resolve.
  • Thread dumps showing stack frames inside ClassReader.accept() and Label.resolve() without progress across successive samples.
  • Processing of unusually large third-party class files whose transformed bodies approach or exceed 65535 bytes.

Detection Strategies

  • Inventory Java projects and container images for asm-9.11.jar using software composition analysis tooling.
  • Scan Maven and Gradle lockfiles for direct or transitive dependencies on org.ow2.asm:asm:9.11.
  • Capture periodic JVM thread dumps from build agents and instrumentation processes and alert on repeated frames in Label.resolve.

Monitoring Recommendations

  • Enforce wall-clock timeouts on build steps, agents, and analyzers that invoke ClassReader.accept() on untrusted input.
  • Monitor CI runners for stuck jobs, elevated CPU on single threads, and job-queue backlogs that indicate hung workers.
  • Alert on introduction of new third-party JARs into build inputs that have not passed dependency review.

How to Mitigate CVE-2026-112046

Immediate Actions Required

  • Upgrade OW2 ASM to version 9.11.1 across all applications, build tools, agents, and analyzers.
  • Rebuild and redeploy downstream artifacts that shade or repackage ASM to ensure the patched version is included.
  • Audit CI/CD systems and Java agents that process untrusted class files and prioritize them for patching first.

Patch Information

OW2 ASM 9.11.1 fixes the infinite loop in Label.resolve(). The fix is published through the OW2 project. Reference the OW2 ASM Commit Overview, the OW2 ASM Merge Request, and the OW2 ASM Version Information page for release notes and upgrade guidance.

Workarounds

  • Avoid processing untrusted or attacker-controlled class files with ASM 9.11 until the upgrade is complete.
  • Run bytecode processing in isolated worker processes with enforced CPU and wall-clock limits to contain hangs.
  • Pin transitive dependencies to the patched 9.11.1 release using Maven dependencyManagement or Gradle resolution strategies.
bash
# Maven dependency pin example
# <dependencyManagement>
#   <dependencies>
#     <dependency>
#       <groupId>org.ow2.asm</groupId>
#       <artifactId>asm</artifactId>
#       <version>9.11.1</version>
#     </dependency>
#   </dependencies>
# </dependencyManagement>

mvn dependency:tree -Dincludes=org.ow2.asm:asm

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.