Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-13501— antlr ANTLR4 gofmt GoTarget.java GoTarget command injection

Quick assessment

Affected
antlr ANTLR4
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

ANTLR ANTLR是ANTLR团队的一款语法解析器生成框架。 ANTLR4 4.13.2及之前版本存在安全漏洞,该漏洞源于GoTarget函数存在命令注入。以下版本受到影响:4.13.0版本、4.13.1版本和4.13.2版本。

CVSS 5.3 · Medium EPSS 1.18% · P67

Possible ATT&CK Techniques 1 AI

T1059 · Command and Scripting Interpreter

Affected Version Matrix 3

VendorProduct Version RangeStatus
antlr ANTLR4 4.13.0 affected
4.13.1 affected
4.13.2 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-13501

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
antlr ANTLR4 gofmt GoTarget.java GoTarget command injection
Source: CVE Program / CVE List V5
Vulnerability Description
A security vulnerability has been detected in antlr ANTLR4 up to 4.13.2. Affected by this vulnerability is the function GoTarget of the file tool/src/org/antlr/v4/codegen/target/GoTarget.java of the component gofmt. The manipulation leads to command injection. The attack can only be performed from a local environment. The exploit has been disclosed publicly and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
Source: CVE Program / CVE List V5
Vulnerability Type
在命令中使用的特殊元素转义处理不恰当(命令注入)
Source: CVE Program / CVE List V5
Vulnerability Title
ANTLR 输入验证错误漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
ANTLR ANTLR是ANTLR团队的一款语法解析器生成框架。 ANTLR4 4.13.2及之前版本存在安全漏洞,该漏洞源于GoTarget函数存在命令注入。以下版本受到影响:4.13.0版本、4.13.1版本和4.13.2版本。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
antlr ANTLR4 4.13.0 cpe:2.3:a:antlr:antlr4:*:*:*:*:*:*:*:*

II. Public POCs for CVE-2026-13501

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-13501

请登录查看更多情报信息。

Proof of Concept for CVE-2026-13501 (1)

Same Patch Batch · antlr · 2026-06-28 · 4 CVEs total

CVE-2026-13500 7.3 HIGH antlr ANTLR4 Grammar Action Block OutputFile.java code injection
CVE-2026-13503 5.3 MEDIUM antlr ANTLR4 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile path tra
CVE-2026-13502 4.5 MEDIUM antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou

IV. Related Vulnerabilities

V. Comments for CVE-2026-13501

No comments yet


Leave a comment