제출 #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. PM 12:14 (1 월 ago)
모더레이션2026. 06. 27. PM 08:28 (1 month later)
상태수락
VulDB 항목374497 [antlr ANTLR4 까지 4.13.2 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile 디렉토리 순회]
포인트들20

Interested in the pricing of exploits?

See the underground prices here!