---
id: CVE-2026-13501
title: A security vulnerability has been detected in antlr ANTLR4 up to 4.13.2
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 lead…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L'
cwe:
  - CWE-74
  - CWE-77
published: '2026-06-28'
updated: '2026-06-28'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-13501'
references:
  - url: 'https://github.com/wooyun123/wooyun/issues/6'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/cve/CVE-2026-13501'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/submit/838569'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374496'
    label: cna@vuldb.com
  - url: 'https://vuldb.com/vuln/374496/cti'
    label: cna@vuldb.com
tags:
  - nvd
ingestedAt: '2026-06-29T13:42:12.020Z'
epss: 0.0118
epssPercentile: 0.6632
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
