UBUNTU-CVE-2026-13501

Source
https://ubuntu.com/security/CVE-2026-13501
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-13501
Upstream
  • CVE-2026-13501
Published
2026-06-28T15:16:00Z
Modified
2026-06-29T23:15:20.305830244Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L CVSS Calculator
  • 1.9 (Low) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

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.

References

Affected packages

Ubuntu:16.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.5.1-1
4.5.1-2

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json"
Ubuntu:18.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
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_name": "libantlr4-runtime-java",
            "binary_version": "4.7.2-1~18.04"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json"
Ubuntu:20.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.7.2-1
4.7.2-2

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json"
Ubuntu:22.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
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-13501.json"
Ubuntu:24.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
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_name": "libantlr4-runtime-java",
            "binary_version": "4.9.2-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json"
Ubuntu:25.10
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=questing

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
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-13501.json"
Ubuntu:26.04:LTS
antlr4

Package

Name
antlr4
Purl
pkg:deb/ubuntu/antlr4?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

4.*
4.9.2-3
4.9.2-3build1

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"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-13501.json"