Vulnerability · Published Jun 28, 2026 · Assigned by VulDB
CVE-2026-13502antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou
Medium 4.5
In plain English
A medium-severity race condition in ANTLR4 from antlr. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 1% of all known vulnerabilities).
Official description
A flaw has been found in antlr ANTLR4 up to 4.13.2. This affects the function ObjectInputStream.readObject of the file antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java of the component Maven Plugin. This manipulation causes time-of-check time-of-use. The attack is restricted to local execution. A high degree of complexity is needed for the attack. It is indicated that the exploitability is difficult. The exploit has been published and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | antlr4 | no fix listed | DEBIAN-CVE-2026-13502 |
| Debian:13 | antlr4 | no fix listed | DEBIAN-CVE-2026-13502 |
| Debian:14 | antlr4 | no fix listed | DEBIAN-CVE-2026-13502 |
| Ubuntu:22.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13502 |
| Ubuntu:24.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13502 |
| Ubuntu:25.10 | antlr4 | no fix listed | UBUNTU-CVE-2026-13502 |
| Ubuntu:26.04:LTS | antlr4 | no fix listed | UBUNTU-CVE-2026-13502 |
| Ubuntu:26.10 | antlr4 | no fix listed | UBUNTU-CVE-2026-13502 |
Affected products (as reported)
Weakness: CWE-367, CWE-362 · Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R
References
- VDB-374498 | antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou vdb-entry, technical-description
- VDB-374498 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- CVE-2026-13502 | CVE Analysis and Report third-party-advisory
- Submit #838685 | antlr ANTLR4 4.13.2 Unsafe Java Deserialization Maven Plugin third-party-advisory
- https://github.com/wooyun123/wooyun/issues/7 exploit, issue-tracking