CVE-2023-49569

Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients

Published Jan 12, 2024 CVSS 3.1 · 9.8 Critical EPSS 1.5% KEV · Not listed
Description
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 https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#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.


Remediation

Vendor Solution

An update to version 5.11 fixes the issue

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2024-0238 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 https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#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.
Github GHSA Github GHSA GHSA-449p-3h89-pw88 Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients
Ubuntu USN Ubuntu USN USN-8088-1 go-git vulnerabilities
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:ceph_storage:6.1::el8
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift:4.15::el9
Type Values Removed Values Added
CPEs cpe:/a:redhat:openshift_builds:1.1::el9