Vulnerability · Published Jun 28, 2026 · Assigned by VulDB
CVE-2026-13501antlr ANTLR4 gofmt GoTarget.java GoTarget command injection
Medium 5.3
In plain English
A medium-severity command injection in ANTLR4 from antlr. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 1.4% (higher than 73% of all known vulnerabilities).
Official description
A security vulnerability has been detected in antlr ANTLR4 up to 4.13.2. Affected by this vulnerability is the function GoTarget of the file tool/src/org/antlr/v4/codegen/target/GoTarget.java of the component gofmt. The manipulation leads to command injection. The attack can only be performed from a local environment. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | antlr4 | no fix listed | DEBIAN-CVE-2026-13501 |
| Debian:13 | antlr4 | no fix listed | DEBIAN-CVE-2026-13501 |
| Debian:14 | antlr4 | no fix listed | DEBIAN-CVE-2026-13501 |
| Ubuntu:22.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
| Ubuntu:24.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
| Ubuntu:25.10 | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
| Ubuntu:26.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
| Ubuntu:26.10 | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
Affected products (as reported)
Weakness: CWE-77, CWE-74 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-374496 | antlr ANTLR4 gofmt GoTarget.java GoTarget command injection vdb-entry, technical-description
- VDB-374496 | CTI Indicators (IOB, IOC, TTP, IOA) signature, permissions-required
- CVE-2026-13501 | CVE Analysis and Report third-party-advisory
- Submit #838569 | antlr ANTLR4 4.13.2 Command Injection third-party-advisory
- https://github.com/wooyun123/wooyun/issues/6 exploit, issue-tracking