4.5
MEDIUM CVSS 3.1
CVE-2026-13502
antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou
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.

INFO

Published Date :

June 28, 2026, 3:16 p.m.

Last Modified :

June 29, 2026, 6:46 p.m.

Remotely Exploit :

No
Affected Products

The following products are affected by CVE-2026-13502 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Antlr antlr4
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 134c704f-9b21-4f2e-91b3-4a467353bcc0
CVSS 2.0 LOW [email protected]
CVSS 3.1 MEDIUM [email protected]
CVSS 4.0 LOW [email protected]
Solution
Update ANTLR4 to a version that resolves the TOCTOU vulnerability in the Maven plugin.
  • Update ANTLR4 to a version later than 4.13.2.
  • Verify the patch addresses the ObjectInputStream.readObject issue.
  • Review the Maven plugin for similar vulnerabilities.
  • Apply vendor security patches promptly.
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2026-13502.

URL Resource
https://github.com/wooyun123/wooyun/issues/7
https://vuldb.com/cve/CVE-2026-13502
https://vuldb.com/submit/838685
https://vuldb.com/vuln/374498
https://vuldb.com/vuln/374498/cti
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-13502 is associated with the following CWEs:

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-13502 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-13502 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0

    Jun. 29, 2026

    Action Type Old Value New Value
    Added SSVC {'id': 'CVE-2026-13502', 'role': 'CISA Coordinator', 'options': [{'exploitation': 'poc'}, {'automatable': 'no'}, {'technicalImpact': 'partial'}], 'version': '2.0.3', 'timestamp': '2026-06-29T13:44:36.339186Z'}
  • New CVE Received by [email protected]

    Jun. 28, 2026

    Action Type Old Value New Value
    Added Affected [{'cpes': ['cpe:2.3:a:antlr:antlr4:*:*:*:*:*:*:*:*'], 'vendor': 'antlr', 'modules': ['Maven Plugin'], 'product': 'ANTLR4', 'versions': [{'status': 'affected', 'version': '4.13.0'}, {'status': 'affected', 'version': '4.13.1'}, {'status': 'affected', 'version': '4.13.2'}]}]
    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.
    Added CVSS V4.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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L
    Added CVSS V2 (AV:L/AC:H/Au:S/C:P/I:P/A:P)
    Added CWE CWE-362
    Added CWE CWE-367
    Added Reference https://github.com/wooyun123/wooyun/issues/7
    Added Reference https://vuldb.com/cve/CVE-2026-13502
    Added Reference https://vuldb.com/submit/838685
    Added Reference https://vuldb.com/vuln/374498
    Added Reference https://vuldb.com/vuln/374498/cti
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.