---
id: CVE-2026-13503
title: A vulnerability was detected in antlr ANTLR4 up to 4.13.2
summary: >-
  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 …
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N'
cwe:
  - CWE-22
published: '2026-06-28'
updated: '2026-06-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-13503'
references:
  - url: 'https://github.com/wooyun123/wooyun/issues/8'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-13503'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/838686'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374497'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374497/cti'
    label: cna@vuldb.com
tags:
  - nvd
ingestedAt: '2026-06-29T13:42:12.024Z'
epss: 0.00767
epssPercentile: 0.53575
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
