Description
OW2 ASM 3.0 before 9.11 contains an uncontrolled recursion vulnerability in ClassWriter.replaceAsmInstructions() that allows attackers to cause denial of service through crafted class files. Attackers can supply a class with a large method containing many long forward jumps, triggering unbounded toByteArray() recursion and a StackOverflowError during transformation.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| OW2 | ASM | 3.0 – < 9.11 | 9.11 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | asm | 9.11.1-1 | — |
| Debian 13 | asm | No fix yet | — |
| Debian 12 | asm | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | asm | No fix yet | — |
| Ubuntu 26.04 LTS | asm | No fix yet | — |
| Ubuntu 24.04 LTS | asm | No fix yet | — |
| Ubuntu 22.04 LTS | asm | No fix yet | — |
| Ubuntu 20.04 LTS | asm | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | asm | No fix yet | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | javapackages-bootstrap | No fix yet | — |
| Azure Linux 3 | objectweb-asm | 9.11.1-1 | — |
References
- https://gitlab.ow2.org/asm/asm/-/merge_requests/459 patch
- https://gitlab.ow2.org/asm/asm/-/commit/e9aca627c17e1619bcb8059afb43382dac6b275f patch
- https://gitlab.ow2.org/asm/asm/-/blob/ASM_9_10_1/asm/src/main/java/org/objectweb/asm/ClassWriter.java#L751 technical-description
- ASM 9.11 Release Notes release-notes
- VulnCheck Advisory: OW2 ASM 3.0 before 9.11 Uncontrolled Recursion via ClassWriter.replaceAsmInstructions() third-party-advisory