जमा करें #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)
सबमिशन27/05/2026 12:14 PM (5 महीनों पहले)
संयम27/06/2026 08:28 PM (1 month later)
स्थितिस्वीकृत
VulDB प्रविष्टि374497 [antlr ANTLR4 तक 4.13.2 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile निर्देशिका ट्रैवर्सल]
अंक20

Want to know what is going to be exploited?

We predict KEV entries!