Gửi #838686: antlr ANTLR4 4.13.2 Path Traversal tokenVocab File Readthông tin

tiêu đềantlr ANTLR4 4.13.2 Path Traversal tokenVocab File Read
Mô tả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.
Nguồn⚠️ https://github.com/wooyun123/wooyun/issues/8
Người dùng
 jiazhou (UID 89028)
Đệ trình27/05/2026 12:14 (cách đây 5 các tháng)
Kiểm duyệt27/06/2026 20:28 (1 month later)
Trạng tháiđược chấp nhận
Mục VulDB374497 [antlr ANTLR4 đến 4.13.2 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile duyệt thư mục]
điểm20

Want to know what is going to be exploited?

We predict KEV entries!