GHSA-w5pp-99ch-qj29
ADVISORY - githubSummary
Impact
Several denial-of-service issues were identified in go-git when parsing maliciously crafted Git repository data.
An attacker may craft a malicious .pack, .idx or loose objects that causes an application using an affected version of go-git to panic or consume excessive resources.
This can lead to denial of service in applications that use go-git to clone, fetch, open, or otherwise process untrusted repositories or Git object data.
Exploitation requires the ability to alter read-only files such as .pack or .idx from the local repository's .git/objects/pack/ directory. Alternatively, the user would need to be interacting with a malicious remote server, which is not recommended and exposes users to a broader class of security risks beyond this issue.
Patches
Users should upgrade to a patched version in order to mitigate this vulnerability. Versions prior to v5 are likely to be affected, users are recommended to upgrade to a supported go-git version.
Credits
go-git thanks @kodareef5, @AyushParkara and @N0zoM1z0 for reporting this in four separate reports. 🙇
Common Weakness Enumeration (CWE)
Uncontrolled Resource Consumption
GitHub
2.8
CVSS SCORE
6.5medium| Package | Type | OS Name | OS Version | Affected Ranges | Fix Versions |
|---|---|---|---|---|---|
| github.com/go-git/go-git/v5 | golang | - | - | <=5.19.0 | 5.19.1 |
| github.com/go-git/go-git/v5 | golang | - | - | <0.0.0-20260518201055-3c3be601aa6c | 0.0.0-20260518201055-3c3be601aa6c |
| github.com/go-git/go-git/v6 | golang | - | - | <=6.0.0-alpha.3 | 6.0.0-alpha.4 |
| github.com/go-git/go-git/v6 | golang | - | - | <0.0.0-20260518135925-d9a698310823 | 0.0.0-20260518135925-d9a698310823 |
CVSS:3 Severity and metrics
The CVSS metrics represent different qualitative aspects of a vulnerability that impact the overall score, as defined by the CVSS Specification.
The vulnerable component is bound to the network stack, but the attack is limited at the protocol level to a logically adjacent topology. This can mean an attack must be launched from the same shared physical (e.g., Bluetooth or IEEE 802.11) or logical (e.g., local IP subnet) network, or from within a secure or otherwise limited administrative domain (e.g., MPLS, secure VPN to an administrative network zone). One example of an Adjacent attack would be an ARP (IPv4) or neighbor discovery (IPv6) flood leading to a denial of service on the local LAN segment (e.g., CVE-2013-6014).
Specialized access conditions or extenuating circumstances do not exist. An attacker can expect repeatable success when attacking the vulnerable component.
The attacker is unauthorized prior to attack, and therefore does not require any access to settings or files of the vulnerable system to carry out an attack.
Successful exploitation of this vulnerability requires a user to take some action before the vulnerability can be exploited. For example, a successful exploit may only be possible during the installation of an application by a system administrator.
An exploited vulnerability can only affect resources managed by the same security authority. In this case, the vulnerable component and the impacted component are either the same, or both are managed by the same security authority.
There is no loss of confidentiality.
There is no loss of trust or accuracy within the impacted component.
There is a total loss of availability, resulting in the attacker being able to fully deny access to resources in the impacted component; this loss is either sustained (while the attacker continues to deliver the attack) or persistent (the condition persists even after the attack has completed). Alternatively, the attacker has the ability to deny some availability, but the loss of availability presents a direct, serious consequence to the impacted component.
GoLang
-
Chainguard
CGA-fxgm-4x24-xcgf
-
minimos
MINI-22x3-fvg3-5qr8
-
minimos
MINI-2638-6jr9-3j53
-
minimos
MINI-28m3-w39x-f5w7
-
minimos
MINI-28q9-8347-8f65
-
minimos
MINI-29rc-v9c3-5v8c
-
minimos
MINI-2ffp-26cx-p95j
-
minimos
MINI-2jjx-24hw-9ccw
-
minimos
MINI-2jmj-259v-5mq8
-
minimos
MINI-2jpj-mw28-phch
-
minimos
MINI-338g-mh86-r227
-
minimos
MINI-33mg-rpjc-rrw8
-
minimos
MINI-38vp-v757-37pf
-
minimos
MINI-3979-5phm-2pq8
-
minimos
MINI-3ghh-6wr4-jf47
-
minimos
MINI-3hh6-7xw5-x8cj
-
minimos
MINI-4337-7hh8-cp2q
-
minimos
MINI-43gc-58g5-7vwh
-
minimos
MINI-48q9-25gr-98rg
-
minimos
MINI-4c5j-rp5j-6v55
-
minimos
MINI-4g22-vj8m-66hr
-
minimos
MINI-4hq2-h242-vxp7
-
minimos
MINI-4jh3-6m7v-7797
-
minimos
MINI-4wfh-vpmv-g959
-
minimos
MINI-4wmh-crh9-8jx4
-
minimos
MINI-53c4-p9ph-qr9r
-
minimos
MINI-53qp-4phg-qh6g
-
minimos
MINI-547g-phwp-3977
-
minimos
MINI-54wm-rxv9-v696
-
minimos
MINI-5c7p-fgff-3gg4
-
minimos
MINI-5pp9-pj77-8gxm
-
minimos
MINI-5qc4-g8fm-2368
-
minimos
MINI-5qvw-vc3x-vpjc
-
minimos
MINI-5xrr-9xg3-jgcp
-
minimos
MINI-623f-xffw-6qp4
-
minimos
MINI-626q-6cp2-gvx3
-
minimos
MINI-64m8-33f5-p3pp
-
minimos
MINI-686m-2mcr-3cm3
-
minimos
MINI-6c9f-rc56-4fgj
-
minimos
MINI-6cv7-jfc3-76r6
-
minimos
MINI-6f82-56p2-qcxc
-
minimos
MINI-6fq9-5g36-724h
-
minimos
MINI-6m3m-7c55-7hjg
-
minimos
MINI-6q95-v7h2-w77x
-
minimos
MINI-6qgw-wq37-6vcg
-
minimos
MINI-6rx3-3696-8cmr
-
minimos
MINI-6vmf-w8pm-3q3p
-
minimos
MINI-6wjc-qqq3-534c
-
minimos
MINI-6wrw-j4w8-m2p2
-
minimos
MINI-6x27-7cxq-887w
-
minimos
MINI-7485-rcp2-vg63
-
minimos
MINI-756v-x8h4-r6rc
-
minimos
MINI-78cm-vf87-fwcg
-
minimos
MINI-78gw-93v4-6f69
-
minimos
MINI-78xh-f7pv-vrf7
-
minimos
MINI-7h2p-79rr-43fc
-
minimos
MINI-7r5f-v589-3fw5
-
minimos
MINI-7vh8-v465-qv5x
-
minimos
MINI-82jg-mv7p-cc5v
-
minimos
MINI-85fc-w86p-q457
-
minimos
MINI-868m-fjg9-3qpc
-
minimos
MINI-86g8-h2cg-3fc3
-
minimos
MINI-8873-f57v-57h3
-
minimos
MINI-88w2-vfpv-xw35
-
minimos
MINI-8pjh-4mqp-qp9j
-
minimos
MINI-8rrg-p6jv-q864
-
minimos
MINI-8vrw-gcrx-gg7x
-
minimos
MINI-8xgm-vg4x-qh2c
-
minimos
MINI-93cx-q4g5-77w5
-
minimos
MINI-93rp-wxv4-8356
-
minimos
MINI-964m-hm5q-263c
-
minimos
MINI-9gcw-2c8j-fc65
-
minimos
MINI-9jg7-854q-37hg
-
minimos
MINI-9qpg-c856-29f4
-
minimos
MINI-9vx7-5qv6-q3q6
-
minimos
MINI-c8j3-vxjw-76f4
-
minimos
MINI-cf75-cr2p-wwfh
-
minimos
MINI-cm77-rrq5-rm45
-
minimos
MINI-cq56-r2g2-pjmq
-
minimos
MINI-f2wg-3crm-fwq2
-
minimos
MINI-f5w6-5mp7-m579
-
minimos
MINI-f9g9-4v39-c9rc
-
minimos
MINI-f9rg-5qwg-wqr5
-
minimos
MINI-ff3v-h5wj-qc69
-
minimos
MINI-ff8g-c3r7-5w2x
-
minimos
MINI-fhj6-g77p-9pxh
-
minimos
MINI-fppj-v6qf-vff4
-
minimos
MINI-fv3p-q8hm-v38r
-
minimos
MINI-fw6m-32vp-rrgw
-
minimos
MINI-fwmp-5cmm-vh5g
-
minimos
MINI-g2x8-ccr3-29qf
-
minimos
MINI-g3xx-hqjm-65gw
-
minimos
MINI-g4vf-mch7-385w
-
minimos
MINI-g6cq-hg36-6xc6
-
minimos
MINI-g7fr-w564-xgg7
-
minimos
MINI-g9x5-9m3g-425j
-
minimos
MINI-gmp8-cvm7-vjxp
-
minimos
MINI-grp5-9rr6-f793
-
minimos
MINI-h2f2-5h93-q6mp
-
minimos
MINI-h2v3-cmjj-jv2w
-
minimos
MINI-h69m-mxjf-3q8q
-
minimos
MINI-h7h6-gqx8-m68f
-
minimos
MINI-h9xc-rx9w-4prj
-
minimos
MINI-hcm3-m7qh-g379
-
minimos
MINI-hg86-h6qc-qg5h
-
minimos
MINI-hjwx-3jfh-h9xp
-
minimos
MINI-hrc3-65r2-992h
-
minimos
MINI-hvmm-x775-x8g5
-
minimos
MINI-j348-pqrp-77w5
-
minimos
MINI-j4gq-3337-5rvp
-
minimos
MINI-j5wj-f2qq-3qq6
-
minimos
MINI-j85x-phm2-w32h
-
minimos
MINI-j92j-r4gv-6hrp
-
minimos
MINI-jchq-cgxw-wcxr
-
minimos
MINI-jcq2-5p9q-79c6
-
minimos
MINI-jgm5-m4rf-wf64
-
minimos
MINI-jpfv-4qf8-3f3q
-
minimos
MINI-m362-prqh-8h3f
-
minimos
MINI-m44h-hhhj-cj8f
-
minimos
MINI-m4cf-q63h-wq6r
-
minimos
MINI-m5rr-mr9g-f74f
-
minimos
MINI-m67x-57hj-chgx
-
minimos
MINI-m7j3-f7qw-hwj7
-
minimos
MINI-m8rh-cpx6-qx3m
-
minimos
MINI-mgr2-626v-wxw4
-
minimos
MINI-mrj8-8fw4-m4q2
-
minimos
MINI-mvrh-wj7w-q2w8
-
minimos
MINI-p22v-rrvp-43xh
-
minimos
MINI-p3c6-3p53-266f
-
minimos
MINI-p4p4-xvj6-phm4
-
minimos
MINI-pc3c-7f7j-7v38
-
minimos
MINI-pcj2-gm6g-969m
-
minimos
MINI-pcvv-9w45-wx88
-
minimos
MINI-pf25-frpq-549g
-
minimos
MINI-pv7p-36vr-p572
-
minimos
MINI-q2g3-gqq5-6xj4
-
minimos
MINI-q3r3-qjh9-xhfj
-
minimos
MINI-q6gq-cwfg-p7vx
-
minimos
MINI-q777-h28c-h395
-
minimos
MINI-q92r-q9f9-rgwx
-
minimos
MINI-qf7g-v3v8-39mp
-
minimos
MINI-qf8h-f5fq-fv4c
-
minimos
MINI-qhxj-c2x6-7qhp
-
minimos
MINI-qj58-fj69-4g7c
-
minimos
MINI-qjpg-5xw6-7hr6
-
minimos
MINI-qw54-wqmx-fcc2
-
minimos
MINI-qwrr-x5wx-59q5
-
minimos
MINI-r7x9-48g6-6rhm
-
minimos
MINI-rwpr-4gpc-r6cm
-
minimos
MINI-v3q4-8595-9jx2
-
minimos
MINI-v4fc-5p3j-h9v5
-
minimos
MINI-v74c-w59f-r8gh
-
minimos
MINI-v798-rf85-r59v
-
minimos
MINI-v7mq-7x27-xxhm
-
minimos
MINI-vg2p-gc35-4jwq
-
minimos
MINI-vhj9-29v4-95v6
-
minimos
MINI-vmmq-758w-c8fx
-
minimos
MINI-vp64-f75r-cpww
-
minimos
MINI-vq8g-w5cc-g56x
-
minimos
MINI-vwfv-9vx6-2g87
-
minimos
MINI-vwxw-jqqw-rffp
-
minimos
MINI-vx7c-cvwg-r23v
-
minimos
MINI-vxr6-x887-348j
-
minimos
MINI-w5m8-6gcw-x3hv
-
minimos
MINI-w62f-5c6f-r778
-
minimos
MINI-w738-7vxx-8fxp
-
minimos
MINI-wc4h-fmvr-m5v6
-
minimos
MINI-whmf-x4w4-6gqj
-
minimos
MINI-wp57-w655-wf8r
-
minimos
MINI-wvc8-h356-3w6w
-
minimos
MINI-x244-2mhx-rvj9
-
minimos
MINI-xqp7-57wc-2vcj
-
minimos
MINI-xwr2-3c5j-9vf4
-
minimos
MINI-xwrj-38wx-5mfr
-
minimos
MINI-xx6h-32h4-m5v2
-
minimos
MINI-xxg2-pchv-78gp
-