CVE-2026-13502antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou
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.
What to do
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | antlr4 | Fix pending | UBUNTU-CVE-2026-13502 | |
| Ubuntu 26.04 | antlr4 | Under investigation | UBUNTU-CVE-2026-13502 | |
| Ubuntu 25.10 | antlr4 | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-13502 | |
| Ubuntu 24.04 | antlr4 | Under investigation | UBUNTU-CVE-2026-13502 | |
| Ubuntu 22.04 | antlr4 | Under investigation | UBUNTU-CVE-2026-13502 | |
| Ubuntu 20.04 | antlr4 | Fix pending | UBUNTU-CVE-2026-13502 | |
| Ubuntu 18.04 | antlr4 | Fix pending | UBUNTU-CVE-2026-13502 | |
| Ubuntu 16.04 | antlr4 | Fix pending | UBUNTU-CVE-2026-13502 | |
| Debian 14 | antlr4 | Fix pending | DEBIAN-CVE-2026-13502 | |
| Debian 13 | antlr4 | Fix pending | DEBIAN-CVE-2026-13502 | |
| Debian 12 | antlr4 | Fix pending | DEBIAN-CVE-2026-13502 |
What the vendor says
As published in the CVE record by VulDB, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- ANTLR4: affected: 4.13.0, 4.13.1, 4.13.2
References
- https://vuldb.com/vuln/374498
- https://vuldb.com/vuln/374498/cti
- https://vuldb.com/cve/CVE-2026-13502
- https://vuldb.com/submit/838685
- https://github.com/wooyun123/wooyun/issues/7
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.