CVE-2026-13503 Details
Description
A vulnerability was detected in antlr ANTLR4 up to 4.13.2. Affected by this issue is the function getImportedVocabFile of the file tool/src/org/antlr/v4/parse/TokenVocabParser.java of the component tokenVocab Grammar Option Handler. The manipulation results in path traversal. The attack can be executed remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
A path traversal vulnerability has been identified in ANTLR4 versions prior to 4.13.2. The issue arises in the TokenVocabParser component, specifically within the getImportedVocabFile function. The vulnerability allows for arbitrary file reading by exploiting the tokenVocab grammar option, which is used to import vocabulary files. The lack of proper validation on the vocabName parameter enables attackers to traverse directories and access sensitive files outside the intended directory.
Users are advised to update to ANTLR4 version 4.13.3 or later, where this vulnerability has been addressed. Additionally, when using the tokenVocab option, ensure that the specified vocabulary files are located within the project's controlled library directory and do not contain sensitive information.
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/8 | [email protected] | ExploitIssue TrackingTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-13503 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/838686 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/374497 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/374497/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') | [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