UBUNTU-CVE-2026-45570

Source
https://ubuntu.com/security/CVE-2026-45570
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45570.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2026-45570
Upstream
Published
2026-05-27T15:16:00Z
Modified
2026-06-08T09:45:13.339855322Z
Severity
  • 2.3 (Low) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:L CVSS Calculator
  • 9.6 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

go-git is an extensible git implementation library written in pure Go. Prior to 5.19.1 and 6.0.0-alpha.4, go-git's SSH transport constructs the remote exec command by wrapping the repository path in single quotes without escaping single quotes embedded inside the path. A repository path containing a single quote can therefore break out of the quoted region in the exec command and be appended as additional shell tokens. This vulnerability is fixed in 5.19.1 and 6.0.0-alpha.4.

References

Affected packages

Ubuntu:25.10
golang-github-go-git-go-git

Package

Name
golang-github-go-git-go-git
Purl
pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=questing

Affected ranges

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

Affected versions

5.*
5.14.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "5.14.0-1",
            "binary_name": "go-git"
        },
        {
            "binary_name": "golang-github-go-git-go-git-dev",
            "binary_version": "5.14.0-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45570.json"
Ubuntu:26.04:LTS
golang-github-go-git-go-git

Package

Name
golang-github-go-git-go-git
Purl
pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=resolute

Affected ranges

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

Affected versions

5.*
5.14.0-1
5.16.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "5.16.2-1",
            "binary_name": "go-git"
        },
        {
            "binary_name": "golang-github-go-git-go-git-dev",
            "binary_version": "5.16.2-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45570.json"
Ubuntu:Pro:22.04:LTS
golang-github-go-git-go-git

Package

Name
golang-github-go-git-go-git
Purl
pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fjammy

Affected ranges

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

Affected versions

5.*
5.4.2-3
5.4.2-3ubuntu0.1~esm1
5.4.2-3ubuntu0.1~esm2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "go-git",
            "binary_version": "5.4.2-3ubuntu0.1~esm2"
        },
        {
            "binary_version": "5.4.2-3ubuntu0.1~esm2",
            "binary_name": "golang-github-go-git-go-git-dev"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-45570.json"
Ubuntu:Pro:24.04:LTS
golang-github-go-git-go-git

Package

Name
golang-github-go-git-go-git
Purl
pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fnoble

Affected ranges

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

Affected versions

5.*
5.4.2-3build1
5.4.2-4
5.4.2-4ubuntu0.24.04.1
5.4.2-4ubuntu0.24.04.2
5.4.2-4ubuntu0.24.04.2+esm1
5.4.2-4ubuntu0.24.04.3
5.4.2-4ubuntu0.24.04.3+esm1
5.4.2-4ubuntu0.24.04.3+esm2
5.4.2-4ubuntu0.24.04.3+esm3

Ecosystem specific

{
    "binaries": [
        {
            "binary_version": "5.4.2-4ubuntu0.24.04.3+esm3",
            "binary_name": "go-git"
        },
        {
            "binary_name": "golang-github-go-git-go-git-dev",
            "binary_version": "5.4.2-4ubuntu0.24.04.3+esm3"
        }
    ]
}

Database specific

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