cve.bz

CVE-2026-13501 antlr antlr4: Injection

1.9 lowEPSS 1.4%

Low (1.9) in antlr antlr4. EPSS 1.4% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

1.9 low
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:P

CVSS 3.1

5.3 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
EPSS
1.4% (unchanged from 1.4% a week ago; 1.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 73rd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2026-06-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
CWE-77 Improper Neutralization of Special Elements used in a Command
OWASP Top 10
A05:2025 Injection
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain 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.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
ANTLR44.13.0
ANTLR44.13.1
ANTLR44.13.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14antlr4no fix listedDEBIAN-CVE-2026-13501
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 5 moreantlr4no fix listedUBUNTU-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

Red Hat rates this Moderate.

Red Hat's statement

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.

Red Hat's mitigation

No mitigation is required. Red Hat products are not affected by this vulnerability.

ProductPackageStateAdvisory
Red Hat Hardened Imagesgolang1.25Not affected
Red Hat Hardened Imagesgolang1.26Not 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.

Attack patterns (CAPEC)

  • CAPEC-15 Command Delimiters Likelihood: High · Severity: High
  • CAPEC-40 Manipulating Writeable Terminal Devices Likelihood: High · Severity: Very High
  • CAPEC-43 Exploiting Multiple Input Interpretation Layers Likelihood: Medium · Severity: High
  • CAPEC-75 Manipulating Writeable Configuration Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-136 LDAP Injection Likelihood: High · Severity: High
  • CAPEC-183 IMAP/SMTP Command Injection Severity: Medium
  • CAPEC-248 Command Injection Likelihood: Medium · Severity: High

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).

References

Check your stackJSON