CVE-2026-13500 Details
Description
A weakness has been identified in antlr ANTLR4 up to 4.13.2. Affected is an unknown function of the file tool/src/org/antlr/v4/codegen/model/OutputFile.java of the component Grammar Action Block Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
A code injection vulnerability has been identified in ANTLR4 versions prior to 4.13.2. The issue arises in the Grammar Action Block Handler, specifically within the file OutputFile.java. The vulnerability allows for arbitrary code execution by injecting malicious actions into grammar files, which are then executed without any sanitization. This exploitation can be carried out remotely.
Users are advised to review and sanitize grammar files from untrusted sources before processing them with ANTLR4. Additionally, consider implementing a safe mode that disables or filters action blocks, and use runtime sandboxing to isolate the execution of untrusted grammars.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 28, 2026CISA-ADP
Assessed Jun 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wooyun123/wooyun/issues/4 | [email protected] | ExploitIssue TrackingTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-13500 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/838568 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/374495 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/374495/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-74 | Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') | [email protected] |
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| antlr ANTLR4 | <= 4.13.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 29, 2026 | CVE Modified | CISA-ADP |
| Jun 28, 2026 | New CVE Received | [email protected] |
Volerion