Description
A weakness has been identified in antlr ANTLR4 up to 4.13.2. Affected is an unknown function of the file tool/src/org/antlr/v4/codegen/model/OutputFile.java of the component Grammar Action Block Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| antlr | ANTLR4 | 4.13.0, 4.13.1, 4.13.2 | — |
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 | antlr4 | No fix yet | — |
| Debian 13 | antlr4 | No fix yet | — |
| Debian 12 | antlr4 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | antlr4 | No fix yet | — |
| Ubuntu 26.04 LTS | antlr4 | No fix yet | — |
| Ubuntu 25.10 | antlr4 | No fix yet | — |
| Ubuntu 24.04 LTS | antlr4 | No fix yet | — |
| Ubuntu 22.04 LTS | antlr4 | No fix yet | — |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | antlr4 | No fix yet | — |
| Ubuntu 18.04 LTS | antlr4 | No fix yet | — |
| Ubuntu 16.04 LTS | antlr4 | No fix yet | — |
References
- VDB-374495 | antlr ANTLR4 Grammar Action Block OutputFile.java code injection vdb-entry
- VDB-374495 | CTI Indicators (IOB, IOC, TTP, IOA) signature permissions-required
- CVE-2026-13500 | CVE Analysis and Report third-party-advisory
- Submit #838568 | antlr ANTLR4 4.13.2 Code Injection third-party-advisory
- https://github.com/wooyun123/wooyun/issues/4 exploit issue-tracking