Vulnerability · Published Jan 12, 2024 · Assigned by Bitdefender

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

Critical 9.8

In plain English

A critical-severity path traversal in go-git from go-git. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.5% (higher than 75% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)1.5%top 25.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2023-49569
Debian:13golang-github-go-git-go-git5.11.0-1DEBIAN-CVE-2023-49569
Debian:14golang-github-go-git-go-git5.11.0-1DEBIAN-CVE-2023-49569
Gogithub.com/go-git/go-git/v55.11.0GO-2024-2456
Gogithub.com/go-git/go-git/v55.11.0GHSA-449p-3h89-pw88
Gogopkg.in/src-d/go-git.v4no fix listedGO-2024-2456
Gogopkg.in/src-d/go-git.v4no fix listedGHSA-449p-3h89-pw88

Affected products (as reported)

VendorProductVersions
go-git go-git 5.11.0

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References