| Título | antlr ANTLR4 4.13.2 Path Traversal tokenVocab File Read |
|---|
| Descrição | The `tokenVocab` grammar option in ANTLR4 specifies a `.tokens` vocabulary file to import. The option value is used directly to construct a file path as `lib_directory + "/" + vocabName + ".tokens"` without any path traversal validation. An attacker-controlled grammar file (or library directory path) can read arbitrary `.tokens` files from anywhere on the filesystem, with the file content appearing verbatim in error messages. Confirmed: ANTLR4 4.13.2 reads and reports the content of `/tmp/secret_tokens.tokens` when `tokenVocab=secret_tokens` and `-lib /tmp` are specified. |
|---|
| Fonte | ⚠️ https://github.com/wooyun123/wooyun/issues/8 |
|---|
| Utilizador | jiazhou (UID 89028) |
|---|
| Submissão | 27/05/2026 12h14 (há 1 mês) |
|---|
| Moderação | 27/06/2026 20h28 (1 month later) |
|---|
| Estado | Aceite |
|---|
| Entrada VulDB | 374497 [antlr ANTLR4 até 4.13.2 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile Travessia de Diretório] |
|---|
| Pontos | 20 |
|---|