CVE-2026-13501 antlr ANTLR4 gofmt GoTarget.java GoTarget command injection
Local attackers can execute arbitrary commands via the gofmt component in ANTLR4, posing a risk to developers using the library.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-13501?
CVE-2026-13501 is a medium-severity command injection vulnerability in ANTLR4, published on 28 Jun 2026. It can only be exploited from the same machine or local network, with no action from the victim.
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.
Which versions are affected by CVE-2026-13501?
How do I fix CVE-2026-13501?
No fix published yet.
Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.
Is CVE-2026-13501 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-13501 exists.
Sources
Also known as DEBIAN-CVE-2026-13501, GHSA-q226-w36v-hhxv, UBUNTU-CVE-2026-13501.