p PatchFirst

CVE-2026-33762

CVE-2026-33762 · go-git: Missing validation decoding Index v4 files leads to panic

CVSS 2.8 · Low · EPSS 0.2% · Fix available

Compare with your installed version

Affected products and known fixed versions are public information. Compare them with your installed version.

Check the installed version:

dpkg-query -W -f='${source:Package} ${binary:Package} ${Version}\n' | awk '$1=="golang-github-go-git-go-git"'

Assess your server’s risks

The free check gives you a rating and a risk summary by technology stack, without signing up. It does not answer whether this particular vulnerability affects you.

Monitoring matches public information against your servers’ software. Detailed findings for your servers include the order of updates.

curl -fsSL https://patchfirst.dev/check.sh | sh
Check your server for free →

Channels carry general technology news; monitoring reports new findings on your servers in your dashboard, through browser notifications, in Telegram or via a webhook.

This page contains facts from public vulnerability sources. Check the original advisory before updating.

go-git is an extensible git implementation library written in pure Go. Prior to version 5.17.1, go-git’s index decoder for format version 4 fails to validate the path name prefix length before applying it to the previously decoded path name. A maliciously crafted index file can trigger an out-of-bounds slice operation, resulting in a runtime panic during normal index parsing. This issue only affects Git index format version 4. Earlier formats (go-git supports only v2 and v3) are not vulnerable to this issue. This issue has been patched in version 5.17.1.

Published
Updated

Fixes in distributions

Stack: system

Affected products and versions

  • go-git

    Versions
    • < 5.17.1: Affected

    No fix published

  • golang-github-go-git-go-git Debian 12

    Versions
    • 5.11.0-1
    • 5.11.0-2
    • 5.11.0-3
    • 5.11.0-4
    • 5.12.0-1
    • 5.13.2-1
    All versions (15)
    • 5.14.0-1
    • 5.16.2-1
    • 5.17.0-1
    • 5.17.1-1
    • 5.19.1-1
    • 5.19.2-1
    • 5.19.2-2
    • 5.4.2-3
    • 5.4.2-4
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Debian 13

    Versions
    • 5.14.0-1
    • 5.16.2-1
    • 5.17.0-1
    • 5.17.1-1
    • 5.19.1-1
    • 5.19.2-1
    All versions (7)
    • 5.19.2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Debian 14

    Versions
    • 5.14.0-1
    • 5.16.2-1
    • 5.17.0-1
    Affected ranges
    • ECOSYSTEM: < 5.17.1-1

    Update to 5.17.1-1

  • golang-github-go-git-go-git Ubuntu Pro 22.04 LTS

    Versions
    • 5.4.2-3
    • 5.4.2-3ubuntu0.1~esm1
    • 5.4.2-3ubuntu0.1~esm2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Ubuntu Pro 24.04 LTS

    Versions
    • 5.4.2-3build1
    • 5.4.2-4
    • 5.4.2-4ubuntu0.24.04.1
    • 5.4.2-4ubuntu0.24.04.2
    • 5.4.2-4ubuntu0.24.04.2+esm1
    • 5.4.2-4ubuntu0.24.04.3
    All versions (9)
    • 5.4.2-4ubuntu0.24.04.3+esm1
    • 5.4.2-4ubuntu0.24.04.3+esm2
    • 5.4.2-4ubuntu0.24.04.3+esm3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Ubuntu 25.10

    Versions
    • 5.14.0-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Ubuntu 26.10

    Versions
    • 5.16.2-1
    • 5.19.1-1
    • 5.19.2-1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • golang-github-go-git-go-git Ubuntu Pro 26.04 LTS

    Versions
    • 5.14.0-1
    • 5.16.2-1
    • 5.16.2-1ubuntu0.1~esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →