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.012 (66.5th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 67th percentile — 66.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.012 · newest: 0.012 · change: 0.000
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)
- vuldb.com/cve/CVE-2026-13501 (third-party-advisory)
- vuldb.com/submit/838569 (third-party-advisory)
- vuldb.com/vuln/374496 (technical-description, vdb-entry)
- vuldb.com/vuln/374496/cti (signature, permissions-required)
Frequently asked questions
- What is CVE-2026-13501?
- CVE-2026-13501 is a medium-severity vulnerability in Antlr Antlr4, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 5.3/10. Published 2026-06-28.
- How severe is CVE-2026-13501?
- Medium severity. CVSS v3 base score is 5.3 out of 10.