RCE in Antlr Antlr4
CVE-2026-13501
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.014, 73.2th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Antlr Antlr4 — versions 4.13.0, 4.13.1, 4.13.2
Weakness classification (CWE)
References
- github.com/wooyun123/wooyun/issues/6 (issue-tracking, exploit)
- CVE-2026-13501 | CVE Analysis and Report (third-party-advisory)
- Submit #838569 | antlr ANTLR4 4.13.2 Command Injection (third-party-advisory)
- VDB-374496 | antlr ANTLR4 gofmt GoTarget.java GoTarget command injection (technical-description, vdb-entry)
- VDB-374496 | CTI Indicators (IOB, IOC, TTP, IOA) (signature, permissions-required)