ADVISORIES

Ubuntu Security Notice

USN-8088-1

golang-github-go-git-go-git vulnerabilities

Details

Ionut Lalu discovered that go-git incorrectly handled certain specially crafted Git server responses. An attacker could possibly use this issue to cause a denial of service. (CVE-2023-49568, CVE-2025-21614)

Ionut Lalu discovered that go-git incorrectly handled file system paths when using the ChrootOS implementation. A remote attacker could possibly use this issue to perform a path traversal and create or modify arbitrary files, leading to remote code execution. (CVE-2023-49569)

It was discovered that go-git did not properly sanitize arguments when invoking git-upload-pack using the file transport protocol. An attacker could possibly use this issue to inject arbitrary flag values when interacting with local Git repositories. (CVE-2025-21613)

It was discovered that go-git did not properly verify integrity checks for pack and index files. An attacker could possibly use this issue to cause go-git to process corrupted repository data, resulting in unexpected errors or an incorrect repository state. (CVE-2026-25934)

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:22.04:LTSgolang-github-go-git-go-git
All versions before 5.4.2-3ubuntu0.1~esm1 (fixed in 5.4.2-3ubuntu0.1~esm1)
Ubuntu:Pro:24.04:LTSgolang-github-go-git-go-git
All versions before 5.4.2-4ubuntu0.24.04.3+esm2 (fixed in 5.4.2-4ubuntu0.24.04.3+esm2)

References