Skip to content
Heist/ feed
Back to feed
MediumFix available

golang-github-go-git-go-git — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2026-25934

go-git is a highly extensible git implementation library written in pure Go. Prior to 5.16.5, a vulnerability was discovered in go-git whereby data integrity values for .pack and .idx files were not properly verified. This resulted in go-git potentially consuming corrupted files, which would likely result in unexpected errors such as object not found. For context, clients fetch packfiles from upstream Git servers. Those files contain a checksum of their contents, so that clients can perform integrity checks before consuming it. The pack indexes (.idx) are generated locally by go-git, or the git cli, when new .pack files are received and processed. The integrity checks for both files were not being verified correctly. This vulnerability is fixed in 5.16.5.

Products
golang-github-go-git-go-git
Affected versions
5.14.0-1, 5.16.2-1, 5.16.2-1ubuntu0.1~esm1, 5.19.1-1, 5.19.2-1, 5.4.2-3, 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, 5.4.2-4ubuntu0.24.04.3+esm1
Fixed versions
5.4.2-3ubuntu0.1~esm1, 5.4.2-4ubuntu0.24.04.3+esm2
CVEs
CVE-2026-25934
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:56 UTC · Revision 1

Source evidence

UBUNTU-CVE-2026-25934

core-osv · Original source

Published 9 Feb 2026, 23:16 UTC

go-git is a highly extensible git implementation library written in pure Go. Prior to 5.16.5, a vulnerability was discovered in go-git whereby data integrity values for .pack and .idx files were not properly verified. This resulted in go-git potentially consuming corrupted files, which would likely result in unexpected errors such as object not found. For context, clients fetch packfiles from upstream Git servers. Those files contain a checksum of their contents, so that clients can perform integrity checks before consuming it. The pack indexes (.idx) are generated locally by go-git, or the git cli, when new .pack files are received and processed. The integrity checks for both files were not being verified correctly. This vulnerability is fixed in 5.16.5.

osv:UBUNTU-CVE-2026-25934

golang-github-go-git-go-git

Fixed versions: 5.4.2-3ubuntu0.1~esm1

golang-github-go-git-go-git

Fixed versions: 5.4.2-4ubuntu0.24.04.3+esm2

golang-github-go-git-go-git

Fixed versions: Not specified

golang-github-go-git-go-git

Fixed versions: Not specified

golang-github-go-git-go-git

Fixed versions: Not specified

Complete source record
{
  "id": "0208af852f45d6719e11c98a0f33fcab982305f2c7176adc9320d0b4200bc5cd",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2026-25934",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2026-25934",
    "summary": "go-git is a highly extensible git implementation library written in pure Go. Prior to 5.16.5, a vulnerability was discovered in go-git whereby data integrity values for .pack and .idx files were not properly verified. This resulted in go-git potentially consuming corrupted files, which would likely result in unexpected errors such as object not found. For context, clients fetch packfiles from upstream Git servers. Those files contain a checksum of their contents, so that clients can perform integrity checks before consuming it. The pack indexes (.idx) are generated locally by go-git, or the git cli, when new .pack files are received and processed. The integrity checks for both files were not being verified correctly. This vulnerability is fixed in 5.16.5.",
    "evidence": "osv:UBUNTU-CVE-2026-25934",
    "products": [
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.2-3ubuntu0.1~esm1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "5.4.2-3",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.2-4ubuntu0.24.04.3+esm2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": [
          {
            "value": "5.4.2-3build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4ubuntu0.24.04.1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4ubuntu0.24.04.2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4ubuntu0.24.04.2+esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4ubuntu0.24.04.3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "5.4.2-4ubuntu0.24.04.3+esm1",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.14.0-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.16.2-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.19.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "5.19.2-1",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "golang-github-go-git-go-git",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "5.14.0-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "5.16.2-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "5.16.2-1ubuntu0.1~esm1",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2026-25934",
      "aliases": [
        "UBUNTU-CVE-2026-25934"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.2-3ubuntu0.1~esm1"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fjammy",
            "ecosystem": "Ubuntu:Pro:22.04:LTS"
          },
          "versions": [
            "5.4.2-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-25934.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "go-git",
                "binary_version": "5.4.2-3ubuntu0.1~esm1"
              },
              {
                "binary_name": "golang-github-go-git-go-git-dev",
                "binary_version": "5.4.2-3ubuntu0.1~esm1"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "5.4.2-4ubuntu0.24.04.3+esm2"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fnoble",
            "ecosystem": "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",
            "5.4.2-4ubuntu0.24.04.3+esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-25934.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "go-git",
                "binary_version": "5.4.2-4ubuntu0.24.04.3+esm2"
              },
              {
                "binary_name": "golang-github-go-git-go-git-dev",
                "binary_version": "5.4.2-4ubuntu0.24.04.3+esm2"
              }
            ],
            "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "5.14.0-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-25934.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "go-git",
                "binary_version": "5.14.0-1"
              },
              {
                "binary_name": "golang-github-go-git-go-git-dev",
                "binary_version": "5.14.0-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "5.16.2-1",
            "5.19.1-1",
            "5.19.2-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-25934.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "go-git",
                "binary_version": "5.19.2-1"
              },
              {
                "binary_name": "golang-github-go-git-go-git-dev",
                "binary_version": "5.19.2-1"
              },
              {
                "binary_name": "golang-github-go-git-go-git-v5-dev",
                "binary_version": "5.19.2-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "golang-github-go-git-go-git",
            "purl": "pkg:deb/ubuntu/golang-github-go-git-go-git?arch=source&distro=esm-apps%2Fresolute",
            "ecosystem": "Ubuntu:Pro:26.04:LTS"
          },
          "versions": [
            "5.14.0-1",
            "5.16.2-1",
            "5.16.2-1ubuntu0.1~esm1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-25934.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "go-git",
                "binary_version": "5.16.2-1ubuntu0.1~esm1"
              },
              {
                "binary_name": "golang-github-go-git-go-git-dev",
                "binary_version": "5.16.2-1ubuntu0.1~esm1"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:18.150407960Z",
      "provider": "osv",
      "upstream": [
        "CVE-2026-25934"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2026-25934",
        "https://www.cve.org/CVERecord?id=CVE-2026-25934",
        "https://github.com/go-git/go-git/releases/tag/v5.16.5",
        "https://github.com/go-git/go-git/security/advisories/GHSA-37cx-329c-33x3",
        "https://ubuntu.com/security/notices/USN-8088-1"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2026-25934",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 355181,
  "published_at": "2026-02-09T23:16:00+00:00"
}