CVE-2026-13502 Details
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.
A vulnerability exists in the ANTLR4 Maven plugin, specifically in versions through 4.13.2. The issue arises in the 'GrammarDependencies.java' file, within the 'ObjectInputStream.readObject' function. This flaw leads to unsafe deserialization of objects, creating a time-of-check to time-of-use (TOCTOU) vulnerability. An attacker with write access to the build directory can exploit this issue to execute arbitrary code on the build server.
To address this vulnerability, the ANTLR4 Maven plugin should be updated to version 4.13.3 or later, where this issue has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 28, 2026CISA-ADP
Assessed Jun 29, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/wooyun123/wooyun/issues/7 | [email protected] | ExploitIssue TrackingTechnical Analysis |
| https://vuldb.com/cve/CVE-2026-13502 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/submit/838685 | [email protected] | Issue TrackingPermission Required |
| https://vuldb.com/vuln/374498 | [email protected] | AdvisoryPermission Required |
| https://vuldb.com/vuln/374498/cti | [email protected] | Content Wall |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-362 | Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition') | [email protected] |
| CWE-367 | Time-of-check Time-of-use (TOCTOU) Race Condition | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| antlr4 | <= 4.13.2 (semver) |
CPE
Remediation
| |
| antlr4-maven-plugin | <= 4.13.2 (semver) |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 25, 2026 | CVE Translated | [email protected] |
| Jun 29, 2026 | CVE Modified | CISA-ADP |
| Jun 28, 2026 | New CVE Received | [email protected] |
Volerion