Submit #838685: antlr ANTLR4 4.13.2 Unsafe Java Deserialization Maven Plugininfo

Titleantlr ANTLR4 4.13.2 Unsafe Java Deserialization Maven Plugin
DescriptionThe ANTLR4 Maven plugin (`antlr4-maven-plugin`) uses `ObjectInputStream.readObject()` without setting an `ObjectInputFilter` to deserialize a grammar dependency status file from the build directory. An attacker with write access to the build directory (via shared CI cache poisoning, compromised dependencies that have filesystem access, or a TOCTOU race condition) can replace the status file with a serialized gadget chain and achieve Remote Code Execution on the build server. Confirmed: the deserializer accepts arbitrary class names, attempting to load attacker-controlled classes.
Source⚠️ https://github.com/wooyun123/wooyun/issues/7
User
 jiazhou (UID 89028)
Submission05/27/2026 12:11 (1 month ago)
Moderation06/27/2026 20:28 (1 month later)
StatusAccepted
VulDB entry374498 [antlr ANTLR4 up to 4.13.2 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou]
Points20

Do you want to use VulDB in your project?

Use the official API to access entries easily!