UBUNTU-CVE-2026-45570 (CVE-2026-45570)
Vulnerability from osv_ubuntu – Published: 2026-05-27 15:16 – Updated: 2026-07-02 16:14 – Source websitego-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.
{
"affected": [
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "go-git",
"binary_version": "5.4.2-3ubuntu0.1~esm2"
},
{
"binary_name": "golang-github-go-git-go-git-dev",
"binary_version": "5.4.2-3ubuntu0.1~esm2"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:22.04:LTS",
"name": "golang-github-go-git-go-git",
"purl": "pkg:deb/ubuntu/golang-github-go-git-go-git@5.4.2-3ubuntu0.1~esm2?arch=source\u0026distro=esm-apps/jammy"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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-4ubuntu0.24.04.3+esm3"
},
{
"binary_name": "golang-github-go-git-go-git-dev",
"binary_version": "5.4.2-4ubuntu0.24.04.3+esm3"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:24.04:LTS",
"name": "golang-github-go-git-go-git",
"purl": "pkg:deb/ubuntu/golang-github-go-git-go-git@5.4.2-4ubuntu0.24.04.3+esm3?arch=source\u0026distro=esm-apps/noble"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"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_name": "go-git",
"binary_version": "5.14.0-1"
},
{
"binary_name": "golang-github-go-git-go-git-dev",
"binary_version": "5.14.0-1"
}
]
},
"package": {
"ecosystem": "Ubuntu:25.10",
"name": "golang-github-go-git-go-git",
"purl": "pkg:deb/ubuntu/golang-github-go-git-go-git@5.14.0-1?arch=source\u0026distro=questing"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.14.0-1"
]
},
{
"ecosystem_specific": {
"binaries": [
{
"binary_name": "go-git",
"binary_version": "5.16.2-1ubuntu0.1~esm1"
},
{
"binary_name": "golang-github-go-git-go-git-dev",
"binary_version": "5.16.2-1ubuntu0.1~esm1"
}
]
},
"package": {
"ecosystem": "Ubuntu:Pro:26.04:LTS",
"name": "golang-github-go-git-go-git",
"purl": "pkg:deb/ubuntu/golang-github-go-git-go-git@5.16.2-1ubuntu0.1~esm1?arch=source\u0026distro=esm-apps/resolute"
},
"ranges": [
{
"events": [
{
"introduced": "0"
}
],
"type": "ECOSYSTEM"
}
],
"versions": [
"5.14.0-1",
"5.16.2-1",
"5.16.2-1ubuntu0.1~esm1"
]
}
],
"aliases": [],
"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\u0027s 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.",
"id": "UBUNTU-CVE-2026-45570",
"modified": "2026-07-02T16:14:46Z",
"published": "2026-05-27T15:16:00Z",
"references": [
{
"type": "REPORT",
"url": "https://ubuntu.com/security/CVE-2026-45570"
},
{
"type": "REPORT",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-45570"
},
{
"type": "REPORT",
"url": "https://github.com/go-git/go-git/security/advisories/GHSA-m7cr-m3pv-hgrp"
}
],
"related": [],
"schema_version": "1.7.0",
"severity": [
{
"score": "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",
"type": "CVSS_V4"
},
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "medium",
"type": "Ubuntu"
}
],
"upstream": [
"CVE-2026-45570"
]
}
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.