Skip to content
OpenAdvisories
Medium · 4.5 CVE-2026-13502 EUVD-2026-40000GHSA-h73j-vjhq-j9vg

antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou

Published Jun 28, 2026 · Updated Jun 29, 2026 · Assigned by VulDB

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 products

VendorProductAffectedFixed
antlr ANTLR4 4.13.0, 4.13.1, 4.13.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 antlr4 No fix yet —
Debian 13 antlr4 No fix yet —
Debian 12 antlr4 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 antlr4 No fix yet —
Ubuntu 26.04 LTS antlr4 No fix yet —
Ubuntu 25.10 antlr4 No fix yet —
Ubuntu 24.04 LTS antlr4 No fix yet —
Ubuntu 22.04 LTS antlr4 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS antlr4 No fix yet —
Ubuntu 18.04 LTS antlr4 No fix yet —
Ubuntu 16.04 LTS antlr4 No fix yet —

References