Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS00NDlwLTNoODktcHc4OM4AA4Vg
Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Impact
A path traversal vulnerability was discovered in go-git versions prior to v5.11
. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved.
Applications are only affected if they are using the ChrootOS, which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS or in-memory filesystems are not affected by this issue.
This is a go-git
implementation issue and does not affect the upstream git
cli.
Patches
Users running versions of go-git
from v4
and above are recommended to upgrade to v5.11
in order to mitigate this vulnerability.
Workarounds
In cases where a bump to the latest version of go-git
is not possible in a timely manner, we recommend limiting its use to only trust-worthy Git servers.
Credit
Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.
Permalink: https://github.com/advisories/GHSA-449p-3h89-pw88JSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS00NDlwLTNoODktcHc4OM4AA4Vg
Source: GitHub Advisory Database
Origin: Unspecified
Severity: Critical
Classification: General
Published: 11 months ago
Updated: 10 months ago
CVSS Score: 9.8
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Identifiers: GHSA-449p-3h89-pw88, CVE-2023-49569
References:
- https://github.com/go-git/go-git/security/advisories/GHSA-449p-3h89-pw88
- https://nvd.nist.gov/vuln/detail/CVE-2023-49569
- https://github.com/advisories/GHSA-449p-3h89-pw88
Blast Radius: 40.5
Affected Packages
go:gopkg.in/src-d/go-git.v4
Dependent packages: 6,399Dependent repositories: 7,932
Downloads:
Affected Version Ranges: >= 4.7.1
No known fixed version
All affected versions: 4.7.1, 4.8.0, 4.8.1, 4.9.0, 4.9.1, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.13.1
go:github.com/go-git/go-git/v5
Dependent packages: 8,164Dependent repositories: 13,417
Downloads:
Affected Version Ranges: >= 5.0.0, < 5.11.0
Fixed in: 5.11.0
All affected versions: 5.0.0, 5.1.0, 5.2.0, 5.3.0, 5.4.0, 5.4.1, 5.4.2, 5.5.0, 5.5.1, 5.5.2, 5.6.0, 5.6.1, 5.7.0, 5.8.0, 5.8.1, 5.9.0, 5.10.0, 5.10.1
All unaffected versions: 5.11.0, 5.12.0
go:github.com/go-git/go-git/v4
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: >= 4.0.0, <= 4.13.1
No known fixed version
All affected versions: 4.0.0, 4.1.0, 4.1.1, 4.2.0, 4.2.1, 4.3.0, 4.3.1, 4.4.0, 4.4.1, 4.5.0, 4.6.0, 4.7.0, 4.7.1, 4.8.0, 4.8.1, 4.9.0, 4.9.1, 4.10.0, 4.11.0, 4.12.0, 4.13.0, 4.13.1