asm is vulnerable to Memory Allocation with Excessive Size Value
55
CVE Score
Medium
Memory Allocation with Excessive Size Value
Label.addSubroutineRetSuccessors() in asm builds the return edges for a jsr subroutine. The JVM allows only one ret for each jsr, but the method keeps adding edges for every extra ret in a class file. Those edges grow without a bound while stack map frames or the maximum stack are computed, and the process can run out of memory. The fix throws RuntimeException when a second ret is found for the same subroutine.
Upgrade the org.ow2.asm:asm library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and the application computes frames or the maximum stack for class files that use jsr and ret.
3.0 - 9.10.1
Fixed in 9.11asm is vulnerable to Memory Allocation with Excessive Size Value in versions 3.0 - 9.10.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.