cve.bz

CVE-2023-49568 go-git project go-git: Improper Input Validation

7.5 highEPSS 0.7%Fix available

High (7.5) in go-git project go-git. EPSS 0.7% 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 denial of service (DoS) vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to perform denial of service attacks by providing specially crafted responses from a Git server which triggers resource exhaustion in go-git clients. Applications using only the in-memory filesystem supported by go-git are not affected by this vulnerability. This is a go-git implementation issue and does not affect the upstream git cli.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th 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: no · Technical impact: partial, assessed 2024-01-12. 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-20 Improper Input Validation
OWASP Top 10
A05:2025 Injection
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-49568 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-49568?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-49568?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-49568 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-mw99-9chc-xw7rGogithub.com/go-git/go-git/v5<5.11.05.11.0
GHSA-mw99-9chc-xw7rGogopkg.in/src-d/go-git.v4>=4.7.1 <=4.13.1no fix published
GO-2024-2466Gogopkg.in/src-d/go-git.v4>=4.7.1no fix published
GO-2024-2466Gogithub.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-49568
Debian13, 14golang-github-go-git-go-git5.11.0-1DEBIAN-CVE-2023-49568
UbuntuPro:22.04:LTSgolang-github-go-git-go-git5.4.2-3ubuntu0.1~esm1UBUNTU-CVE-2023-49568 USN-8088-1
UbuntuPro:24.04:LTSgolang-github-go-git-go-git5.4.2-4ubuntu0.24.04.3+esm2UBUNTU-CVE-2023-49568 USN-8088-1
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
Red Hatserverless:1.0::el8openshift-serverless-clients0:1.10.0-6.el8RHSA-2024:0880
Alpinev3.20, v3.21, v3.22 and 2 morenfpm2.35.2-r0ALPINE-CVE-2023-49568
Azure Linux2cri-o1.22.3-12AZL-39595
Azure Linux2packer1.9.5-3AZL-33892
Azure Linux3packer1.9.5-1AZL-35095

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; the Alpine secdb, CC BY-SA 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 · Alpine.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This problem only affects the go implementation and not the original git cli code. Applications using only 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.

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
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 Serverless 1 on RHEL 8openshift-serverless-clients-0:1.10.0-6.el8Fixed 2024-02-20RHSA-2024:0880
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
135 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-49568.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).

References

Check your stackJSON