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

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 64% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-28T14:30:08.236Z
- Modified: 2026-10-25T17:10:00.197Z
- Weaknesses: CWE-74, CWE-77
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- antlr ANTLR4: 4.13.0; 4.13.1; 4.13.2

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`

## References

- <https://github.com/wooyun123/wooyun/issues/6> (exploit, issue-tracking)
- <https://vuldb.com/vuln/374496> (technical-description, vdb-entry)
- <https://vuldb.com/vuln/374496/cti> (permissions-required, signature)
- <https://vuldb.com/cve/CVE-2026-13501> (third-party-advisory)
- <https://vuldb.com/submit/838569> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-13501](https://www.cve.org/CVERecord?id=CVE-2026-13501), CVE Terms of Use, modified 2026-06-29
- NVD: [CVE-2026-13501](https://nvd.nist.gov/vuln/detail/CVE-2026-13501), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-13501 · Whole record: https://cve.day/CVE-2026-13501.json · Rebuilt by cve.day 2026-11-25T22:59:26.577Z
