CVEfocus › CVE database › CVE-2023-49569

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

CVSS 9.8 CriticalEPSS 2.0% (higher than 81% of CVEs)Published 2024-01-12Updated 2024-11-14Assigner: Bitdefender

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.

CWE-22

What to do

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Debian, Go, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

3Fixed
4Fix pending
17Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 25.10golang-github-go-git-go-gitNot affected
vulnerable_code_not_present
Ubuntu 24.04golang-github-go-git-go-gitFix pending5.4.2-4ubuntu0.24.04.3+esm2 (Ubuntu Pro)UBUNTU-CVE-2023-49569
Ubuntu 22.04golang-github-go-git-go-gitFix pending5.4.2-3ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2023-49569
Debian 14golang-github-go-git-go-gitFixed5.11.0-1DEBIAN-CVE-2023-49569
Debian 13golang-github-go-git-go-gitFixed5.11.0-1DEBIAN-CVE-2023-49569
Debian 12golang-github-go-git-go-gitFix pendingDEBIAN-CVE-2023-49569
Red Hat Enterprise Linux 9grafanaNot affected
Red Hat Enterprise Linux 9grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafanaNot affected
Red Hat Enterprise Linux 8grafana-azure-monitorNot affected
Red Hat Enterprise Linux 8grafana-cloudwatchNot affected
Red Hat Enterprise Linux 8grafana-elasticsearchNot affected
Red Hat Enterprise Linux 8grafana-graphiteNot affected
Red Hat Enterprise Linux 8grafana-influxdbNot affected
Red Hat Enterprise Linux 8grafana-lokiNot affected
Red Hat Enterprise Linux 8grafana-mssqlNot affected
Red Hat Enterprise Linux 8grafana-mysqlNot affected
Red Hat Enterprise Linux 8grafana-opentsdbNot affected
Red Hat Enterprise Linux 8grafana-postgresNot affected
Red Hat Enterprise Linux 8grafana-prometheusNot affected
Red Hat Enterprise Linux 8grafana-selinuxNot affected
Red Hat Enterprise Linux 8grafana-stackdriverNot affected
Go librarygithub.com/go-git/go-git/v5Fixed5.11.0GO-2024-2456
Go librarygopkg.in/src-d/go-git.v4Fix pendingGO-2024-2456

What the vendor says

As published in the CVE record by Bitdefender, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Solution: An update to version 5.11 fixes the issue

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.