antlr ANTLR4 gofmt GoTarget.java GoTarget command injection
Key facts
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Low · Low · Low
- Fix status
- No fix listed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-77.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
No fixed version listed by the sources yet.
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
Not affected: 1 product
- Red Hat Hardened Images
Timeline
- 2026-10-02 Threatist record created from CVE-2026-13501
- 2026-10-03 Alias added: GHSA-q226-w36v-hhxv
References
More antlr vulnerabilities
- TI-2026-11428 antlr ANTLR4 tokenVocab Grammar Option TokenVocabParser.java getImportedVocabFile path traversal CVSS 4.0MEDIUM 6.9
- TI-2026-11425 antlr ANTLR4 Grammar Action Block OutputFile.java code injection CVSS 4.0MEDIUM 6.9
- TI-2026-11427 antlr ANTLR4 Maven Plugin GrammarDependencies.java ObjectInputStream.readObject toctou CVSS 4.0LOW 2.0
Sources
- CVE-2026-13501 · CVE Program
- CVE-2026-13501 · NVD
- FIRST EPSS
- GHSA-q226-w36v-hhxv · GitHub Advisory Database · CC BY 4.0
- CVE-2026-13501 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences