CVE-2023-49568: Maliciously crafted Git server replies can cause DoS on go-git clients

Published Dec 27, 2023
·
Updated

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

Patches Users running versions of go-git from v4 and above are recommended to upgrade to v5.11 in order to mitigate this vulnerability.

Workarounds In cases where a bump to the latest version of go-git is not possible, we recommend limiting its use to only trust-worthy Git servers.

Credit Thanks to Ionut Lalu for responsibly disclosing this vulnerability to us.

References - GHSA-mw99-9chc-xw7r

Other sources

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.

— NVD

go-git is vulnerable to a denial of service, caused by improper input validation. By sending a specially crafted responses from a Git server, a remote attacker could exploit this vulnerability to trigger resource exhaustion in go-git clients, and results in a denial of service conditoin.

— IBM

Maliciously crafted Git server replies can cause DoS on go-git clients

— Microsoft

Affected Software

17 affected componentsFixes available
go/gopkg.in/src-d/go-git.v4>=4.7.1<=4.13.1
go/github.com/go-git/go-git/v5<5.11.0
5.11.0
go-git project Go-git Go>=4.0.0<5.11.0
IBM IBM® Db2® on Cloud Pak for Data and Db2 Warehouse on Cloud Pak for Data<=v3.5 through refresh 10v4.0 through refresh 9v4.5 through refresh 3v4.6 through refresh 6v4.7 through refresh 4v4.8 through refresh 4
Microsoft cbl2 packer 1.8.7-2
Microsoft cbl2 packer 1.9.5-3
Microsoft azl3 packer 1.9.5-1
Microsoft cbl2 cri-o 1.22.3-12
alpine/nfpm<2.35.2-r0
2.35.2-r0
alpine/nfpm<2.35.2-r0
2.35.2-r0
alpine/nfpm<2.35.2-r0
2.35.2-r0
alpine/nfpm<2.35.2-r0
2.35.2-r0
alpine/nfpm<2.35.2-r0
2.35.2-r0
redhat/go-git<5.11
5.11
debian/golang-github-go-git-go-git<=5.4.2-3
5.11.0-1
ubuntu/golang-github-go-git-go-git<5.4.2-3ubuntu0.1~esm1
5.4.2-3ubuntu0.1~esm1
ubuntu/golang-github-go-git-go-git<5.4.2-4ubuntu0.24.04.3+esm2
5.4.2-4ubuntu0.24.04.3+esm2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/github.com/go-git/go-git/v5 to a version that resolves this vulnerability.

    Fixed in 5.11.0
  2. Upgrade

    Upgrade alpine/nfpm to a version that resolves this vulnerability.

    Fixed in 2.35.2-r0
  3. Upgrade

    Upgrade redhat/go-git to a version that resolves this vulnerability.

    Fixed in 5.11
  4. Upgrade

    Upgrade debian/golang-github-go-git-go-git to a version that resolves this vulnerability.

    Fixed in 5.11.0-1
  5. Upgrade

    Upgrade ubuntu/golang-github-go-git-go-git to a version that resolves this vulnerability.

    Fixed in 5.4.2-3ubuntu0.1~esm1
  6. Upgrade

    Upgrade ubuntu/golang-github-go-git-go-git to a version that resolves this vulnerability.

    Fixed in 5.4.2-4ubuntu0.24.04.3+esm2
  7. Upgrade

    Upgrade go-git to a version that resolves this vulnerability.

    Fixed in v5.11
  8. Compensating control

    If upgrading to v5.11 is not possible, limit go-git usage to only trustworthy Git servers (applications using only the in-memory filesystem supported by go-git are not affected).

Event History

Dec 27, 2023
Advisory Published
03:06 PM
Data Sourced
03:06 PM
DescriptionSeverityAffected Software
Advisory Published
03:06 PM
Jan 11, 2024
Data Sourced
via GitHub·02:36 PM
DescriptionSeverityAffected Software
Jan 12, 2024
CVE Published
via MITRE·10:36 AM
Data Sourced
via MITRE·10:36 AM
RemedyDescriptionSeverityWeakness
Data Sourced
via OSV·11:15 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 AM
DescriptionSeverityWeakness
Data Sourced
via GitHub·04:32 PM
Weakness
Data Sourced
via Red Hat·11:32 PM
DescriptionSeverityAffected Software
Jan 22, 2024
Data Sourced
via NVD·05:57 PM
Affected Software
Updated
via NVD·05:57 PM
Severity
Jan 23, 2024
Updated
via GitHub·06:49 PM
Affected Software
Jan 26, 2024
Data Sourced
via Microsoft·08:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·08:00 AM
Affected Software
May 28, 2024
Data Sourced
via IBM·12:00 AM
DescriptionSeverityAffected Software
Nov 21, 2024
Updated
via NVD·08:33 AM
Affected Software
Jan 6, 2025
Updated
via GitHub·03:20 PM
Affected Software
Jun 17, 2026
Updated
via NVD·06:36 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2023-49568?

CVE-2023-49568 is classified as a denial of service (DoS) vulnerability.

2

How do I fix CVE-2023-49568?

To resolve CVE-2023-49568, upgrade to go-git version 5.11 or later.

3

Which versions of go-git are affected by CVE-2023-49568?

CVE-2023-49568 affects go-git versions before v5.11.

4

Can CVE-2023-49568 impact my application?

Yes, CVE-2023-49568 can lead to resource exhaustion resulting in a denial of service for applications using the affected versions of go-git.

5

What software products are affected by CVE-2023-49568?

CVE-2023-49568 impacts IBM Db2 on Cloud Pak for Data and multiple versions of go-git prior to v5.11.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203