Live threats

All CVEs / Go-git Project

CVE-2023-49569Go-git Project Go-git

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
2.0%
probability of exploitation in 30 days · percentile 81
Auth required
No
Published
Jan 12, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

A path traversal vulnerability was discovered in go-git versions prior to v5.11. This vulnerability allows an attacker to create and amend files across the filesystem. In the worse case scenario, remote code execution could be achieved. Applications are only affected if they are using the ChrootOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#ChrootOS , which is the default when using "Plain" versions of Open and Clone funcs (e.g. PlainClone). Applications using BoundOS https://pkg.go.dev/github.com/go-git/go-billy/v5/osfs#BoundOS  or in-memory filesystems are not affected by this issue. This is a go-git implementation issue and does not affect the upstream git cli.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go-git.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/go-git/go-git/v5 ≥ 5.0.0 < 5.11.0 5.11.0 go get github.com/go-git/go-git/v5@v5.11.0
Go github.com/go-git/go-git/v5 ≥ 5.0.0 < 5.11.0 5.11.0 go get github.com/go-git/go-git/v5@v5.11.0
Go gopkg.in/src-d/go-git.v4 ≥ 4.0.0 ≤ 4.13.1 no fixed version —
Go gopkg.in/src-d/go-git.v4 ≥ 4.7.1 no fixed version —

Per OSV / GitHub Advisories (GHSA-449p-3h89-pw88, GO-2024-2456). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
go-git_projectgo-git≥ 4.0.0 < 5.11.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.