cve.bz

CVE-2023-49569 go-git project go-git: Path traversal

9.8 criticalEPSS 1.5%Fix available

Critical (9.8) in go-git project go-git. EPSS 1.5% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.11.0.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% (unchanged from 1.5% a week ago; 1.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 75th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2024-01-18. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-49569 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-49569?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-49569?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-49569 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
go-git_project:go-gitfrom 4.0.0 before 5.11.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-449p-3h89-pw88Gogithub.com/go-git/go-git/v5>=5.0.0 <5.11.05.11.0
GHSA-449p-3h89-pw88Gogopkg.in/src-d/go-git.v4>=4.0.0 <=4.13.1no fix published
GO-2024-2456Gogopkg.in/src-d/go-git.v4>=4.7.1no fix published
GO-2024-2456Gogithub.com/go-git/go-git/v5>=5.0.0 <5.11.05.11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-github-go-git-go-gitno fix listedDEBIAN-CVE-2023-49569
Debian13, 14golang-github-go-git-go-git5.11.0-1DEBIAN-CVE-2023-49569
UbuntuPro:22.04:LTSgolang-github-go-git-go-git5.4.2-3ubuntu0.1~esm1UBUNTU-CVE-2023-49569 USN-8088-1
UbuntuPro:24.04:LTSgolang-github-go-git-go-git5.4.2-4ubuntu0.24.04.3+esm2UBUNTU-CVE-2023-49569 USN-8088-1
Red Hatceph_storage:5.3::el8ceph, cephadm, librbd1 and 67 more2:16.2.10-266.el8cpRHSA-2024:4118
Red Hatceph_storage:5.3::el8ceph-ansible0:6.0.28.8-1.el8cpRHSA-2024:4118
Red Hatceph_storage:5.3::el9ceph, cephadm, librbd1 and 50 more2:16.2.10-266.el9cpRHSA-2024:4118
Red Hatceph_storage:6.1::el8ceph, librbd1, librgw2 and 51 more2:17.2.6-216.el8cpRHSA-2024:2631
Red Hatceph_storage:6.1::el9ceph, cephadm, librbd1 and 52 more2:17.2.6-216.el9cpRHSA-2024:2631
Red Hatceph_storage:7.1::el8ceph, librbd1, librgw2 and 51 more2:18.2.1-194.el8cpRHSA-2024:3925
Red Hatceph_storage:7.1::el8gperftools, gperftools-libs, gperftools-debugsource and 1 more1:2.7-9.el8cpRHSA-2024:3925
Red Hatceph_storage:7.1::el8liboath, oath-toolkit, liboath-debuginfo and 6 more0:2.6.2-3.el8cpRHSA-2024:3925
Red Hatceph_storage:7.1::el8libunwind, libunwind-debuginfo, libunwind-debugsource0:1.3.1-3.el8cpRHSA-2024:3925
Red Hatceph_storage:7.1::el8thrift, thrift-debuginfo, thrift-debugsource and 4 more0:0.13.0-2.el8cpRHSA-2024:3925
Red Hatceph_storage:7.1::el9ceph, cephadm, librbd1 and 53 more2:18.2.1-194.el9cpRHSA-2024:3925
Red Hatceph_storage:7.1::el9cephadm-ansible1:3.2.0-1.el9cpRHSA-2024:3925
1 more for Red Hat in the JSON and on Red Hat's page.
Azure Linux2cri-o1.22.3-12AZL-39592
Azure Linux2packer1.9.5-3AZL-33891
Azure Linux3packer1.9.5-1AZL-35098

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Critical.

Red Hat's statement

This problem only affects the go implementation and not the original git cli code. Applications using BoundOS or in-memory filesystems are not affected by this issue. Clients should be limited to connect to only trusted git servers to reduce the risk of compromise.

In OpenShift Container Platform (OCP) the vulnerable github.com/go-git/go-git/v5 Go package is used as a dependency in many components where the vulnerable function is not used, hence the impact by this vulnerability is reduced to Low.

In Openshift-Clients, the affected github.com/go-git/go-git/v5 is a transitive dependency and Openshift-Clients do not use the affected codebase of the go-git package. Hence, it is marked as Not Affected.

Red Hat's mitigation

In cases where a bump to the latest version of go-git is not possible, a recommendation to reduce the exposure of this threat is limiting its use to only trust-worthy Git servers.

ProductPackageStateAdvisory
Builds for Red Hat OpenShiftopenshift-builds-controller-containerFixed 2024-09-03RHSA-2024:6221
multicluster-globalhub 1.0 for RHEL 8multicluster-globalhub/multicluster-globalhub-grafana-rhel8:v1.0.2-4Fixed 2024-02-26RHSA-2024:0989
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-controller-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-git-cloner-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-image-bundler-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-image-processing-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-operator-bundle:v1.0.1-11Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-rhel8-operator:v1.0.1-6Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-waiters-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OPENSHIFT-BUILDS-1.0-RHEL-8openshift-builds/openshift-builds-webhook-rhel8:v1.0.1-4Fixed 2024-03-28RHSA-2024:1557
OpenShift Developer Tools and ServicesodoWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2hub-of-hubs-gitopsNot affected
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-engineAffected
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-engine-assisted-installer-reporterWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-engine-assisted-serviceWill not fix
Red Hat Advanced Cluster Management for Kubernetes 2multicluster-globalhub-grafanaAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/cluster-curator-controller-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/clusterlifecycle-state-metrics-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multiclusterhub-rhel8Not affected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/multicluster-operators-application-rhel8Not affected
161 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-49569.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON