asm is vulnerable to Memory Allocation with Excessive Size Value
55
CVE Score
Medium
Memory Allocation with Excessive Size Value
ClassReader.readBootstrapMethodsAttribute() in asm sizes an int array from num_bootstrap_methods and walks that many bootstrap method entries. It does not first check that the BootstrapMethods attribute fits in the class file. A class file of a few dozen bytes can set the count to its maximum unsigned short value, 65535, and force a large allocation plus reads past the attribute. The fix rejects an attribute length that runs past the class bytes.
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 reads untrusted class files.
5.0 - 9.10.1
Fixed in 9.11asm is vulnerable to Memory Allocation with Excessive Size Value in versions 5.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.