antlr4 — security advisory
A weakness has been identified in antlr ANTLR4 up to 4.13.2. Affected is an unknown function of the file tool/src/org/antlr/v4/codegen/model/OutputFile.java of the component Grammar Action Block Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
- Products
- antlr4
- Affected versions
- 4.5.1-1, 4.5.1-2, 4.5.3-2, 4.7.2-1, 4.7.2-1~18.04, 4.7.2-2, 4.7.2-5, 4.9.2-2, 4.9.2-3, 4.9.2-3build1
- Fixed versions
- Not specified
- CVEs
- CVE-2026-13500
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:41 UTC · Revision 1
Source evidence
A weakness has been identified in antlr ANTLR4 up to 4.13.2. Affected is an unknown function of the file tool/src/org/antlr/v4/codegen/model/OutputFile.java of the component Grammar Action Block Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.
osv:UBUNTU-CVE-2026-13500
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
antlr4
Fixed versions: Not specified
Complete source record
{
"id": "9616aa2e286b6fb57a8efdf252922f3be46a5891073326aba07e2e285a3a04ea",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-13500",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-13500",
"summary": "A weakness has been identified in antlr ANTLR4 up to 4.13.2. Affected is an unknown function of the file tool/src/org/antlr/v4/codegen/model/OutputFile.java of the component Grammar Action Block Handler. Executing a manipulation can lead to code injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The vendor was contacted early about this disclosure but did not respond in any way.",
"evidence": "osv:UBUNTU-CVE-2026-13500",
"products": [
{
"name": {
"value": "antlr4",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.5.1-1",
"evidence": "/affected/0/versions"
},
{
"value": "4.5.1-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.5.3-2",
"evidence": "/affected/1/versions"
},
{
"value": "4.7.2-1~18.04",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.7.2-1",
"evidence": "/affected/2/versions"
},
{
"value": "4.7.2-2",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.7.2-5",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.7.2-5",
"evidence": "/affected/4/versions"
},
{
"value": "4.9.2-2",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.2-3",
"evidence": "/affected/5/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/6/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.2-3build1",
"evidence": "/affected/6/versions"
}
]
},
{
"name": {
"value": "antlr4",
"evidence": "/affected/7/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "4.9.2-3",
"evidence": "/affected/7/versions"
},
{
"value": "4.9.2-3build1",
"evidence": "/affected/7/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2026-13500",
"aliases": [
"UBUNTU-CVE-2026-13500"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=xenial",
"ecosystem": "Ubuntu:16.04:LTS"
},
"versions": [
"4.5.1-1",
"4.5.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.5.1-2"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.5.1-2"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.5.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=bionic",
"ecosystem": "Ubuntu:18.04:LTS"
},
"versions": [
"4.5.3-2",
"4.7.2-1~18.04"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.7.2-1~18.04"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.7.2-1~18.04"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.7.2-1~18.04"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"4.7.2-1",
"4.7.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.7.2-2"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.7.2-2"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.7.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"4.7.2-5"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.7.2-5"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.7.2-5"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.7.2-5"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"4.7.2-5",
"4.9.2-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.9.2-2"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.9.2-2"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.9.2-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"4.9.2-3"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.9.2-3"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.9.2-3"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.9.2-3"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"4.9.2-3build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.9.2-3build1"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.9.2-3build1"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.9.2-3build1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "antlr4",
"purl": "pkg:deb/ubuntu/antlr4?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"4.9.2-3",
"4.9.2-3build1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13500.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "antlr4",
"binary_version": "4.9.2-3build1"
},
{
"binary_name": "antlr4-maven-plugin",
"binary_version": "4.9.2-3build1"
},
{
"binary_name": "libantlr4-runtime-java",
"binary_version": "4.9.2-3build1"
}
]
}
}
],
"modified": "2026-10-17T12:58:45.780187643Z",
"provider": "osv",
"upstream": [
"CVE-2026-13500"
],
"references": [
"https://ubuntu.com/security/CVE-2026-13500",
"https://www.cve.org/CVERecord?id=CVE-2026-13500",
"https://github.com/wooyun123/wooyun/issues/4"
]
},
"related_cves": [
{
"value": "CVE-2026-13500",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 359021,
"published_at": "2026-06-28T15:16:00+00:00"
}