CVSS 4.0
1.9 lowCVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PLow (1.9) in antlr antlr4. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:PCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:LExplain CVE-2026-13501 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-13501?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-13501?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-13501 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Affected |
|---|---|
| ANTLR4 | 4.13.0 |
| ANTLR4 | 4.13.1 |
| ANTLR4 | 4.13.2 |
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | antlr4 | no fix listed | DEBIAN-CVE-2026-13501 |
| Ubuntu | 16.04:LTS, 18.04:LTS, 20.04:LTS and 5 more | antlr4 | no fix listed | UBUNTU-CVE-2026-13501 |
From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.
Red Hat rates this Moderate.
This flaw is a command injection in the GoTarget code-generation class (tool/src/org/antlr/v4/codegen/target/GoTarget.java) of the ANTLR4 tool, triggered when ANTLR4 generates a Go-language parser and invokes gofmt. The vulnerable code exists only in the ANTLR4 (4.x) generator tool.
Red Hat products do not ship the affected ANTLR4 Go-target generator. The antlr packages in Red Hat Enterprise Linux are ANTLR 2.7.7, and antlr3 is ANTLR 3.5.3 — neither major version contains a Go code-generation target or the GoTarget class. The only ANTLR4 present is the antlr4 4.8.0 JavaScript runtime bundled in Grafana, which is the parser runtime library, not the code-generation tool. The Go toolchain (gofmt) is not itself vulnerable; it is merely invoked by the ANTLR4 generator. Consequently, no Red Hat product is affected by this flaw.
No mitigation is required. Red Hat products are not affected by this vulnerability.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Hardened Images | golang1.25 | Not affected | |
| Red Hat Hardened Images | golang1.26 | Not affected |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-13501.
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).