Path Traversal in Antlr Antlr4
CVE-2026-13503
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.
Vulnerability class: Path Traversal (Directory Traversal)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N.
EPSS exploit prediction
EPSS 0.008, 56.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Antlr Antlr4 — versions 4.13.0, 4.13.1, 4.13.2
Weakness classification (CWE)
References
- VDB-374497 | antlr ANTLR4 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile path traversal (technical-description, vdb-entry)
- VDB-374497 | CTI Indicators (IOB, IOC, TTP, IOA) (signature, permissions-required)
- CVE-2026-13503 | CVE Analysis and Report (third-party-advisory)
- Submit #838686 | antlr ANTLR4 4.13.2 Path Traversal tokenVocab File Read (third-party-advisory)
- github.com/wooyun123/wooyun/issues/8 (issue-tracking, exploit)