Vulnerabilities / CVE-2023-49569

critical

CVE-2023-49569

go-git: Maliciously crafted Git server replies can lead to path traversal and RCE on go-git clients

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat8.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Red Hat, Azure Linux, CBL-Mariner. Rated lower by Amazon (high), Ubuntu (medium).

Description

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.

Affected packages and fixed versions

SourcePackageFixed in
Azure Linux 3.0packer0:1.9.5-1.azl3
CBL-Mariner 2.0cri-o, packer0:1.22.3-12.cm2 and 1 more
go::GitHub Security Advisory Gogithub.com/go-git/go-git/v5, gopkg.in/src-d/go-git.v45.11.0
amazon linux 1amazon-ssm-agent, amazon-ssm-agent-debuginfo3.2.2222.0-1.amzn1
amazon linux 2amazon-ssm-agent, amazon-ssm-agent-debuginfo3.2.2222.0-1.amzn2
amazon linux 2023amazon-ssm-agent, amazon-ssm-agent-debuginfo, amazon-ssm-agent-debugsource3.2.2222.0-1.amzn2023
chainguardbom, gitness, gitsign and 6 more0.6.0-r0 and 8 more
debian 12golang-github-go-git-go-gitno fix listed
debian 13golang-github-go-git-go-git5.11.0-1
debian 14golang-github-go-git-go-git5.11.0-1
echogolang-github-go-git-go-git5.11.0-1
rapidfort amazon linux 2023amazon-ssm-agent3.2.2222.0-1.amzn2023
Show all 39 entries from 17 sources
SourcePackageFixed in
Azure Linux 3.0packer0:1.9.5-1.azl3
CBL-Mariner 2.0cri-o0:1.22.3-12.cm2
CBL-Mariner 2.0packer0:1.9.5-3.cm2
go::GitHub Security Advisory Gogithub.com/go-git/go-git/v55.11.0
go::GitHub Security Advisory Gogopkg.in/src-d/go-git.v4no fix listed
amazon linux 1amazon-ssm-agent3.2.2222.0-1.amzn1
amazon linux 1amazon-ssm-agent-debuginfo3.2.2222.0-1.amzn1
amazon linux 2amazon-ssm-agent3.2.2222.0-1.amzn2
amazon linux 2amazon-ssm-agent-debuginfo3.2.2222.0-1.amzn2
amazon linux 2023amazon-ssm-agent3.2.2222.0-1.amzn2023
amazon linux 2023amazon-ssm-agent-debuginfo3.2.2222.0-1.amzn2023
amazon linux 2023amazon-ssm-agent-debugsource3.2.2222.0-1.amzn2023
chainguardbom0.6.0-r0
chainguardgitness3.0.0_beta5-r0
chainguardgitsign0.8.1-r0
chainguardgo-licenses1.6.0-r9
chainguardgoreleaser1.24.0-r0
chainguardnuclei3.2.0-r0
chainguardpulumi-kubernetes-operator1.14.0-r6
chainguardscorecard4.13.1-r4
chainguardsrc-fingerprint0.19.0-r9
debian 12golang-github-go-git-go-gitno fix listed
debian 13golang-github-go-git-go-git5.11.0-1
debian 14golang-github-go-git-go-git5.11.0-1
echogolang-github-go-git-go-git5.11.0-1
rapidfort amazon linux 2023amazon-ssm-agent3.2.2222.0-1.amzn2023
rapidfort debian 12golang-github-go-git-go-git0:5.11.0-1
rapidfort debian 13golang-github-go-git-go-git0:5.11.0-1
ubuntu 22.04golang-github-go-git-go-gitno fix listed
ubuntu 24.04golang-github-go-git-go-gitno fix listed
wolfibom0.6.0-r0
wolfigitness3.0.0_beta5-r0
wolfigitsign0.8.1-r0
wolfigo-licenses1.6.0-r9
wolfigoreleaser1.24.0-r0
wolfinuclei3.2.0-r0
wolfipulumi-kubernetes-operator1.14.0-r6
wolfiscorecard4.13.1-r4
wolfisrc-fingerprint0.19.0-r9

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.