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.
Published: 2026-06-28
Score: 2 Low
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A flaw was discovered in the ANTLR4 Maven Plugin up to version 4.13.2 that exploits a time‑of‑check time‑of‑use condition in the ObjectInputStream.readObject method used by GrammarDependencies.java. The vulnerability allows local exploitation with a high complexity requirement; published exploits exist, but the effort required is significant. The weakness is categorized as a race condition (CWE‑362) and a TOCTOU flaw (CWE‑367).

Affected Systems

The ANTLR4 Maven Plugin for ANTLR4 up to 4.13.2 is affected. The vulnerability resides in the file antlr4-maven-plugin/src/main/java/org/antlr/mojo/antlr4/GrammarDependencies.java and is tied to the Maven build environment rather than the core ANTLR library. No vendor response has been recorded.

Risk and Exploitability

The CVSS score of 2 indicates a low severity assessment, and no EPSS data is available. The flaw is not listed in the CISA KEV catalog, and exploitation requires local access with a high complexity. Despite the difficult exploitability, the existence of published exploits warrants monitoring of the Maven builds for potential abuse.

Generated by OpenCVE AI on June 28, 2026 at 16:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the ANTLR4 Maven Plugin to a version that removes the vulnerable readObject call, if an updated release is available.
  • Restrict or disable the plugin’s execution when processing untrusted data, ensuring that only trusted sources can trigger its deserialization logic.
  • Engage with the ANTLR maintainers to obtain a patch or confirmation of a fixed release and verify that the vulnerability is addressed.

Generated by OpenCVE AI on June 28, 2026 at 16:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 28 Jun 2026 15:15:00 +0000

Type Values Removed Values Added
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.
Title antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou
First Time appeared Antlr
Antlr antlr4
Weaknesses CWE-362
CWE-367
CPEs cpe:2.3:a:antlr:antlr4:*:*:*:*:*:*:*:*
Vendors & Products Antlr
Antlr antlr4
References
Metrics cvssV2_0

{'score': 3.5, 'vector': 'AV:L/AC:H/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR'}

cvssV3_0

{'score': 4.5, 'vector': 'CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R'}

cvssV3_1

{'score': 4.5, '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'}

cvssV4_0

{'score': 2, 'vector': 'CVSS:4.0/AV:L/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-06-28T14:45:07.057Z

Reserved: 2026-06-27T18:28:04.377Z

Link: CVE-2026-13502

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-06-28T16:30:17Z

Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-367

    Time-of-check Time-of-use (TOCTOU) Race Condition