提出 #838686: antlr ANTLR4 4.13.2 Path Traversal tokenVocab File Read情報

タイトルantlr ANTLR4 4.13.2 Path Traversal tokenVocab File Read
説明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.
ソース⚠️ https://github.com/wooyun123/wooyun/issues/8
ユーザー
 jiazhou (UID 89028)
送信2026年05月27日 12:14 (1 月 ago)
モデレーション2026年06月27日 20:28 (1 month later)
ステータス承諾済み
VulDBエントリ374497 [antlr ANTLR4 迄 4.13.2 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile ディレクトリトラバーサル]
ポイント20

Want to stay up to date on a daily basis?

Enable the mail alert feature now!