{"id":"UBUNTU-CVE-2026-13503","details":"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.","modified":"2026-06-29T23:15:34.547235866Z","published":"2026-06-28T16:16:00Z","upstream":["CVE-2026-13503"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-13503"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-13503"},{"type":"REPORT","url":"https://github.com/wooyun123/wooyun/issues/8"}],"affected":[{"package":{"name":"antlr4","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.1-1","4.5.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"4.5.1-2","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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.5.3-2","4.7.2-1~18.04"],"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_version":"4.7.2-1~18.04","binary_name":"libantlr4-runtime-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-1","4.7.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"antlr4","binary_version":"4.7.2-2"},{"binary_version":"4.7.2-2","binary_name":"antlr4-maven-plugin"},{"binary_name":"libantlr4-runtime-java","binary_version":"4.7.2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-5"],"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.7.2-5","4.9.2-2"],"ecosystem_specific":{"binaries":[{"binary_name":"antlr4","binary_version":"4.9.2-2"},{"binary_name":"antlr4-maven-plugin","binary_version":"4.9.2-2"},{"binary_version":"4.9.2-2","binary_name":"libantlr4-runtime-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3"],"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"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}},{"package":{"name":"antlr4","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/antlr4?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["4.9.2-3","4.9.2-3build1"],"ecosystem_specific":{"binaries":[{"binary_name":"antlr4","binary_version":"4.9.2-3build1"},{"binary_version":"4.9.2-3build1","binary_name":"antlr4-maven-plugin"},{"binary_version":"4.9.2-3build1","binary_name":"libantlr4-runtime-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13503.json"}}],"schema_version":"1.7.5","severity":[{"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"}]}