cve.bz

CVE-2023-49569

9.8 criticalEPSS 1.5%

Critical (9.8) in go-git project go-git. EPSS 1.5% chance of exploitation in the next 30 days. Fixed in github.com/go-git/go-git/v5 5.11.0.

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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
1.5% chance of exploitation in the next 30 days; higher than 74% of CVEs (scores of 2026-10-31)
CWE
CWE-22
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-449p-3h89-pw88Gogithub.com/go-git/go-git/v5>=5.0.0 <5.11.05.11.0
GHSA-449p-3h89-pw88Gogopkg.in/src-d/go-git.v4>=4.0.0 <=4.13.1no fix published
GO-2024-2456Gogopkg.in/src-d/go-git.v4>=4.7.1no fix published
GO-2024-2456Gogithub.com/go-git/go-git/v5>=5.0.0 <5.11.05.11.0

References

Check your stackJSON