Skip to content

Commit daa692b

Browse files
authored
fix(deps): update module github.com/go-git/go-git/v6 to v6.0.0-alpha.3 [security] (#5335)
This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/go-git/go-git/v6](https://redirect.github.com/go-git/go-git) | `v6.0.0-alpha.2` → `v6.0.0-alpha.3` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fgo-git%2fgo-git%2fv6/v6.0.0-alpha.3?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fgo-git%2fgo-git%2fv6/v6.0.0-alpha.2/v6.0.0-alpha.3?slim=true) | --- ### go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git [CVE-2026-45022](https://nvd.nist.gov/vuln/detail/CVE-2026-45022) / [GHSA-389r-gv7p-r3rp](https://redirect.github.com/advisories/GHSA-389r-gv7p-r3rp) <details> <summary>More information</summary> #### Details ##### Impact `go-git` may parse malformed Git objects in a way that differs from upstream Git. When `commit` or `tag` objects contain ambiguous or malformed headers, `go-git`’s decoded representation may expose values differently from how Git itself would interpret or reject the same object. Additionally, `go-git`’s commit signing and verification logic operates over commit data reconstructed from `go-git`’s parsed representation rather than the original raw object bytes. As a result, `go-git` may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed. ##### 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. ##### Credit Thanks to @&#8203;bugbunny-research (https://bugbunny.ai/) for reporting this to `sigstore/gitsign`, and to @&#8203;wlynch, @&#8203;patzielinski and @&#8203;adityasaky for coordinating the disclosure with the `go-git` project. 🙇 🥇 Thanks to @&#8203;wayphinder for reporting this to the `go-git` project. :bow: #### Severity - CVSS Score: 7.0 / 10 (High) - Vector String: `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N` #### References - [https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp](https://redirect.github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp) - [https://github.com/advisories/GHSA-389r-gv7p-r3rp](https://redirect.github.com/advisories/GHSA-389r-gv7p-r3rp) This data is provided by the [GitHub Advisory Database](https://redirect.github.com/advisories/GHSA-389r-gv7p-r3rp) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### go-git's improper parsing of specially crafted objects may lead to inconsistent interpretation compared to upstream Git [CVE-2026-45022](https://nvd.nist.gov/vuln/detail/CVE-2026-45022) / [GHSA-389r-gv7p-r3rp](https://redirect.github.com/advisories/GHSA-389r-gv7p-r3rp) <details> <summary>More information</summary> #### Details ##### Impact `go-git` may parse malformed Git objects in a way that differs from upstream Git. When `commit` or `tag` objects contain ambiguous or malformed headers, `go-git`’s decoded representation may expose values differently from how Git itself would interpret or reject the same object. Additionally, `go-git`’s commit signing and verification logic operates over commit data reconstructed from `go-git`’s parsed representation rather than the original raw object bytes. As a result, `go-git` may sign or verify a commit payload that is not byte-for-byte equivalent to the object stored in the repository. This can cause a signature to appear valid for a commit whose displayed or effective metadata differs from the object that was intended to be signed. ##### 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. ##### Credit Thanks to @&#8203;bugbunny-research (https://bugbunny.ai/) for reporting this to `sigstore/gitsign`, and to @&#8203;wlynch, @&#8203;patzielinski and @&#8203;adityasaky for coordinating the disclosure with the `go-git` project. 🙇 🥇 Thanks to @&#8203;wayphinder for reporting this to the `go-git` project. :bow: #### Severity - CVSS Score: 7.0 / 10 (High) - Vector String: `CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:N/VI:H/VA:N/SC:N/SI:H/SA:N` #### References - [https://github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp](https://redirect.github.com/go-git/go-git/security/advisories/GHSA-389r-gv7p-r3rp) - [https://github.com/go-git/go-git](https://redirect.github.com/go-git/go-git) This data is provided by [OSV](https://osv.dev/vulnerability/GHSA-389r-gv7p-r3rp) and the [GitHub Advisory Database](https://redirect.github.com/github/advisory-database) ([CC-BY 4.0](https://redirect.github.com/github/advisory-database/blob/main/LICENSE.md)). </details> --- ### Release Notes <details> <summary>go-git/go-git (github.com/go-git/go-git/v6)</summary> ### [`v6.0.0-alpha.3`](https://redirect.github.com/go-git/go-git/releases/tag/v6.0.0-alpha.3) [Compare Source](https://redirect.github.com/go-git/go-git/compare/v6.0.0-alpha.2...v6.0.0-alpha.3) #### What's Changed - plumbing: transport, add git-upload-archive support by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;1986](https://redirect.github.com/go-git/go-git/pull/1986) - utils: sync, Make zlib compression pluggable via x/plugin by [@&#8203;stiak](https://redirect.github.com/stiak) in [#&#8203;2012](https://redirect.github.com/go-git/go-git/pull/2012) - build: establish DCO sign-off requirement for all contributions by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;1914](https://redirect.github.com/go-git/go-git/pull/1914) - docs: update `CONTRIBUTING.md`, `README.md` and add `HISTORY.md` by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;1946](https://redirect.github.com/go-git/go-git/pull/1946) - storage: filesystem, close packfile iterators after use by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;2027](https://redirect.github.com/go-git/go-git/pull/2027) - Add .github/copilot-instructions.md with PR review guidelines by [@&#8203;Copilot](https://redirect.github.com/Copilot) in [#&#8203;2040](https://redirect.github.com/go-git/go-git/pull/2040) - docs: update comment to reflect support for the last 2 stable Go versions by [@&#8203;alexandear](https://redirect.github.com/alexandear) in [#&#8203;2041](https://redirect.github.com/go-git/go-git/pull/2041) - \*: clone, resolve relative local URLs against CWD in CloneOptions.Validate by [@&#8203;AriehSchneier](https://redirect.github.com/AriehSchneier) in [#&#8203;1891](https://redirect.github.com/go-git/go-git/pull/1891) - SHA256: Support submodules in SHA256 repositories by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;1979](https://redirect.github.com/go-git/go-git/pull/1979) - plumbing: ssh, fix concurrent test failures due to cert key generation by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;2043](https://redirect.github.com/go-git/go-git/pull/2043) - storage: filesystem, dedupe object iteration by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;2042](https://redirect.github.com/go-git/go-git/pull/2042) - build: Update module github.com/go-git/go-git-fixtures/v6 to v6.0.0-20260422085740-0c07409f52ec (main) by [@&#8203;go-git-renovate](https://redirect.github.com/go-git-renovate)\[bot] in [#&#8203;2045](https://redirect.github.com/go-git/go-git/pull/2045) - Implement Git-compatible wildmatch for gitignore patterns by [@&#8203;AriehSchneier](https://redirect.github.com/AriehSchneier) in [#&#8203;1940](https://redirect.github.com/go-git/go-git/pull/1940) - git: worktree, fix treeContainsDirs test to build a new tree for each… by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;2047](https://redirect.github.com/go-git/go-git/pull/2047) - \_examples: remove deprecated usage of io/ioutil by [@&#8203;alexandear](https://redirect.github.com/alexandear) in [#&#8203;2046](https://redirect.github.com/go-git/go-git/pull/2046) - plumbing: transport/upload\_pack multi round bugs by [@&#8203;manland](https://redirect.github.com/manland) in [#&#8203;2016](https://redirect.github.com/go-git/go-git/pull/2016) - plumbing: filemode, fix typo in comment by [@&#8203;shawntoffel](https://redirect.github.com/shawntoffel) in [#&#8203;2003](https://redirect.github.com/go-git/go-git/pull/2003) - build: Update module github.com/go-git/go-billy/v6 to v6.0.0-20260424211911-732291493fb8 (main) by [@&#8203;go-git-renovate](https://redirect.github.com/go-git-renovate)\[bot] in [#&#8203;2051](https://redirect.github.com/go-git/go-git/pull/2051) - plumbing: packp, refactor AdvRefs and capability packages by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;1987](https://redirect.github.com/go-git/go-git/pull/1987) - worktree: skip ignored directories during Status walk by [@&#8203;Soph](https://redirect.github.com/Soph) in [#&#8203;2048](https://redirect.github.com/go-git/go-git/pull/2048) - build: Update module github.com/pjbgf/sha1cd to v0.6.0 (main) by [@&#8203;go-git-renovate](https://redirect.github.com/go-git-renovate)\[bot] in [#&#8203;2059](https://redirect.github.com/go-git/go-git/pull/2059) - internal: servers, add git server implementation by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;2014](https://redirect.github.com/go-git/go-git/pull/2014) - Remove use of `ChrootOS` by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;2061](https://redirect.github.com/go-git/go-git/pull/2061) - plumbing: transport, Align flush size with upstream git by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;2000](https://redirect.github.com/go-git/go-git/pull/2000) - internal: git, add server timeout test small tolerance by [@&#8203;aymanbagabas](https://redirect.github.com/aymanbagabas) in [#&#8203;2064](https://redirect.github.com/go-git/go-git/pull/2064) - Align object encoding with upstream by [@&#8203;pjbgf](https://redirect.github.com/pjbgf) in [#&#8203;2066](https://redirect.github.com/go-git/go-git/pull/2066) #### New Contributors - [@&#8203;Copilot](https://redirect.github.com/Copilot) made their first contribution in [#&#8203;2040](https://redirect.github.com/go-git/go-git/pull/2040) - [@&#8203;shawntoffel](https://redirect.github.com/shawntoffel) made their first contribution in [#&#8203;2003](https://redirect.github.com/go-git/go-git/pull/2003) **Full Changelog**: <go-git/go-git@v6.0.0-alpha.2...v6.0.0-alpha.3> </details> --- ### Configuration 📅 **Schedule**: (in timezone Australia/Sydney) - Branch creation - "" - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/google/osv.dev). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTkuMiIsInVwZGF0ZWRJblZlciI6IjQzLjE1OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIiwibGFiZWxzIjpbImRlcGVuZGVuY2llcyJdfQ==-->
1 parent e3657d0 commit daa692b

2 files changed

Lines changed: 11 additions & 11 deletions

File tree

go/go.mod

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ require (
1111
github.com/GoogleCloudPlatform/opentelemetry-operations-go/exporter/trace v1.32.0
1212
github.com/dgraph-io/ristretto/v2 v2.4.0
1313
github.com/dustin/go-humanize v1.0.1
14-
github.com/go-git/go-git/v6 v6.0.0-alpha.2
14+
github.com/go-git/go-git/v6 v6.0.0-alpha.3
1515
github.com/google/go-cmp v0.7.0
1616
github.com/google/osv-scalibr v0.4.5
1717
github.com/hashicorp/go-retryablehttp v0.7.8
@@ -63,7 +63,7 @@ require (
6363
github.com/envoyproxy/protoc-gen-validate v1.3.0 // indirect
6464
github.com/felixge/httpsnoop v1.0.4 // indirect
6565
github.com/go-git/gcfg/v2 v2.0.2 // indirect
66-
github.com/go-git/go-billy/v6 v6.0.0-20260328065524-593ae452e14d // indirect
66+
github.com/go-git/go-billy/v6 v6.0.0-20260424211911-732291493fb8 // indirect
6767
github.com/go-jose/go-jose/v4 v4.1.4 // indirect
6868
github.com/go-logr/logr v1.4.3 // indirect
6969
github.com/go-logr/stdr v1.2.2 // indirect
@@ -77,7 +77,7 @@ require (
7777
github.com/lucasb-eyer/go-colorful v1.4.0 // indirect
7878
github.com/mattn/go-runewidth v0.0.23 // indirect
7979
github.com/muesli/cancelreader v0.2.2 // indirect
80-
github.com/pjbgf/sha1cd v0.5.0 // indirect
80+
github.com/pjbgf/sha1cd v0.6.0 // indirect
8181
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 // indirect
8282
github.com/rivo/uniseg v0.4.7 // indirect
8383
github.com/sergi/go-diff v1.4.0 // indirect

go/go.sum

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -105,12 +105,12 @@ github.com/gliderlabs/ssh v0.3.8 h1:a4YXD1V7xMF9g5nTkdfnja3Sxy1PVDCj1Zg4Wb8vY6c=
105105
github.com/gliderlabs/ssh v0.3.8/go.mod h1:xYoytBv1sV0aL3CavoDuJIQNURXkkfPA/wxQ1pL1fAU=
106106
github.com/go-git/gcfg/v2 v2.0.2 h1:MY5SIIfTGGEMhdA7d7JePuVVxtKL7Hp+ApGDJAJ7dpo=
107107
github.com/go-git/gcfg/v2 v2.0.2/go.mod h1:/lv2NsxvhepuMrldsFilrgct6pxzpGdSRC13ydTLSLs=
108-
github.com/go-git/go-billy/v6 v6.0.0-20260328065524-593ae452e14d h1:bLMI9z4mKkfQO383+O3fkP4xdWQcMdnn5fFBMwaBC1M=
109-
github.com/go-git/go-billy/v6 v6.0.0-20260328065524-593ae452e14d/go.mod h1:LLeMBFApkgIKwMzirxpU9XB7NvO2HdTw5FXmeP1M6c8=
110-
github.com/go-git/go-git-fixtures/v6 v6.0.0-20260405195209-b16dd39735e0 h1:XoTsdvaghuVfIr7HpNTmFDLu2nz3I2iGqyn6Uk6MkJc=
111-
github.com/go-git/go-git-fixtures/v6 v6.0.0-20260405195209-b16dd39735e0/go.mod h1:1Lr7/vYEYyl6Ir9Ku0tKrCIRreM5zovv0Jdx2MPSM4s=
112-
github.com/go-git/go-git/v6 v6.0.0-alpha.2 h1:T3loNtDuAixNzXtlQxZhnYiYpaQ3CA4vn9RssAniEeI=
113-
github.com/go-git/go-git/v6 v6.0.0-alpha.2/go.mod h1:oCD3i19CTz7gBpeb11ZZqL91WzqbMq9avn5KpUYy/Ak=
108+
github.com/go-git/go-billy/v6 v6.0.0-20260424211911-732291493fb8 h1:QRpwB1ans3fB3Cmeuog1ATzvXg/xhqubqiQi97xNO6E=
109+
github.com/go-git/go-billy/v6 v6.0.0-20260424211911-732291493fb8/go.mod h1:CdBVp7CXl9l3sOyNEog46cP1Pvx/hjCe9AD0mtaIUYU=
110+
github.com/go-git/go-git-fixtures/v6 v6.0.0-20260422085740-0c07409f52ec h1:FpCNUs50xfQyJJs31uO3mDnqU855OhzAzfkkTgE6/DI=
111+
github.com/go-git/go-git-fixtures/v6 v6.0.0-20260422085740-0c07409f52ec/go.mod h1:F1SpxOny2UYXu62DzjEH4UqBjk4AoGs27cA8I9buK+o=
112+
github.com/go-git/go-git/v6 v6.0.0-alpha.3 h1:lJGritJ5AcC0X7buV0lReZ4cEHqcKB3Ab2ZjD3Ku+Ss=
113+
github.com/go-git/go-git/v6 v6.0.0-alpha.3/go.mod h1:DGnqu+twdAgtDx/4tQTWFrVE1an+2ACph3W9yOfSJZM=
114114
github.com/go-jose/go-jose/v4 v4.1.4 h1:moDMcTHmvE6Groj34emNPLs/qtYXRVcd6S7NHbHz3kA=
115115
github.com/go-jose/go-jose/v4 v4.1.4/go.mod h1:x4oUasVrzR7071A4TnHLGSPpNOm2a21K9Kf04k1rs08=
116116
github.com/go-logr/logr v1.2.2/go.mod h1:jdQByPbusPIv2/zmleS9BjJVeZ6kBagPoEUsqbVz/1A=
@@ -190,8 +190,8 @@ github.com/ossf/osv-schema/bindings/go v0.0.0-20260424063704-83285ce2a866 h1:Los
190190
github.com/ossf/osv-schema/bindings/go v0.0.0-20260424063704-83285ce2a866/go.mod h1:IrUa4QzZUi03J3WXDzZYXVawYipHownNfqqZrqeGXfg=
191191
github.com/package-url/packageurl-go v0.1.5 h1:O4efRXja2XQ5CtiiYiCZ22k/m7i5ugLiAghgcC+eDgk=
192192
github.com/package-url/packageurl-go v0.1.5/go.mod h1:nKAWB8E6uk1MHqiS/lQb9pYBGH2+mdJ2PJc2s50dQY0=
193-
github.com/pjbgf/sha1cd v0.5.0 h1:a+UkboSi1znleCDUNT3M5YxjOnN1fz2FhN48FlwCxs0=
194-
github.com/pjbgf/sha1cd v0.5.0/go.mod h1:lhpGlyHLpQZoxMv8HcgXvZEhcGs0PG/vsZnEJ7H0iCM=
193+
github.com/pjbgf/sha1cd v0.6.0 h1:3WJ8Wz8gvDz29quX1OcEmkAlUg9diU4GxJHqs0/XiwU=
194+
github.com/pjbgf/sha1cd v0.6.0/go.mod h1:lhpGlyHLpQZoxMv8HcgXvZEhcGs0PG/vsZnEJ7H0iCM=
195195
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10 h1:GFCKgmp0tecUJ0sJuv4pzYCqS9+RGSn52M3FUwPs+uo=
196196
github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10/go.mod h1:t/avpk3KcrXxUnYOhZhMXJlSEyie6gQbtLq5NM3loB8=
197197
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=

0 commit comments

Comments
 (0)