{"id":"CVE-2026-13501","aliases":["CLSA-2026-1791457538","DEBIAN-CVE-2026-13501","EUVD-2026-39999","GHSA-q226-w36v-hhxv","UBUNTU-CVE-2026-13501"],"status":"published","title":"antlr ANTLR4 gofmt GoTarget.java GoTarget command injection","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.","severity":{"version":"4.0","score":4.8,"vector":"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","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01414,"percentile":0.73079,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-74","CWE-77"],"published":"2026-06-28T14:30:08Z","modified":"2026-10-26T11:47:28Z","affected":[{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4-master","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4-maven-plugin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4-runtime","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4-runtime-testsuite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"TuxCare:Maven","package":"org.antlr:antlr4-tool-testsuite","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.13.0"},{"fixed":"4.13.0-tuxcare.1"}]}],"versions":["4.13.0"],"bundled":3},{"source":"osv","ecosystem":"Debian:12","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-5","4.9.2-1","4.9.2-2","4.9.2-3"]},{"source":"osv","ecosystem":"Debian:13","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3"]},{"source":"osv","ecosystem":"Debian:14","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3"]},{"source":"osv","ecosystem":"Ubuntu:16.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.1-1","4.5.1-2"]},{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.3-2","4.7.2-1~18.04"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-1","4.7.2-2"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-5"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-5","4.9.2-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3build1"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"antlr4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3","4.9.2-3build1"]}],"products":[{"vendor":"antlr","product":"antlr4"}],"references":[{"url":"https://vuldb.com/vuln/374496","tags":["vdb-entry","technical-description"]},{"url":"https://vuldb.com/vuln/374496/cti","tags":["signature","permissions-required"]},{"url":"https://vuldb.com/cve/CVE-2026-13501","tags":["third-party-advisory"]},{"url":"https://vuldb.com/submit/838569","tags":["third-party-advisory"]},{"url":"https://github.com/wooyun123/wooyun/issues/6","tags":["exploit","issue-tracking","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-13501"},{"url":"https://github.com/advisories/GHSA-q226-w36v-hhxv"},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-13501","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-13501","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-13501","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2026-13501","title":"antlr ANTLR4 gofmt GoTarget.java GoTarget command injection","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.","status":"published","published":"2026-06-28T14:30:08.236Z","modified":"2026-06-29T14:53:25.912Z","cvss":[{"version":"4.0","score":4.8,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.1","score":5.3,"vector":"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","level":"medium","assessor":"cna"},{"version":"3.0","score":5.3,"vector":"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","level":"medium","assessor":"cna"},{"version":"2.0","score":4.3,"vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR","assessor":"cna"}],"cwes":["CWE-77","CWE-74"],"updated_at":"2026-11-02T14:19:50.24628Z"}],"euvd":[{"id":"EUVD-2026-39999","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.","status":"published","published":"2026-06-28T14:30:08Z","modified":"2026-06-29T14:53:25Z","cvss":[{"version":"4.0","score":4.8,"vector":"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","level":"medium"}],"updated_at":"2026-11-02T18:20:22.506413Z"}],"ghsa":[{"id":"GHSA-q226-w36v-hhxv","title":"A security vulnerability has been detected in antlr ANTLR4 up to 4.13.2. Affected by this...","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.","status":"published","published":"2026-06-28T15:31:20Z","modified":"2026-06-28T15:31:26Z","cvss":[{"version":"4.0","score":1.9,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-74"],"updated_at":"2026-11-02T15:09:02.633671Z"}],"nvd":[{"id":"CVE-2026-13501","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.","status":"published","published":"2026-06-28T15:16:52.967Z","modified":"2026-10-25T17:10:00.197Z","cvss":[{"version":"4.0","score":1.9,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low","assessor":"secondary"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"2.0","score":4.3,"vector":"AV:L/AC:L/Au:S/C:P/I:P/A:P","level":"medium","assessor":"secondary"}],"cwes":["CWE-74","CWE-77"],"updated_at":"2026-11-02T14:12:26.508751Z"}],"osv":[{"id":"DEBIAN-CVE-2026-13501","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.","status":"published","published":"2026-06-28T15:16:52.967Z","modified":"2026-10-26T11:47:28.927216445Z","cvss":[{"version":"4.0","score":1.9,"vector":"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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"low"}],"updated_at":"2026-11-02T15:45:51.374409Z"},{"id":"UBUNTU-CVE-2026-13501","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.","status":"published","published":"2026-06-28T15:16:00Z","modified":"2026-10-17T12:59:52.666129841Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"4.0","score":1.9,"vector":"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","level":"low"}],"updated_at":"2026-11-02T16:56:00.592716Z"},{"id":"CLSA-2026-1791457538","title":"TuxCare security update for org.antlr (3 CVEs)","description":"TuxCare rebuilt 6 org.antlr packages to address 3 CVEs. Fixed in 4.13.0-tuxcare.1.","status":"published","published":"2026-10-08T11:05:38Z","modified":"2026-10-15T09:45:41.403421756Z","updated_at":"2026-11-02T15:43:49.016976Z"}]}}
