antlr4 — security advisory
A vulnerability was detected in antlr ANTLR4 up to 4.13.2. Affected by this issue is the function getImportedVocabFile of the file tool/src/org/antlr/v4/parse/TokenVocabParser.java of the component tokenVocab Grammar Option Handler. The manipulation results in path traversal. The attack can be executed remotely. The exploit is now public and may be used. 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-13503
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 02:54 UTC · Revision 1
Source evidence
A vulnerability was detected in antlr ANTLR4 up to 4.13.2. Affected by this issue is the function getImportedVocabFile of the file tool/src/org/antlr/v4/parse/TokenVocabParser.java of the component tokenVocab Grammar Option Handler. The manipulation results in path traversal. The attack can be executed remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.
osv:UBUNTU-CVE-2026-13503
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": "16893e439c4a024633793fd592045050654b3dbf7c745647c2cdff795c8372c8",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-13503",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2026-13503",
"summary": "A vulnerability was detected in antlr ANTLR4 up to 4.13.2. Affected by this issue is the function getImportedVocabFile of the file tool/src/org/antlr/v4/parse/TokenVocabParser.java of the component tokenVocab Grammar Option Handler. The manipulation results in path traversal. The attack can be executed remotely. The exploit is now public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
"evidence": "osv:UBUNTU-CVE-2026-13503",
"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": "medium",
"structured": {
"id": "UBUNTU-CVE-2026-13503",
"aliases": [
"UBUNTU-CVE-2026-13503"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/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-13503.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-13503.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-13503.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-13503.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-13503.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-13503.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-13503.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-13503.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:59:52.716999911Z",
"provider": "osv",
"upstream": [
"CVE-2026-13503"
],
"references": [
"https://ubuntu.com/security/CVE-2026-13503",
"https://www.cve.org/CVERecord?id=CVE-2026-13503",
"https://github.com/wooyun123/wooyun/issues/8"
]
},
"related_cves": [
{
"value": "CVE-2026-13503",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/1/score"
},
"source_id": "core-osv",
"document_id": 359837,
"published_at": "2026-06-28T16:16:00+00:00"
}